Hi,
i’ve updated today and the HW transcoding is not shown at the dashboard anymore:
Thu Sep 19 17:05:01 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.116 Driver Version: 390.116 |
|-------------------------------+----------------------+----------------------+
| 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:81:00.0 Off | N/A |
| 50% 44C P0 19W / 75W | 116MiB / 5057MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1239 C /usr/lib/plexmediaserver/Plex Transcoder 53MiB |
| 0 14676 C /usr/lib/plexmediaserver/Plex Transcoder 53MiB |
+-----------------------------------------------------------------------------+
nvidia-smi shows that the card is helping as usual, but it doesn’t show
Grep the PMS logs for TPU to be sure.
Okay thanks, you’re right: this is the outcome of the log when starting a new transcoding session:
Sep 19, 2019 17:33:25.359 [0x7f4bb1ffb700] ERROR - [FFMPEG] - Driver does not support the required nvenc API version. Required: 9.0 Found: 8.1
Sep 19, 2019 17:33:25.359 [0x7f4bb1ffb700] ERROR - [FFMPEG] - The minimum required Nvidia driver for nvenc is 418.30 or newer
Sep 19, 2019 17:33:25.389 [0x7f4bb1ffb700] WARN - avcodec_open2 returned -38 for encoder 'h264_nvenc'
Sep 19, 2019 17:33:25.389 [0x7f4bb1ffb700] ERROR - [FFMPEG] - libva: va_getDriverName() failed with unknown libva error,driver_name=(null)
Sep 19, 2019 17:33:25.389 [0x7f4bb1ffb700] ERROR - [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Sep 19, 2019 17:33:25.693 [0x7f4bb1ffb700] ERROR - [FFMPEG] - Driver does not support the required nvenc API version. Required: 9.0 Found: 8.1
Sep 19, 2019 17:33:25.693 [0x7f4bb1ffb700] ERROR - [FFMPEG] - The minimum required Nvidia driver for nvenc is 418.30 or newer
Sep 19, 2019 17:33:25.721 [0x7f4bb1ffb700] WARN - avcodec_open2 returned -38 for encoder 'h264_nvenc'
Sep 19, 2019 17:33:25.721 [0x7f4bb1ffb700] ERROR - [FFMPEG] - libva: va_getDriverName() failed with unknown libva error,driver_name=(null)
Sep 19, 2019 17:33:25.721 [0x7f4bb1ffb700] ERROR - [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Sep 19, 2019 17:33:26.007 [0x7f4bb1ffb700] ERROR - [FFMPEG] - Driver does not support the required nvenc API version. Required: 9.0 Found: 8.1
Sep 19, 2019 17:33:26.007 [0x7f4bb1ffb700] ERROR - [FFMPEG] - The minimum required Nvidia driver for nvenc is 418.30 or newer
Sep 19, 2019 17:33:26.039 [0x7f4bb1ffb700] WARN - avcodec_open2 returned -38 for encoder 'h264_nvenc'
Sep 19, 2019 17:33:26.040 [0x7f4bb1ffb700] ERROR - [FFMPEG] - libva: va_getDriverName() failed with unknown libva error,driver_name=(null)
Sep 19, 2019 17:33:26.040 [0x7f4bb1ffb700] ERROR - [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Sep 19, 2019 17:33:26.347 [0x7f4bb1ffb700] ERROR - [FFMPEG] - Driver does not support the required nvenc API version. Required: 9.0 Found: 8.1
Sep 19, 2019 17:33:26.347 [0x7f4bb1ffb700] ERROR - [FFMPEG] - The minimum required Nvidia driver for nvenc is 418.30 or newer
Sep 19, 2019 17:33:26.376 [0x7f4bb1ffb700] WARN - avcodec_open2 returned -38 for encoder 'h264_nvenc'
Sep 19, 2019 17:33:26.376 [0x7f4bb1ffb700] ERROR - [FFMPEG] - libva: va_getDriverName() failed with unknown libva error,driver_name=(null)
Sep 19, 2019 17:33:26.376 [0x7f4bb1ffb700] ERROR - [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Sep 19, 2019 17:33:27.661 [0x7f4c1dffb700] ERROR - [Transcoder] [h264 @ 0x2a649c0] Cannot load cuvidGetDecodeStatus
Sep 19, 2019 17:33:27.662 [0x7f4bf37fe700] ERROR - [Transcoder] [h264 @ 0x2a649c0] Failed loading nvcuvid.
Sep 19, 2019 17:33:27.662 [0x7f4c6d7fa700] ERROR - [Transcoder] [h264 @ 0x2a649c0] Failed setup for format cuda: hwaccel initialisation returned error.
Sep 19, 2019 17:33:29.812 [0x7f4c6d7fa700] ERROR - [Transcoder] [h264 @ 0xcf2380] Cannot load cuvidGetDecodeStatus
Sep 19, 2019 17:33:29.813 [0x7f4bb1ffb700] ERROR - [Transcoder] [h264 @ 0xcf2380] Failed loading nvcuvid.
Sep 19, 2019 17:33:29.813 [0x7f4c6d7fa700] ERROR - [Transcoder] [h264 @ 0xcf2380] Failed setup for format cuda: hwaccel initialisation returned error.
I guess i should upgrade my nvidia driver
If anybody experiences the same problem, simply add the nvidia repo and upgrade:
add-apt-repository ppa:graphics-drivers/ppa
apt update
apt dist-upgrade
Thanks @Achilles for pushing me in the right direction
In fact, i’ve updated to 435-21 manually, hw transcoding works now with encoding and decoding as it should
okay, i have one small problem left:
Sep 19, 2019 18:41:05.549 [0x7fb7d97fa700] ERROR - [FFMPEG] - libva: va_getDriverName() failed with unknown libva error,driver_name=(null)
Sep 19, 2019 18:41:05.549 [0x7fb7d97fa700] ERROR - [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Sep 19, 2019 18:41:05.766 [0x7fb7d97fa700] ERROR - [FFMPEG] - libva: va_getDriverName() failed with unknown libva error,driver_name=(null)
Sep 19, 2019 18:41:05.766 [0x7fb7d97fa700] ERROR - [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
i guess, its trying to transcode through Intel VA API which my CPU doesn’t support. (Intel® Xeon® CPU E5-2640 v4 @ 2.40GHz) Is there any chance to get rid of that? I mean that it doesn’t try to get transcoding through CPU and just uses the GPU directly? Or is it this error that shows exactly that?
nibbles
September 19, 2019, 5:37pm
7
I’ve heard the transcoder initialization involves running a series of tests.
Those tests were part of the reason for the P0 state of Nvidia cards driving
their fans too fast. Maybe it’s just testing the CPU too?