Follow you suggestin, add the user root to group render, as follows,
On debian 10 VM,
root@debian:/dev/dri# pwd
/dev/dri
root@debian:/dev/dri# ls -l
总用量 0
drwxrwxrwx 2 root root 80 10月 3 15:17 by-path
crwxrwxrwx 1 root render 226, 0 10月 3 15:17 card0
crwxrwxrwx 1 root render 226, 128 10月 3 15:17 renderD128
In docker container (same group id, render in docker container is video1) ,
root@debian:/dev/dri# pwd
/dev/dri
root@debian:/dev/dri# ls -l
total 0
crwxrwxrwx 1 root video1 226, 0 Oct 11 03:32 card0
crwxrwxrwx 1 root video1 226, 128 Oct 11 03:32 renderD128
Docker env list:
PLEX_UID: 0(root)
PLEX_GID: 0(root)
Also, undev package is installed,
root@debian:/dev/dri# apt list | grep udev
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
bilibop-udev/stable 0.5.6 amd64
brightness-udev/stable 0.4-1 all
gir1.2-gudev-1.0/stable 232-2 amd64
hdmi2usb-udev/stable 0.0.1-2 all
ledger-wallets-udev/stable 0.2 all
libgudev-1.0-0/stable 232-2 amd64
libgudev-1.0-dev/stable 232-2 amd64
libgudev1.0-cil-dev/stable 0.1-4 all
libgudev1.0-cil/stable 0.1-4 all
librust-libudev-sys-dev/stable 0.1.4-1 amd64
libtss2-udev/stable 2.1.0-4 all
libu2f-udev/stable 1.1.9-1 all
libudev-dev/stable 241-7~deb10u4 amd64
libudev1/stable,now 241-7~deb10u4 amd64 [已安装]
libyubikey-udev/stable 1.19.3-3+deb10u1 all
limesuite-udev/stable 18.06.0+dfsg-1 all
ludevit/stable 8.1 all
monodoc-gudev-manual/stable 0.1-4 all
python-pyudev/stable 0.21.0-1 all
python3-pyudev/stable 0.21.0-1 all
sg3-utils-udev/stable 1.44-1 all
system-config-printer-udev/stable 1.5.11-4 amd64
udev/stable,now 241-7~deb10u4 amd64 [已安装]
udevil/stable 0.4.4-2 amd64
uudeview/stable 0.5.20-11 amd64
But the result is still the same,
Oct 11, 2020 04:02:26.785 [0x7f3fa97fa700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Oct 11, 2020 04:02:26.786 [0x7f3fa97fa700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Input/output error
Oct 11, 2020 04:02:26.786 [0x7f3fa97fa700] DEBUG - [Transcode] Codecs: testing h264_nvenc (encoder)
Oct 11, 2020 04:02:26.786 [0x7f3fa97fa700] DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvenc
Oct 11, 2020 04:02:26.786 [0x7f3fa97fa700] ERROR - [Transcode] [FFMPEG] - Cannot load libcuda.so.1
Oct 11, 2020 04:02:26.786 [0x7f3fa97fa700] ERROR - [Transcode] [FFMPEG] - Could not dynamically load CUDA
Oct 11, 2020 04:02:26.786 [0x7f3fa97fa700] DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Oct 11, 2020 04:02:26.786 [0x7f3fa97fa700] DEBUG - [Transcode] Codecs: testing vp9 (decoder) with hwdevice vaapi
Is there a way to know which hwa implementations and which gpu device the plex uses? It would be great if user can set the hardware detailed configuration in the web ui, such as VAAPI device.
what I’m hinting at is: You’ve got ESXi , why make it tough by adding docker? Instead, leverage ESXi. I have VMware Workstation here and have 13 VMs each with native PMS – No docker.
Beacuse all data disks direct pass-through to kvm, in order to debian can control S.M.A.R.T.
If use native plex package, everythins will be ok, but the reason for using docker is easy to monitor all apps status, and don’t worry about breaking the host. For users, docker is simple.