Plex Hardware trancoding not working even if Nvidia GPU is detected

Server Version#:1.32.8.7639-fb6452ebf_amd64.deb
Player Version#:Web Version 4.121.1
Plex Media Server.log (5.7 MB)



Even if the server detects my gpu it’s not doing Hardware Transcoding. Is there a requirement to make it work on Linux other than the driver ?

Dec 23, 2023 23:58:15.086 [140335426173752] DEBUG - [Req#4902/Transcode] [FFMPEG] - Loaded sym: cuEGLStreamProducerReturnFrame
Dec 23, 2023 23:58:15.086 [140335426173752] ERROR - [Req#4902/Transcode] [FFMPEG] - Cannot load libnvidia-encode.so.1
Dec 23, 2023 23:58:15.086 [140335426173752] ERROR - [Req#4902/Transcode] [FFMPEG] - The minimum required Nvidia driver for nvenc is 455.28 or newer
Dec 23, 2023 23:58:15.126 [140335426173752] WARN - [Req#4902/Transcode] Codecs: avcodec_open2 returned -1 for encoder ‘h264_nvenc’
Dec 23, 2023 23:58:15.126 [140335426173752] DEBUG - [Req#4902/Transcode] Codecs: testing hevc (decoder) with hwdevice nvdec
Dec 23, 2023 23:58:15.127 [140335426173752] DEBUG - [Req#4902/Transcode] Codecs: hardware transcoding: testing API nvdec for device ‘pci:0000:0a:00.0’ (GP106GL [Quadro P2200])

I saw this in the log

is plex a member of the group which owns the video adapter ?

What you show is common when it’s not and cannot communicate with the card

Last login: Sat Dec 23 19:23:41 2023 from 192.168.0.13
[chuck@glockner ~.2001]$ groups plex
plex : plex video render
[chuck@glockner ~.2002]$ ls -la /dev/dri
total 0
drwxr-xr-x  3 root root        120 Dec 21 13:17 ./
drwxr-xr-x 21 root root       5860 Dec 21 13:17 ../
drwxr-xr-x  2 root root        100 Dec 21 13:17 by-path/
crw-rw----  1 root render 226,   0 Dec 21 13:17 card0
crw-rw----  1 root render 226,   1 Dec 21 13:17 card1
crw-rw----  1 root render 226, 128 Dec 21 13:17 renderD128
[chuck@glockner ~.2003]$ nvidia-smi
Sun Dec 24 00:32:30 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.129.03             Driver Version: 535.129.03   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  Quadro P2200                   On  | 00000000:07:00.0 Off |                  N/A |
| 49%   39C    P8               4W /  75W |      1MiB /  5120MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|  No running processes found                                                           |
+---------------------------------------------------------------------------------------+
[chuck@glockner ~.2004]$

Even though 470 is the official minimum, I’d recommend updating to 535 as I have.
It is CUDA 12.x instead of 11.x

I had to install the package libnvidia-encode1_470.199.02-1_amd64.deb, It works perfectly now.
putty_VcV9E10G2U

I will let this documentation is people have the same error as I had
libnvidia-encode1_470.199.02-1_amd64.deb Debian 11 Download (pkgs.org)

NvidiaGraphicsDrivers - Debian Wiki

Debian 11 official only official supports up to driver Version 470.129.06 for now

Get the decode too.

I didn’t think to ask because when you install nvidia-drivers through apt, those come with… Sorry

1 Like

Yeah I don’t know what happened there, I did it through apt with apt install nvidia-driver firmware-misc-nonfree and the decode one installed correctly but not the encode one. Thank you and merry Christmas to you @ChuckPa

Merry Christmas to you and all , too.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.