nvenc unavailable on Ubuntu 20.04

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
molove
Posts: 6
Joined: Fri May 01, 2020 2:00 pm

nvenc unavailable on Ubuntu 20.04

Post by molove »

Description of problem or question:

I have just upgraded my PC with a new mobo and cpu and done a fresh install of Ubuntu 20.04. When using Handbrake the option to use nvenc as an encode is not available to me, which it was on my previous system running Ubuntu 18.04 using the same Nvidia GTX1060 gfx card. Everything works as it should when booted into Windows, ie nvenc is available and encodes.
I'm quite new to Linux but all the drivers seem to be installed correctly and the gfx card is recognised by the system. The nvenc encoder lib seems to be installed.

Code: Select all

libnvidia-common-440/focal,focal,now 440.82+really.440.64-0ubuntu6 all [installed,automatic]
libnvidia-compute-440/focal,now 440.82+really.440.64-0ubuntu6 amd64 [installed,automatic]
libnvidia-decode-440/focal,now 440.82+really.440.64-0ubuntu6 amd64 [installed,automatic]
libnvidia-encode-440/focal,now 440.82+really.440.64-0ubuntu6 amd64 [installed,automatic]
libnvidia-extra-440/focal,now 440.82+really.440.64-0ubuntu6 amd64 [installed,automatic]
libnvidia-fbc1-440/focal,now 440.82+really.440.64-0ubuntu6 amd64 [installed,automatic]
libnvidia-gl-440/focal,now 440.82+really.440.64-0ubuntu6 amd64 [installed,automatic]
libnvidia-ifr1-440/focal,now 440.82+really.440.64-0ubuntu6 amd64 [installed,automatic]
libvdpau1/focal,now 1.3-1ubuntu2 amd64 [installed,automatic]
libxnvctrl0/focal,now 440.64-0ubuntu1 amd64 [installed,automatic]
nvidia-compute-utils-440/focal,now 440.82+really.440.64-0ubuntu6 amd64 [installed,automatic]
nvidia-dkms-440/focal,now 440.82+really.440.64-0ubuntu6 amd64 [installed]
nvidia-driver-440/focal,now 440.82+really.440.64-0ubuntu6 amd64 [installed]
nvidia-kernel-common-440/focal,now 440.82+really.440.64-0ubuntu6 amd64 [installed,automatic]
nvidia-kernel-source-440/focal,now 440.82+really.440.64-0ubuntu6 amd64 [installed]
nvidia-prime/focal,focal,now 0.8.14 all [installed,automatic]
nvidia-settings/focal,now 440.64-0ubuntu1 amd64 [installed,automatic]
nvidia-utils-440/focal,now 440.82+really.440.64-0ubuntu6 amd64 [installed]
screen-resolution-extra/focal,focal,now 0.18build1 all [installed,automatic]
ubuntu-drivers-common/focal,now 1:0.8.1 amd64 [installed,automatic]
vdpau-driver-all/focal,now 1.3-1ubuntu2 amd64 [installed,automatic]
xserver-xorg-video-nouveau/focal,now 1:1.0.16-1 amd64 [installed,automatic]
xserver-xorg-video-nvidia-440/focal,now 440.82+really.440.64-0ubuntu6 amd64 [installed]
sudo nvidia-smi ouputs

Code: Select all

Fri May  1 14:34:15 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64       Driver Version: 440.64       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 106...  Off  | 00000000:01:00.0  On |                  N/A |
|  0%   55C    P0    26W / 120W |    225MiB /  6055MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1363      G   /usr/lib/xorg/Xorg                           110MiB |
|    0      1698      G   /usr/bin/gnome-shell                         112MiB |
+-----------------------------------------------------------------------------+
The Activity Log lists my CPU but not my GPU, whereas under Windows both are listed.
I have searched for answers but have found none and I'm not sure what I may have done wrong, any help would be gratefully received.


Steps to reproduce the problem (If Applicable):

Both Handbrake and handbrake-cli


HandBrake version (e.g., 1.0.0):

1.31 from Ubuntu Focal repository


Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Ubuntu 20.04 LTS
Nvidia 440 drivers from Ubuntu Focal Repository



HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

