HW Transcode, Linux/Docker/Intel QVS/Nvidia P2000 - Unable to hw transcode

Server Version#: 1.19.4.2935
Player Version#: 4.30.2
Media Server Log Extract: https://pastebin.com/g4xNmbav
Log File: Plex Media Server Logs_2020-06-17_09-12-15.zip (867.8 KB)

Looking for anyone who can help. Running into an issue that I’m a bit stumped on, any videos that require transcoding aren’t utilising hardware when transcoding. Previously they did hardware transcode, however around a month or so ago it stopped.

System is running Centos, Docker, with a Intel® Xeon® Processor E3-1265L v3 and Nvidia Quadro P2000.

Centos Version: 7
Docker Version: 19.03.11, build 42e35e61f
NVIDIA-SMI Version: 440.82
Driver Version: 440.82
CUDA Version: 10.2

Here are the available dev/dri items:

brad@Centos-Server:/opt/docker [master]$ ls -la /dev/dri
total 0
drwxr-xr-x.  2 root root       100 Jun 12 18:27 .
drwxr-xr-x. 20 root root      3460 Jun 12 18:27 ..
crw-rw----.  1 root video 226,   0 Jun 12 18:27 card0
crw-rw----.  1 root video 226,   1 Jun 12 18:27 card1
crw-rw----.  1 root video 226, 128 Jun 12 18:27 renderD128

If the kernel updated you may need to remove and reinstall the driver on the host and in the docker. I don’t use an Nvidia card so I can’t help with the specifics.

Jun 17, 2020 09:11:51.652 [0x7f0724ff9700] DEBUG - Codecs: testing h264_nvenc (encoder)
Jun 17, 2020 09:11:51.652 [0x7f0724ff9700] DEBUG - Codecs: hardware transcoding: testing API nvenc
Jun 17, 2020 09:11:52.202 [0x7f0724ff9700] ERROR - [FFMPEG] - cu->cuCtxCreate(&hwctx->cuda_ctx, 4, cu_device) failed
Jun 17, 2020 09:11:52.202 [0x7f0724ff9700] ERROR - [FFMPEG] -  -> CUDA_ERROR_INVALID_VALUE: invalid argument
Jun 17, 2020 09:11:52.202 [0x7f0724ff9700] ERROR - [FFMPEG] - 
Jun 17, 2020 09:11:52.203 [0x7f0724ff9700] DEBUG - Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Jun 17, 2020 09:11:52.203 [0x7f0724ff9700] DEBUG - Codecs: testing h264 (decoder) with hwdevice vaapi
Jun 17, 2020 09:11:52.203 [0x7f0724ff9700] DEBUG - Codecs: hardware transcoding: testing API vaapi
Jun 17, 2020 09:11:52.203 [0x7f0724ff9700] DEBUG - Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Input/output error
Jun 17, 2020 09:11:52.203 [0x7f0724ff9700] DEBUG - Codecs: testing h264 (decoder) with hwdevice nvdec
Jun 17, 2020 09:11:52.203 [0x7f0724ff9700] DEBUG - Codecs: hardware transcoding: testing API nvdec
Jun 17, 2020 09:11:52.204 [0x7f0724ff9700] ERROR - [FFMPEG] - cu->cuCtxCreate(&hwctx->cuda_ctx, 4, cu_device) failed
Jun 17, 2020 09:11:52.204 [0x7f0724ff9700] ERROR - [FFMPEG] -  -> CUDA_ERROR_INVALID_VALUE: invalid argument
Jun 17, 2020 09:11:52.204 [0x7f0724ff9700] ERROR - [FFMPEG] - 
Jun 17, 2020 09:11:52.204 [0x7f0724ff9700] DEBUG - Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
2 Likes

Thank you so much! I had tried updating the drivers, but not removed and reinstalled them!

It’s now working as expected:

brad@Centos-Server:~$ nvidia-smi
Wed Jun 17 11:10:22 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.82       Driver Version: 440.82       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  Quadro P2000        Off  | 00000000:01:00.0 Off |                  N/A |
| 54%   50C    P0    22W /  75W |    240MiB /  5057MiB |      7%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      4996      C   /usr/lib/plexmediaserver/Plex Transcoder     230MiB |
+-----------------------------------------------------------------------------+

For others, here’s the steps i took to fix the issue:

sudo -i
service docker stop
yum erase nvidia-detect kmod-nvidia elrepo-release
yum clean
yum install https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm -y
yum update
yum install nvidia-detect -y
nvidia-detect
yum install kmod-nvidia -y
reboot

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