Got HW Transcoding to work with libva/vaapi on Ryzen APU (Ryzen 7 4700U)

I have the same CPU on the way to go in my unraid server too. Did you have to enable any AMD GPU drivers like the poster above me, or was it fine from the get go?

And what template is recommended? I’m currently using the Linux server image and template

The 5600G is relatively new hardware, and it needs a new kernel to be supported. I had to upgrade to Ubuntu 21.04 with Linux 5.11 before it worked.

Did you try the Hardware Enablement apt repo first? I have that on 20.04 and have the amd drivers that supposedly would support the igpu but maybe I do need a newer kernel.

I have same 5600g cpu and followed your config (not identical but should be same).. I get error when transcoding..

Did you do anything else besides this config and enabling the AMD driver with “modprobe amdgpu”?

I am optimistic since there are a couple people in here who say they have it working on unraid with 5600g’s

@JLR87 would you be willing to post your container configuration file (without plex key of course), and any other steps you’ve taken to get this to work? Myself and others would appreciate greatly!!

I also have 5600g on unraid and have spent hours and days trying to get this to work!

I have Plex working with hw transcoding on a AMD 5700G using below settings.

I am also wondering how to update the Plex Server components since it keeps showing new update available message on Plex Server Web GUI.

Success!!I followed your configuration and it worked! Thank you so much @Teknowiz !

image

Does anyone have HDR Tone mapping working still?

I was running several streams fine with HDR tone mapping disabled, I figured I’d try enabling it to see if work and as soon as I did my whole sever crashed. Didn’t physically power down but could not even connect to it from local network. Super weird… wondering if anyone has experienced similar?
Not sure if cause or coincidence yet… was doing this all remote so will have to wait till I’m home to try again so I don’t have to get my S/O to reboot my server for me again haha!

Glad you got it working. HDR tone mapping for Dolby Vision does not seem to work for me either, but far as I can tell normal HDR content is fine.

Glad to see you got it working :slight_smile:
Anyone worked out how to get this container to update to most recent version? @mauimauer hoping you may be able to answer this, thanks!!!

Hey guys, thank you so much for your contributions!

Running unRAID 6.9.2 + mauimauer/spritsail-plex container but I get the following error on the log: "chmod: /dev/dri/card0: No such file or directory"

I’ve run modprobe amdgpu and chmod -R 777 /dev/dri on the terminal… but Plex is still not even starting.

Edit: Dumb, dumb, dumb! I had to add /dev/dri/ as a device and not path! Duh.

I don’t think this container automatically updates Plex like other ones do. If you look at the spiritsail repo this was forked from, it has updates for every Plex update. So this container would likely need to be merged with upstream every few days to keep Plex up to date.

This is always the hard/annoying thing with using unofficial containers. I wonder if it’s possible to tweak the official container to support this.

I’ll update my build on mauimauer/spritsail-plex regularly (ie. whenever I update my own Plex server). As an alternative anyone can freely update the dockerfile themselves to update to a more recent version more quickly.

In any case you need to pull and re-create the docker container on your end. I use an automated solution (watchtower) to have my containers automatically updated whenever newer versions get pushed to the docker hub repositories.

2 Likes

I can confirm AMD Ryzen 5600G working with hardware transcode.

Let´s try to replicate my old script to run on my Opteron Server. It stopped to work. Will try to copy the idea of docker inside my server. Any extra tips?

@mauimauer that strategy to just copy the DRM libs does not work anymore? I’m trying to replicate your script here, but apparently, just copy the libs are not enough (or I’m forgetting something).

I already have LXD running, so I don’t want to mix it with docker. If you could specify what libs do you copy (or the script that do the trick), I will be very thankful.

Hi there,

Brand new to Unraid and Docker, having a bit of a hard time making this work…
@mauimauer any interested in making your Docker container available as part of Community Applications or at least putting up a small tutorial on how to make this work for newbies ?

Don’t get me wrong, I greatly appreciate the work that is going into making this possible, I just wish I had the technical chops to get that on my own… but halas…

2 Likes

Anyone else getting red/green/blue flickers in their video playback with hardware encoding enabled? I’m seeing it on both Android and web clients.

Got this going today. I can see it using the GPU on my 5600G in unRAID.

But, trying a larger file, a high bitrate HEVC 4K HDR video trying to transcode down to 1080 SDR I get poor performance. It will transcode at a rate of 0.9 resulting in stuttering. But watching the CPU usage is still fairly low, and the GPU usage is still around 10%

Is there something limiting this?

I used the original commands in the OP’s first post months ago to get hardware encoding/trans-coding working on my 4750G, but now a days they don’t seem to be effective. I am not using docker and am just running Plex on an ubuntu desktop/file server. Does the current work around only work with docker these days? I am using the latest Mesa drivers and update them pretty regularly.

With the latest version I have the transcode completely down, only direct play is working.
The error is the following:

An error occurred trying to play "Never Meet Your Heroes".

Error code: s1003 (Network)

I’ve tried with spritsail/plex-media-server:latest and everything works fine. Do you think is possible to have a patched release with version 1.25.1.5286?

1 Like