[19:29:00] hb_init: starting libhb thread
[19:29:00] thread 7f1c240de700 started ("libhb")
HandBrake 1.3.1 (2020032300) - Linux x86_64 - https://handbrake.fr
16 CPUs detected
Opening ./videofile.mkv...
[19:29:00] CPU: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
[19:29:00]  - Intel microarchitecture Kaby Lake
[19:29:00]  - logical processor count: 16
[19:29:00] hb_scan: path=./videofile.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image ./videofile.mkv
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(./videofile.mkv/) failed
[19:29:00] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
************************************************
**                                            **
**  No css library available. See             **
**  /usr/share/doc/libdvdread4/README.css     **
**  for more information.                     **
**                                            **
************************************************
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[19:29:00] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from './videofile.mkv':
  Metadata:
    encoder         : libebml v1.3.9 + libmatroska v1.5.2
    creation_time   : 2020-04-17T07:03:45.000000Z
  Duration: 00:28:11.53, start: 0.000000, bitrate: 2292 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS-eng         : 2034246
      DURATION-eng    : 00:28:11.398000000
      NUMBER_OF_FRAMES-eng: 40553
      NUMBER_OF_BYTES-eng: 430090064
      _STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-17 07:03:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1: Audio: eac3, 48000 Hz, 6 channels, fltp (default)
    Metadata:
      BPS-eng         : 256000
      DURATION-eng    : 00:28:11.520000000
      NUMBER_OF_FRAMES-eng: 52860
      NUMBER_OF_BYTES-eng: 54128640
      _STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-17 07:03:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Subtitle: subrip
    Metadata:
      BPS-eng         : 88
      DURATION-eng    : 00:27:54.374000000
      NUMBER_OF_FRAMES-eng: 614
      NUMBER_OF_BYTES-eng: 18506
      _STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-17 07:03:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[19:29:01] scan: decoding previews for title 1
[19:29:01] scan: audio 0x1: eac3, rate=48000Hz, bitrate=256000 Unknown (E-AC3) (5.1 ch) (256 kbps)

Scanning title 1 of 1, preview 8, 80.00 %[19:29:01] scan: 10 previews, 1280x720, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[19:29:01] libhb: scan thread found 1 valid title(s)
+ Using preset: jellyfin2k
+ title 1:
  + stream: ./videofile.mkv
  + duration: 00:28:11
  + size: 1280x720, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: duration 00:28:11
  + audio tracks:
    + 1, Unknown (E-AC3) (5.1 ch) (256 kbps) (iso639-2: und)
  + subtitle tracks:
    + 1, English [UTF-8]
[19:29:01] Starting work at: Wed Apr 29 19:29:01 2020

