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

**URL:** <https://forums.plex.tv/t/hw-transcode-linux-docker-intel-qvs-nvidia-p2000-unable-to-hw-transcode/603837>\
**Category:** Plex Media Server\
**Tags:** server-docker\
**Created:** [June 15, 2020, 9:39am UTC](https://forums.plex.tv/t/hw-transcode-linux-docker-intel-qvs-nvidia-p2000-unable-to-hw-transcode/603837 "2020-06-15T09:39:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cornfordb69](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/cornfordb69/32/129653_2.png) [@cornfordb69](https://forums.plex.tv/u/cornfordb69)\
**Post date:** [June 15, 2020, 9:39am UTC](https://forums.plex.tv/t/hw-transcode-linux-docker-intel-qvs-nvidia-p2000-unable-to-hw-transcode/603837/1 "2020-06-15T09:39:27Z")

</div>

Server Version#: 1.19.4.2935  
Player Version#: 4.30.2  
Media Server Log Extract: [https://pastebin.com/g4xNmbav](https://pastebin.com/g4xNmbav)  
Log File: [Plex Media Server Logs\_2020-06-17\_09-12-15.zip](https://forums.plex.tv/uploads/short-url/gQcTijCrd637jvmEVdGHFkQk4iZ.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

---

<div class="post-metadata">

**Author:** ![cornfordb69](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/cornfordb69/32/129653_2.png) [@cornfordb69](https://forums.plex.tv/u/cornfordb69)\
**Post date:** [June 17, 2020, 8:35am UTC](https://forums.plex.tv/t/hw-transcode-linux-docker-intel-qvs-nvidia-p2000-unable-to-hw-transcode/603837/2 "2020-06-17T08:35:08Z")

</div>

Here are the available dev/dri items:

```auto
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

```

---

<div class="post-metadata">

**Author:** ![pl\_5309](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pl\_5309](https://forums.plex.tv/u/pl_5309)\
**Post date:** [June 17, 2020, 8:54am UTC](https://forums.plex.tv/t/hw-transcode-linux-docker-intel-qvs-nvidia-p2000-unable-to-hw-transcode/603837/3 "2020-06-17T08:54:00Z")

</div>

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.

```auto
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

```

---

<div class="post-metadata">

**Author:** ![cornfordb69](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/cornfordb69/32/129653_2.png) [@cornfordb69](https://forums.plex.tv/u/cornfordb69)\
**Post date:** [June 17, 2020, 10:12am UTC](https://forums.plex.tv/t/hw-transcode-linux-docker-intel-qvs-nvidia-p2000-unable-to-hw-transcode/603837/4 "2020-06-17T10:12:14Z")

</div>

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

It’s now working as expected:

```auto
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:

```auto
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

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [September 15, 2020, 10:12am UTC](https://forums.plex.tv/t/hw-transcode-linux-docker-intel-qvs-nvidia-p2000-unable-to-hw-transcode/603837/5 "2020-09-15T10:12:18Z")

</div>

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