Help debugging lack of HW transcoding

Server Version#: 1.30.1.6497
Player Version#: Latest Android

Hi,

I am running Proxmox on an Alder Lake Pentium Gold machine and within that have a LXC with Plex running on it (LXC is Rocky Linux 8.7). The container is running in privileged mode and I can see the dri device from inside it:

$ ll /dev/dri/
total 0
drwxr-xr-x 2 root root       80 Dec 29 18:52 by-path
crw-rw---- 1 root   44 226,   0 Dec 29 18:52 card0
crw-rw---- 1 root  103 226, 128 Dec 29 18:52 renderD128

In the log I spotted the following:

Dec 29, 2022 22:29:46.777 [0x7f019d260b38] DEBUG - [Req#53f/Transcode] Could not create hardware context for h264
Dec 29, 2022 22:29:46.777 [0x7f019d260b38] DEBUG - [Req#53f/Transcode] Codecs: testing h264 (decoder) with hwdevice nvdec
Dec 29, 2022 22:29:46.778 [0x7f019d260b38] DEBUG - [Req#53f/Transcode] Codecs: hardware transcoding: testing API nvdec
Dec 29, 2022 22:29:46.778 [0x7f019d260b38] ERROR - [Req#53f/Transcode] [FFMPEG] - Cannot load libcuda.so.1
Dec 29, 2022 22:29:46.778 [0x7f019d260b38] ERROR - [Req#53f/Transcode] [FFMPEG] - Could not dynamically load CUDA
Dec 29, 2022 22:29:46.778 [0x7f019d260b38] DEBUG - [Req#53f/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Operation not permitted
Dec 29, 2022 22:29:46.778 [0x7f019d260b38] DEBUG - [Req#53f/Transcode] Could not create hardware context for h264

Is the fact that PMS is trying to use CUDA even though I don’t have an NVidia card a pointer to some configuration issue? Any other ideas how I could try to debug this issue?

Cheers,
Dinyar

Edited to add the output of lspci:

$ sudo lspci -v -s $(lspci | grep VGA | cut -d" " -f 1)
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 710] (rev 0c) (prog-if 00 [VGA controller])
        DeviceName: Onboard - Video
        Subsystem: Gigabyte Technology Co., Ltd Device d000
        Flags: bus master, fast devsel, latency 0, IRQ 130
        Memory at 41000000 (64-bit, non-prefetchable) [size=16M]
        Memory at 50000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 3000 [size=64]
        Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
        Capabilities: [40] Vendor Specific Information: Len=0c <?>
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable+ 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [100] Process Address Space ID (PASID)
        Capabilities: [200] Address Translation Service (ATS)
        Capabilities: [300] Page Request Interface (PRI)
        Capabilities: [320] Single Root I/O Virtualization (SR-IOV)
        Kernel driver in use: i915
lspci: Unable to load libkmod resources: error -12

for comparison this is the output on the Proxmox host:

# lspci -v -s $(lspci | grep VGA | cut -d" " -f 1)
00:02.0 VGA compatible controller: Intel Corporation Device 4693 (rev 0c) (prog-if 00 [VGA controller])
        DeviceName: Onboard - Video
        Subsystem: Gigabyte Technology Co., Ltd Device d000
        Flags: bus master, fast devsel, latency 0, IRQ 130
        Memory at 41000000 (64-bit, non-prefetchable) [size=16M]
        Memory at 50000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 3000 [size=64]
        Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
        Capabilities: [40] Vendor Specific Information: Len=0c <?>
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable+ 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [100] Process Address Space ID (PASID)
        Capabilities: [200] Address Translation Service (ATS)
        Capabilities: [300] Page Request Interface (PRI)
        Capabilities: [320] Single Root I/O Virtualization (SR-IOV)
        Kernel driver in use: i915
        Kernel modules: i915

Second edit to add: After searching a bit more found the Intel-related message:

Dec 29, 2022 22:28:04.671 [0x7f019d4fdb38] DEBUG - [Req#1c2/Transcode] Codecs: testing h264_vaapi (encoder)
Dec 29, 2022 22:28:04.672 [0x7f019d4fdb38] DEBUG - [Req#1c2/Transcode] Codecs: hardware transcoding: testing API vaapi
Dec 29, 2022 22:28:04.672 [0x7f019d4fdb38] DEBUG - [Req#1c2/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library

Is there a way to find out what the error in the external library is?

To complete this: I think I “solved” the issue by moving the LXC to the latest Ubuntu template. I also installed intel-gpu-tools (to get intel_gpu_top), not sure if this could also be related.

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