[19:29:01] 1 job(s) to process
[19:29:01] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": 0.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:mp3",
            "copy:aac",
            "copy:ac3",
            "copy:dts",
            "copy:dtshd",
            "copy:eac3",
            "copy:flac",
            "copy:truehd"
        ],
        "FallbackEncoder": "ac3"
    },
    "Destination": {
        "AlignAVStart": true,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 28,
                    "Seconds": 11,
                    "Ticks": 152237340
                },
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "./videofile.mp4",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": true
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 12,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 720,
                    "width": 1280
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "./videofile.mkv",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": [
            {
                "Burn": false,
                "Default": true,
                "Forced": false,
                "Track": 0
            }
        ]
    },
    "Video": {
        "Bitrate": 2000,
        "ColorFormat": 0,
        "ColorMatrix": 1,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "Level": "auto",
        "Options": "rc-lookahead=10:b_adapt=1",
        "Preset": "slow",
        "Profile": "auto",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Tune": "",
        "Turbo": true,
        "TwoPass": true
    }
}
[19:29:01] Starting Task: Analysis Pass
[19:29:01] Skipping vfr filter
[19:29:01] Skipping crop/scale filter
[19:29:01] work: track 1, compression level not supported by codec
[19:29:01] job configuration:
[19:29:01]  * source
[19:29:01]    + ./videofile.mkv
[19:29:01]    + title 1, chapter(s) 1 to 1
[19:29:01]    + container: matroska,webm
[19:29:01]    + data rate: 2292 kbps
[19:29:01]  * destination
[19:29:01]    + ./videofile.mp4
[19:29:01]    + container: MPEG-4 (libavformat)
[19:29:01]      + optimized for HTTP streaming (fast start)
[19:29:01]      + align initial A/V stream timestamps
[19:29:01]  * video track
[19:29:01]    + decoder: h264
[19:29:01]    + Output geometry
[19:29:01]      + storage dimensions: 1280 x 720
[19:29:01]      + pixel aspect ratio: 1 : 1
[19:29:01]      + display dimensions: 1280 x 720
[19:29:01]    + encoder: H.264 (libx264)
[19:29:01]      + preset:  slow
[19:29:01]      + options: rc-lookahead=10:b_adapt=1
[19:29:01]      + profile: auto
[19:29:01]      + level:   auto
[19:29:01]      + bitrate: 2000 kbps, pass: 1
[19:29:01]      + fast first pass
[19:29:01]      + options: ref=1:8x8dct=0:me=dia:trellis=0
[19:29:01]                 analyse=i4x4 (if originally enabled, else analyse=none)
[19:29:01]                 subq=2 (if originally greater than 2, else subq unchanged)
[19:29:01]      + color profile: 1-1-1
[19:29:01]  * subtitle track 1, English [UTF-8] (track 0, id 0x2, Text) -> Passthrough, Default
[19:29:01]  * audio track 1
[19:29:01]    + decoder: Unknown (E-AC3) (5.1 ch) (256 kbps) (track 1, id 0x1)
[19:29:01]      + bitrate: 256 kbps, samplerate: 48000 Hz
[19:29:01]    + mixdown: Stereo
[19:29:01]    + dither: triangular
[19:29:01]    + encoder: AAC (libavcodec)
[19:29:01]      + bitrate: 160 kbps, samplerate: 48000 Hz
[19:29:01] sync: expecting 40556 video frames
[19:29:01] encx264: min-keyint: 24, keyint: 240
[19:29:01] encx264: encoding at average bitrate 2000
[19:29:01] encx264: unparsed options: rc-lookahead=10:b_adapt=1:ref=5:direct=auto:subme=8:trellis=2
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.1
[19:29:01] sync: first pts video is 0
[19:29:01] sync: Chapter 1 at frame 1 time 0
[19:29:01] sync: first pts audio 0x1 is 0
[19:29:01] sync: first pts subtitle 0x2 is 255240
[19:30:40] reader: done. 1 scr changes
[19:30:41] work: average encoding speed for job is 407.025909 fps
[19:30:41] eac3-decoder done: 52860 frames, 0 decoder errors
[19:30:41] h264-decoder done: 40553 frames, 0 decoder errors
[19:30:41] sync: got 40553 frames, 40556 expected
[19:30:41] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
x264 [info]: frame I:537   Avg QP:13.27  size: 76584
x264 [info]: frame P:12078 Avg QP:16.67  size: 18738
x264 [info]: frame B:27938 Avg QP:18.40  size:  5117
x264 [info]: consecutive B-frames:  3.3%  9.7% 14.3% 72.7%
x264 [info]: mb I  I16..4: 34.1%  0.0% 65.9%
x264 [info]: mb P  I16..4: 23.2%  0.0%  0.0%  P16..4: 56.9%  0.0%  0.0%  0.0%  0.0%    skip:20.0%
x264 [info]: mb B  I16..4:  2.8%  0.0%  0.0%  B16..8: 30.5%  0.0%  0.0%  direct:11.1%  skip:55.6%  L0:40.5% L1:47.3% BI:12.2%
x264 [info]: final ratefactor: 17.77
x264 [info]: direct mvs  spatial:99.9% temporal:0.1%
x264 [info]: coded y,uvDC,uvAC intra: 33.9% 71.0% 28.5% inter: 9.6% 22.1% 1.1%
x264 [info]: i16 v,h,dc,p: 43% 21% 20% 16%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 19% 12%  7%  8%  7%  6%  7%  5%
x264 [info]: i8c dc,h,v,p: 47% 19% 26%  8%
x264 [info]: Weighted P-Frames: Y:0.8% UV:0.5%
x264 [info]: kb/s:1941.10
[19:30:41] Starting Task: Encoding Pass
[19:30:41] Skipping vfr filter
[19:30:41] Skipping crop/scale filter
[19:30:41] work: track 1, compression level not supported by codec
[19:30:41] job configuration:
[19:30:41]  * source
[19:30:41]    + ./videofile.mkv
[19:30:41]    + title 1, chapter(s) 1 to 1
[19:30:41]    + container: matroska,webm
[19:30:41]    + data rate: 2292 kbps
[19:30:41]  * destination
[19:30:41]    + ./videofile.mp4
[19:30:41]    + container: MPEG-4 (libavformat)
[19:30:41]      + optimized for HTTP streaming (fast start)
[19:30:41]      + align initial A/V stream timestamps
[19:30:41]  * video track
[19:30:41]    + decoder: h264
[19:30:41]    + Output geometry
[19:30:41]      + storage dimensions: 1280 x 720
[19:30:41]      + pixel aspect ratio: 1 : 1
[19:30:41]      + display dimensions: 1280 x 720
[19:30:41]    + encoder: H.264 (libx264)
[19:30:41]      + preset:  slow
[19:30:41]      + options: rc-lookahead=10:b_adapt=1
[19:30:41]      + profile: auto
[19:30:41]      + level:   auto
[19:30:41]      + bitrate: 2000 kbps, pass: 2
[19:30:41]      + color profile: 1-1-1
[19:30:41]  * subtitle track 1, English [UTF-8] (track 0, id 0x2, Text) -> Passthrough, Default
[19:30:41]  * audio track 1
[19:30:41]    + decoder: Unknown (E-AC3) (5.1 ch) (256 kbps) (track 1, id 0x1)
[19:30:41]      + bitrate: 256 kbps, samplerate: 48000 Hz
[19:30:41]    + mixdown: Stereo
[19:30:41]    + dither: triangular
[19:30:41]    + encoder: AAC (libavcodec)
[19:30:41]      + bitrate: 160 kbps, samplerate: 48000 Hz
[19:30:41] sync: expecting 40553 video frames
[19:30:41] encx264: min-keyint: 24, keyint: 240
[19:30:41] encx264: encoding at average bitrate 2000
[19:30:41] encx264: unparsed options: rc-lookahead=10:b_adapt=1:ref=5:direct=auto:subme=8:trellis=2
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 3.1
[19:30:41] sync: first pts video is 0
[19:30:41] sync: Chapter 1 at frame 1 time 0
[19:30:41] sync: first pts audio 0x1 is 0
[19:30:41] sync: first pts subtitle 0x2 is 255240
[19:36:41] reader: done. 1 scr changes
[19:36:41] work: average encoding speed for job is 112.429100 fps
[19:36:41] eac3-decoder done: 52860 frames, 0 decoder errors
[19:36:41] h264-decoder done: 40553 frames, 0 decoder errors
[19:36:41] sync: got 40553 frames, 40553 expected
[19:36:41] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
x264 [info]: frame I:537   Avg QP:13.81  size: 72476
x264 [info]: frame P:12078 Avg QP:16.96  size: 19226
x264 [info]: frame B:27938 Avg QP:18.94  size:  5424
x264 [info]: consecutive B-frames:  3.3%  9.7% 14.3% 72.7%
x264 [info]: mb I  I16..4: 13.9% 73.7% 12.5%
x264 [info]: mb P  I16..4:  2.4%  7.7%  0.5%  P16..4: 48.9% 17.0%  6.6%  0.0%  0.0%    skip:16.8%
x264 [info]: mb B  I16..4:  0.2%  0.6%  0.0%  B16..8: 47.8%  4.3%  0.6%  direct: 2.6%  skip:44.0%  L0:46.2% L1:49.5% BI: 4.3%
x264 [info]: 8x8 transform intra:73.0% inter:68.9%
x264 [info]: direct mvs  spatial:98.9% temporal:1.1%
x264 [info]: coded y,uvDC,uvAC intra: 59.7% 82.2% 49.3% inter: 10.3% 22.0% 1.7%
x264 [info]: i16 v,h,dc,p: 32% 15%  9% 44%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 11% 14%  7% 10% 11% 10% 10% 10%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 10% 10%  8% 13% 12% 10%  9%  9%
x264 [info]: i8c dc,h,v,p: 43% 21% 22% 14%
x264 [info]: Weighted P-Frames: Y:0.8% UV:0.5%
x264 [info]: ref P L0: 59.3%  9.1% 18.0%  7.6%  5.9%  0.1%  0.0%
x264 [info]: ref B L0: 83.1% 11.7%  4.2%  1.0%
x264 [info]: ref B L1: 95.5%  4.5%
x264 [info]: kb/s:1999.11
[19:36:46] mux: track 0, 40553 frames, 422640716 bytes, 1998.82 kbps, fifo 4096
[19:36:46] mux: track 1, 79291 frames, 33775047 bytes, 159.73 kbps, fifo 8192
[19:36:46] mux: track 2, 614 frames, 31906 bytes, 0.15 kbps, fifo 32
[19:36:46] Finished work at: Wed Apr 29 19:36:46 2020

