And reverting back to 1.32.1.6999-91e1e2e2c with the docker-mod works.
current version does not even allow me to play on devices other than the web at all…
it does not fall back to sw transcoding as it did before, instead it says its hw transcoding in the dashboard but the client just does not play the file…
What was your experience?
I am running the current Plex beta with a Ryzen 9 9700 (RDNA2 iGPU). Though i can see a “Raphael” option in the plex settings, it does not appear to be utilised when i force transcoding.
@MJBirge and ALL
I just spoke with the engineer about the Raphael.
We’re not sure what the kernel is doing or even how it’s being identified.
Do any of you have the GPU on Linux and might be willing to allow SSH / controlled experimentation to probe it ?
SSH access is fine, i’ve sent you a message privately
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:164e] (rev c4)
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:164e]
Kernel driver in use: amdgpu
Kernel modules: amdgpu
description: VGA compatible controller
product: Advanced Micro Devices, Inc. [AMD/ATI]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:01:00.0
version: c4
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi msix vga_controller bus_master cap_list rom
configuration: driver=amdgpu latency=0
resources: iomemory:c00-bff iomemory:c00-bff irq:16 memory:c000000000-c00fffffff memory:c010000000-c0101fffff ioport:d000(size=256) memory:c1000000-c107ffff memory:c1080000-c108ffff
We’re using the amdgpu drivers. This required a recent kernel.
vainfo reports it’s functions successfully.
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: Mesa Gallium driver 22.2.5-0ubuntu0.1~22.04.3 for GFX1036 (gfx1036, LLVM 15.0.7, DRM 3.52, 6.3.7-060307-generic)
vainfo: Supported profile and entrypoints
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileAV1Profile0 : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
I’m able to transcode on the host
Hi,
Like others before, I found this post when trying to see how to make my AMD device use HW encoding in Plex.
Yesterday I tried for hours all possibilities mentioned in this thread though with no success.
My last attempt are around the options provided by @jeffle81, both with the mod alternative and with the docker image.
No matter what I tried, I cannot get HW encoding working.
I use a Minisforum UM690 mini-pc with a Ryzen 9 6900HX processor and included Radeon 680M GPU.
I have a debian environment and use docker compose (through portainer) to run Plex.
Below is the last configuration i used, with the mod option
version: "3"
services:
plex:
image: lscr.io/linuxserver/plex:version-1.32.1.6999-91e1e2e2c
container_name: plex
hostname: torete
network_mode: host
privileged: true
environment:
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- TERM=xterm
- LANG=C.UTF-8
- LC_ALL=C.UTF-8
- CHANGE_CONFIG_DIR_OWNERSHIP=true
- HOME=/config
- PLEX_CLAIM=REDACTED
- PLEX_UID=1000
- PLEX_GID=1000
- PUID=1000
- PGID=1000
- DOCKER_MODS=jefflessard/plex-vaapi-amdgpu-mod
volumes:
.... media volumes ....
- /media/docker/plex/config:/config
- /media/docker/plex/transcode:/transcode
devices:
- /dev/dri:/dev/dri
restart: unless-stopped
I downloaded a 4K movie and when trying to watch it either on Google TV, or on my mobile, I get the following error in the logs:
Jobs: Exec of /config/Library/Application Support/Plex Media Server/Codecs/EasyAudioEncoder-1847-linux-x86_64/EasyAudioEncoder/EasyAudioEncoder failed. (13)
On the device it says:
An error ocurred while attempting to play this vide. Please check your connection and try again
This is the output from the terminal by running the command mentioned ont he github from @jeffle81
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
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 @ 0x7f8bddb09d00] libva: VA-API version 1.17.0
[AVHWDeviceContext @ 0x7f8bddb09d00] libva: Trying to open /vaapi-amdgpu/lib/dri/radeonsi_drv_video.so
[AVHWDeviceContext @ 0x7f8bddb09d00] libva: Found init function __vaDriverInit_1_17
[AVHWDeviceContext @ 0x7f8bddb09d00] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x7f8bddb09d00] Initialised VAAPI connection: version 1.17
[AVHWDeviceContext @ 0x7f8bddb09d00] Format 0x3231564e -> nv12.
[AVHWDeviceContext @ 0x7f8bddb09d00] Format 0x30313050 -> p010le.
[AVHWDeviceContext @ 0x7f8bddb09d00] Format 0x36313050 -> unknown.
[AVHWDeviceContext @ 0x7f8bddb09d00] Format 0x30323449 -> yuv420p.
[AVHWDeviceContext @ 0x7f8bddb09d00] Format 0x32315659 -> yuv420p.
[AVHWDeviceContext @ 0x7f8bddb09d00] Format 0x56595559 -> unknown.
[AVHWDeviceContext @ 0x7f8bddb09d00] Format 0x32595559 -> yuyv422.
[AVHWDeviceContext @ 0x7f8bddb09d00] Format 0x59565955 -> uyvy422.
[AVHWDeviceContext @ 0x7f8bddb09d00] Format 0x30303859 -> gray.
[AVHWDeviceContext @ 0x7f8bddb09d00] Format 0x50343434 -> yuv444p.
[AVHWDeviceContext @ 0x7f8bddb09d00] Format 0x41524742 -> bgra.
[AVHWDeviceContext @ 0x7f8bddb09d00] Format 0x41424752 -> rgba.
[AVHWDeviceContext @ 0x7f8bddb09d00] Format 0x58524742 -> bgr0.
[AVHWDeviceContext @ 0x7f8bddb09d00] Format 0x58424752 -> rgb0.
[AVHWDeviceContext @ 0x7f8bddb09d00] VAAPI driver: Mesa Gallium driver 22.3.6 for AMD Radeon Graphics (rembrandt, LLVM 15.0.7, DRM 3.49, 6.1.0-9-amd64).
[AVHWDeviceContext @ 0x7f8bddb09d00] Driver not found in known nonstandard list, using standard behaviour.
Successfully parsed a group of options.
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
Any recommendation on how to make this working?
Thanks
Some more morning progress.
It seems I may have managed (need to confirm after several hours of running the server) that I fixed the encoding error by changing the mounting details of the harddrive in fstab
UUID=REDACTED /media/NAS ext4 defaults,auto,rw,user,exec,nofail 0 2
Still, when trying to play 4k videos in Android it throws the error with the connection. There is no attempt to transcode them at all. I don’t see anything neither in Plex nor in the logs
Just wanted to chime in and say the latest version, v1.32.5.7210, is so far, working perfectly for hardware transcoding with a Ryzen 5 5600G using Cezanne! So happy to finally have built-in AMD support.
Using v1.32.5.7210, transcoding works fine in Plex Web, but still unable to get transocding to work on apple tv/fire tv/google tv/etc. Is that expected, and if so, any time-frame as to when those platforms will be supported?
These issues seemed to always be present (even when we only had transcoding through the mods/alternative Docker images), you can see my posts from earlier in the thread. The impression I got was that this was an issue with the individual client apps.
yes and no
these issues have been present in all ubuntu based images iirc
the mauimauer alpine based image didnt have this issue afaik
but basically a while ago mauimauer also did some workarounds because of some plex changes that broke his original image.
all ubuntu based images had the issue with the client app players, as does the current official beta one, so we are no further but in hopes that plex devs will be able to find a solution.
iirc the findings before were not a problem with the actual client apps but the way the server handles something (not sure what it was, some communication with the client while negotiating? I really dont remember anymore).
@ChuckPa I have a 5600G on Ubuntu and willing to test anything. I didn’t keep up with this thread for a few months sadly ![]()
Install PMS 1.32.5.7210
- Turn off HDR tone mapping
- Select the AMD GPU in the GPU selector
- SAVE
![]()
Oh sweet, thanks. Is there a Docker method to get this beta version or do I have to do something manually? I have Plex Pass.
Docker version is normal “PlexPass” . (1.32.5.7210 is in PlexPass/Beta right now)
Transcoder settings changes are the same regardless of Docker or native package.
Thanks, I will give that tag a try. I had switched back to the pms-docker image because it gets pushed more frequently. The plexpass tag on Dockerhub hasn’t been pushed for two years, which isn’t a big deal for the Plex server itself since it installs itself at run time, but the underlying OS, kernel, and packages are then 2 years old ![]()
If I’m doing something wrong or looking in the wrong place, let me know.
Oh? News to me.
sudo docker run \
-d \
--name plex \
--network=host \
-e PLEX_CLAIM="claim-J3YbuBpaBhE9oJS1jsma" \
-e TZ="EST" \
-e LANG="en_US.UTF-8" \
-e PLEX_UID=1000 \
-e PLEX_GID=1000 \
-e PUID=1000 \
-e PGID=1000 \
-h dockerplex \
-v /sata/dockerplex:/config \
-v /sata/dockerplex/tmp:/tmp \
-v /sata/dockerplex/transcode:/transcode \
-v /vie:/data \
-v /glock:/glock \
--device=/dev/dri:/dev/dri \
plexinc/pms-docker:plexpass
#docker start plex
#docker update --restart=unless-stopped plex
[chuck@lizum docker.2001]$ sudo ./dockerplex
plex
plex
Error response from daemon: No such container: plex
Error response from daemon: No such container: plex
Error response from daemon: No such container: plex
Untagged: plexinc/pms-docker:plexpass
Untagged: plexinc/pms-docker@sha256:8aeb4a982ea564ad309861dd251cd9e218aac3f4e4d3da21375568341be1b16f
Deleted: sha256:bd2a705539fb8e5a051e7754a97e7345e542e6e1aa374bf6d7cff0c2601034bd
Unable to find image 'plexinc/pms-docker:plexpass' locally
plexpass: Pulling from plexinc/pms-docker
a70d879fa598: Already exists
c4394a92d1f8: Already exists
10e6159c56c0: Already exists
d1042fe57e96: Already exists
ac5317c7b384: Already exists
47414e89d67b: Already exists
Status: Downloaded newer image for plexinc/pms-docker:plexpass
11c8893b172fa70cd6e87680d81b93ce6283019e4df93167cc8be760a7b36764
[chuck@lizum docker.2002]$

sha256:8aeb4a982ea564ad309861dd251cd9e218aac3f4e4d3da21375568341be1b16f
Sorry, yes. That image and tag exists, but there have been no updates to that tag in Dockerhub for 2 years.
i don’t handle releasing / pushing of packages.
I will ask
No worries, thanks! I will try out the beta version from there as you suggested.
