LiveTV: Failed to initialize VAAPI connection: -1 (unknown libva error)

@ChuckPa Thank you for the heads up. I will upgrade to 515 and test next weekend to be prepared.

I am having a similar problem with the exact same GPU. In my case the VAAPI errors are stalling hardware accelerated playback. It seems like pms is attempting to use VAAPI before eventually failing on one device and finally using the nvidia P400 after a 10-20 second delay.

My currently installed drivers are nvidia 525

PMS version is 1.30.2.6563

I followed the steps @seanwo1 described and set HardwareDevicePath to “/dev/dri/renderD129”, but when looking at my logs I saw this:

Jan 17, 2023 06:43:33.848 [0x7fb752996b38] DEBUG - [GPU] Got device: , unknown@builtin, default true, best true, ID /dev/dri/renderD128, DevID [15ad:0405:15ad:0405], flags 0x0
Jan 17, 2023 06:43:33.848 [0x7fb752996b38] DEBUG - [GPU] Got device: GP107GL [Quadro P400], nvidia@unknown, default false, best true, ID /dev/dri/renderD129, DevID [10de:1cb3:10de:11be], flags 0xe

It appears the P400 is not the default GPU rendering device. How do you assign the default rendering device for plex?

Logs for reference:
Plex Media Server Logs_2023-01-17_06-47-29.zip (3.0 MB)

@justim,

For you… due to no QSV in a 2013 xeon, there is no renderD128, The Nvidia will be on renderD128 because of how the kernel initializes (CPU then PCI devices in sequence)

D128 didn’t seem to help. The transcode eventually shows up in nvidia-smi and plays but only after a long delay. Sometimes the delay is long enough for report users to get the network error

Attached are logs created after the latest PMS update and D128 changes.
Plex Media Server Logs_2023-02-07_03-48-04.zip (2.1 MB)

Tue Feb  7 03:44:42 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.78.01    Driver Version: 525.78.01    CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| 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 P400         Off  | 00000000:03:00.0 Off |                  N/A |
| 34%   42C    P0    N/A /  30W |    111MiB /  2048MiB |      1%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A     25901      C   ...aserver/Plex Media Server      107MiB |
+-----------------------------------------------------------------------------+

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