Server Version#: plexmediaserver 1.32.8.7639-fb6452ebf amd64
Player Version#: iOS Mobile App
I’m trying tu use my AMD GPU (Renoir) as a hardware transcoding device, On Ubuntu Server 23.10. Whenever I try to playback a movie that is transcoded, the playback fails and I see this in my syslog:
2024-01-08T09:05:40.816810+00:00 ubuntu-gpu Plex Media Server[6516]: /data/jenkins/conan_build/1113263720/conan/.conan/data/libdrm/2.4.115-3/plex/stable/build/73ee780ba6ea3ef381da6e7f229c475bfaf477ca/meson-install/share/libdrm/amdgpu.ids: No such file or directory
Just before that the plex server log shows only:
Jan 08, 2024 10:30:11.408 [139864868862776] INFO - [Req#8f76/Transcode/F8F39E20-C080-4AAE-AC97-30B58EB1F73B] Preparing driver rsv for GPU Renoir
It seems plexmediaserver tries to access files via a static path that has been set during the build process via the jenkins pipeline?
The server has been installed from the official ubuntu/debian .deb package.
Any ideas?
Do you have tonemapping enabled ?
(AMD GPUs don’t have tonemapping support yet. It’s one of the many things on the transcoder to-do list)
No, HDR tone mapping is off…
Are you using Docker on Debian? If so there is an undocumented step to add a volume that to the container. Not sure why I can’t find this in Plex support forums but it solved my problem
volumes:
- /usr/share/libdrm:/data/jenkins/conan_build/1113263720/conan/.conan/data/libdrm/2.4.115-3/plex/stable/build/73ee780ba6ea3ef381da6e7f229c475bfaf477ca/meson-install/share/libdrm/amdgpu:ro
I confirmed my computer has the appropriate file that the container looks for by browsing to /usr/share/libdrm on my server.
This solved my logs showing that error all the time and appears to have resolved my transcoding issues with my 5700g
Relaying the message from Unraid forums
This is a makeshift solution which was arrived to after multiple trial and errors
Don’t know why image creators don’t include this library within their images which is causing the error and not allowing proper transcoding to happen
Unraid OS has this library available in the Host OS so just mounting this to the container fixes the issue.
Since many are not using AMD APU’s to transcode, Plex docker image creators have not faced this issue to fix it.
Hope there is complete AMD transcode soon for a proper fix for this issue
Unraid Forums Link
Folks,
Been out sick a lot. Just getting back into the office.
I messaged the transcoder Engineer and will also bring this up in Engineering meeting on Monday to get the container looked at.
I’ll try to carve some time this weekend to spin up my Unraid host.
It’s not a docker container I’m running plex in but indeed a debian lxc container. Ill take a look if I can fix this with the same approach and see if it works!
If you’re doing this in a LXC then I should be able to replicate ?
I have a NUC (dual GPU) on Ubuntu 20 with LXC.
I’ll give that a shot.
@RedChili78
Check your host itself for /usr/share/libdrm
Debian 11 and newer don’t have it.
Ubuntu 20 does have it.
/usr/share/libdrm
[chuck@lizum lxc.2012]$ ls -la /usr/share/libdrm
total 28
drwxr-xr-x 2 root root 24 Sep 1 21:51 ./
drwxr-xr-x 316 root root 12288 Jan 30 15:46 ../
-rw-r--r-- 1 root root 10551 Jul 2 2021 amdgpu.ids
[chuck@lizum lxc.2013]$ cat /usr/share/libdrm/amdgpu.ids
# List of AMDGPU IDs
#
# Syntax:
# device_id, revision_id, product_name <-- single tab after comma
1.0.0
15DD, C3, AMD Radeon(TM) Vega 3 Graphics
15DD, CB, AMD Radeon(TM) Vega 3 Graphics
15DD, CE, AMD Radeon(TM) Vega 3 Graphics
15DD, D8, AMD Radeon(TM) Vega 3 Graphics
Something is afoot with the Debian 11 / 12 distros.
This is the 2nd time this week we’ve had problems with 11.
We had a problem where the new dpkg doesn’t support debian 11 (by default compression level) in the DEB file.
dpkg, DEB, debian 11… Sensing a theme here?
Considering a possible flaw in the libdrm-common package .
root@jemini:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server# dpkg -l | grep libdrm
ii libdrm-common 2.4.113-2~ubuntu0.22.04.1 all Userspace interface to kernel DRM services -- common files
ii libdrm-intel1:amd64 2.4.113-2~ubuntu0.22.04.1 amd64 Userspace interface to intel-specific kernel DRM services -- runtime
ii libdrm-nouveau2:amd64 2.4.113-2~ubuntu0.22.04.1 amd64 Userspace interface to nouveau-specific kernel DRM services -- runtime
ii libdrm2:amd64 2.4.113-2~ubuntu0.22.04.1 amd64 Userspace interface to kernel DRM services -- runtime