[19:36:46] libhb: work result = 0

Encode done!
HandBrake has exited.

rollin_eng
Veteran User
Posts: 4854
Joined: Wed May 04, 2011 11:06 pm

Re: nvenc unavailable on Ubuntu 20.04

Post by rollin_eng »

molove
Posts: 6
Joined: Fri May 01, 2020 2:00 pm

Re: nvenc unavailable on Ubuntu 20.04

Post by molove »

Thanks, so installing HB from the official Ubuntu repositories was the problem. I installed the Flatpak versions and lo and behold nvenc worked.

Do you know when the PPA is going to be updated to Ubuntu Focal so I can install from there instead?

The Flatpak version of HandbrakeCLI won't import the presets from the Flatpak GUI version of Handbrake, which breaks my script unfortunately, unless someone out there has a script that will convert a preset JSON file into command line arguments for HandbrakeCLI.
molove
Posts: 6
Joined: Fri May 01, 2020 2:00 pm

Re: nvenc unavailable on Ubuntu 20.04

Post by molove »

molove wrote: Fri May 01, 2020 8:40 pm Do you know when the PPA is going to be updated to Ubuntu Focal so I can install from there instead?
I followed the build instructions in the docs and built it for myself, and everything is working as it should :D
User avatar
JohnAStebbins
HandBrake Team
Posts: 5723
Joined: Sat Feb 09, 2008 7:21 pm

