@ericswpark - got it working and confirmed the use of HW transcode on my Ryzen 7 4800U miniPC. Thanks!
1.32.5.7318 doesn’t seem to work for Raphael. GPU shows up selectable, but after selecting and saving, transcoding never uses hardware. Tried under LXC as well as pms-docker.
newest version seems to work for me as well on Ryzen9 5900HX, confirmed hw transcoding on chrome and iphone.
Plays back on iPhone as well as web version, will try next movie on AppleTV
1.32.5.7318 is also working on 5900HX with no docker mods, etc.
Just wanted to compare notes with anyone using a Ryzen 9 7xxxx CPU with integrated RDNA2 graphics (Raphael). Have any of you had success with any of the approaches?
Anyone got this working with Android clients? I’m getting good results with my 5600G with the web viewer and with Roku but with Android the video won’t even start playing.
Edit: whenever transcoding is attempted the logs show this error (even when its successful):
/data/jenkins/conan_build/1112346209/conan/.conan/data/libdrm/2.4.115-1/plex/stable/build/42eba9224a0a19c9b983c233343e5610c7362833/meson-install/share/libdrm/amdgpu.ids: No such file or directory
1.32.1.6999-91e1e2e2c is the last one to work with Raphael and linuxserver.io plex docker with mod GitHub - jefflessard/plex-vaapi-amdgpu-mod: linuxserver.io mod to enable hardware acceleration using vaapi amdgpu on linuxserver/plex. It also only works converting automatically. Doesn’t work if you select a specific resolution/bandwidth.
Thanks!
Yes! ![]()
EDIT: Sorry, couldn’t contain my excitement. Seeing usage on my GPU on my Ryzen 5 5600G under UnRAID using :plexpass. Plex Dashboard and Tautulli both reporting HW transcoding, and seeing graphics activity via radeontop while Plex is the only thing using my graphics card.
In the same boat with the previous mentions of Raphael issues. Version 1.32.1.6999-91e1e2e2c doesn’t seem to function either. If there’s anything I can provide to help with this, feel free to contact me.
Hi all, was wondering if people can help me please. I have a ryzen 5700G using Unraid. I’ve read all this thread and I’ve done the following:
added the info to the go file
#Setup HW pass-through for Plex transcoding
modprobe amdgpu
chmod -R 777 /dev/dri
added --device=/dev/dri to extra parameters
added device AMD GPU /dev/dri in template
added plexpass to template and updated
In Plex/transcoder section I see auto and my p400 gpu, but don’t see my Apu? I’ve tried removing my p400 and all settings for it for transcoding. But nothing shows up and doesn’t HW transcode?
I’ve managed to get it working. I had to change in bios the default boot of graphics from being my p400 to the APU. Now Plex shows both of them. Managed to do at 1080p to 720p transcode 3mbps , 8 transcodes. I’m sure I can get some more. But I’m extremely happy with this as it’s more than enough. I don’t transcode 4k things as my 4k content is just for me. Just want to say thank you all for your hard work and this thread. Manage to learn a lot and encourage me to buy my first 5700g
Thanks to everyone who contributed to this thread for all the effort you put in. I only recently became interested in getting hardware transcoding working on my 5600G and came across this thread yesterday. After reading through all of it, it is plain to see that many of you have been on this journey for a long time!
All I had to do was update my docker-compose.yaml file to use the plexinc/pms-docker:plexpass image, add the /dev/dri device, restart the container, and disable HDR tone mapping. Then it just worked. I can easily allow my family and friends to share in my Plex library now.
I am extremely grateful for the groundwork all of you did. It’s an inspiring example of how a software community can come together and collectively solve a problem. Thank you!
It’s pretty straight forward GitHub - jefflessard/plex-vaapi-amdgpu-mod: linuxserver.io mod to enable hardware acceleration using vaapi amdgpu on linuxserver/plex as long as you passing device in and using mod, it should work, you can verify using
docker exec -it -e LIBVA_DRIVERS_PATH=/vaapi-amdgpu/lib/dri -e LD_LIBRARY_PATH=/vaapi-amdgpu/lib plex \
/lib/plexmediaserver/Plex\ Transcoder -hide_banner -loglevel debug -vaapi_device /dev/dri/renderD128
I see some saying to turn off HDR tone mapping? I have mine checked and don’t see any issues when transcoding? Using ryzen 5700G
With more testing, can confirm at moment doesn’t seem to transcode on Android devices. I’ve tested firestick and fire tablet. Works on Xbox,ps4, iPhones Apple TV box
I was thinking of Plex’s own integration of it, not lsio’s image. Thanks though.
I’m running into this with my 5700xt:
docker exec -it Plex /lib/plexmediaserver/Plex\ Transcoder -hide_banner -loglevel debug -vaapi_device /dev/dri/renderD128
Splitting the commandline.
Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-vaapi_device' ... matched as option 'vaapi_device' (set VAAPI hardware device (DRM path or X11 display name)) with argument '/dev/dri/renderD128'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option hide_banner (do not show program banner) with argument 1.
Applying option loglevel (set logging level) with argument debug.
Applying option vaapi_device (set VAAPI hardware device (DRM path or X11 display name)) with argument /dev/dri/renderD128.
[AVHWDeviceContext @ 0x14fa1ce42dc0] libva: VA-API version 1.18.0
[AVHWDeviceContext @ 0x14fa1ce42dc0] libva: Trying to open /data/jenkins/conan_build/1112346209/conan/.conan/data/libva/2.18.0-1/plex/stable/build/f0f4893209b867ce448a96e25ef4d6b158311557/install/lib/dri/radeonsi_drv_video.so
[AVHWDeviceContext @ 0x14fa1ce42dc0] libva: va_openDriver() returns -1
[AVHWDeviceContext @ 0x14fa1ce42dc0] Failed to initialise VAAPI connection: -1 (unknown libva error).
Device creation failed: -5.
Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': I/O error
Error parsing global options: I/O error
Are you passing the /dev/dri device into the docker container?
For whatever reason it looks like I’m very late to the party on this. From the looks of it this is not possible with the out of the box “plexinc/pms-docker:plexpass” or “plexinc/pms-docker:beta” at the moment, right? I’m got a 5700G that I would love to push the GPU instead of the CPU.