Server Version#: 1.41.5.9522
Player Version#: 2025.11.1
Hi everyone, I’m running a Plex inside a docker container on TrueNAS Scale with AMD Radeon 6600XT and I’m trying to use it for hardware acceleration.
I have a plex pass, hardware acceleration is enabled in settings and plex shows me my gpu as option.
compose.yml
services:
plex:
image: lscr.io/linuxserver/plex:latest
container_name: plex
network_mode: host
environment:
- PUID=568
- PGID=568
- TZ=Etc/UTC
- VERSION=docker
- PLEX_CLAIM= #optional
group_add:
- 226
volumes:
- /mnt/ssd-pool/configs/plex:/config
- /mnt/big-boy/media:/data
devices:
- /dev/dri:/dev/dri
tmpfs:
- /transcode
restart: unless-stopped
networks: {}
Note: I tried with official plex container too but it didn’t work. Added the render group by GID to make sure permissions are right but I tested without it. 568 is TrueNAS’s default apps which is used for running docker applications.
Relevant log:
48 Apr 08, 2025 11:40:54.617 [139701541583672] DEBUG - [GPU] Got device: AMD Navi 23 [Radeon RX 6600/6600 XT/6600M], amd@unknown, default true, best true, ID 1002:73ff:1eae:6501@0000:09:00.0, DevID [1002:73ff:1eae:6501], flags 0x60
7 Apr 08, 2025 11:43:31.489 [139701523188536] DEBUG - [Req#19f9/Transcode] Codecs: testing h264 (decoder) with hwdevice vaapi
6 Apr 08, 2025 11:43:31.489 [139701523188536] VERBOSE - [Req#19f9/Transcode] [FFMPEG] - Rescanning for external libs: '/config/Library/Application\ Support/Plex\ Media\ Server/Codecs/e613bce-97f23d579c1001d8e9cc0d2e-linux-x86_64/'
5 Apr 08, 2025 11:43:31.489 [139701523188536] DEBUG - [Req#19f9/Transcode] Codecs: hardware transcoding: testing API vaapi for device '/dev/dri/renderD128' (AMD Navi 23 [Radeon RX 6600/6600 XT/6600M])
4 Apr 08, 2025 11:43:31.489 [139701523188536] VERBOSE - [Req#19f9/Transcode] [FFMPEG] - libva: VA-API version 1.21.0
3 Apr 08, 2025 11:43:31.489 [139701523188536] VERBOSE - [Req#19f9/Transcode] [FFMPEG] - libva: User requested driver 'i965'
2 Apr 08, 2025 11:43:31.489 [139701523188536] VERBOSE - [Req#19f9/Transcode] [FFMPEG] - libva: Trying to open /config/Library/Application Support/Plex Media Server/Cache/va-dri-linux-x86_64/i965_drv_video.so
1 Apr 08, 2025 11:43:31.489 [139701523188536] VERBOSE - [Req#19f9/Transcode] [FFMPEG] - libva: va_openDriver() returns -1
16541 Apr 08, 2025 11:43:31.489 [139701523188536] ERROR - [Req#19f9/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
1 Apr 08, 2025 11:43:31.489 [139701523188536] DEBUG - [Req#19f9/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: I/O error
2 Apr 08, 2025 11:43:31.489 [139701523188536] DEBUG - [Req#19f9/Transcode] Could not create hardware context for h264
It seems Plex is trying to use i915 driver instead of amdgpu driver.
This could be because I migrated from Synology 220+ to TrueNAS with AMD gpu. Is there a way to fix it? if I delete e613bce-97f23d579c1001d8e9cc0d2e-linux-x86_64 codec directory will plex download the appropriate one for amd driver? Not even sure if it works that way.
Thank you for your time and if any additional info is needed I can provide it.