Re: nvenc unavailable on Ubuntu 20.04

Post by JohnAStebbins »

The GUI Flatpak includes the CLI. To run it:

Code: Select all

flatpak run --command=HandBrakeCLI fr.handbrake.ghb <cli arguments>
That should solve your problem of using GUI presets
User avatar
JohnAStebbins
HandBrake Team
Posts: 5723
Joined: Sat Feb 09, 2008 7:21 pm

Re: nvenc unavailable on Ubuntu 20.04

Post by JohnAStebbins »

Oh, and FYI, you are the first person to report success using NVENC on linux that I know of. None of us have tested it :mrgreen:
I've never tested because I don't like installing proprietary drivers. I use Fedora and they do not provide packages. Since drivers must be EFI signed, not having official packages makes installation a PITA... and removing them is even harder :evil:

Would you care to share what packages were necessary to install to make it work so others can copy?
molove
Posts: 6
Joined: Fri May 01, 2020 2:00 pm

Re: nvenc unavailable on Ubuntu 20.04

Post by molove »

Erm, I've managed to get it working on Ubuntu 18.04 where I just installed the version from the PPA and iirc the Nvidia 430 drivers, it just worked in both GUI and CLI.
And on Ubuntu 20.04 using the Nvidia 440 drivers from the Ubuntu Repositories, there's a list of the installed packages in the OP, I don't think I installed anything extra. I just built Handbrake following the instructions in the docs, and it just worked.
I decided to get rid of my Ubuntu install and start again with Manjaro, I'll let you know how I get on with that.
molove
Posts: 6
Joined: Fri May 01, 2020 2:00 pm

Re: nvenc unavailable on Ubuntu 20.04

Post by molove »

Yes it's working under Manjaro too, I just installed the proprietary Nvidia 440 drivers using Manjaro Settings Manager/Hardware Configuration. I installed Handbrake using Add/Remove Software and handbrake-cli using the command line. Both are working. I did have to reboot after installing the drivers.
Post Reply