I’m trying to get Hardware transcoding to work in jellyfin, with docker, in jailmaker, on scale 22.04.2 using an amd r7 250. Can’t seem to get it working.
I’ve set the following in the jail config:
gpu_passthrough_intel=1 (which passes through the /dev/dri directory)
–bind=‘/dev/kfd:/dev/kfd’
I’ve set the following in the docker-compose file:
services:
jellyfin:
container_name: jellyfin
image: linuxserver/jellyfin:10.9.11
ports:
- 192.168.10.34:8096:8096
- 192.168.30.34:8096:8096
- 192.168.10.34:7359:7359/udp
- 192.168.30.34:7359:7359/udp
environment:
- DOCKER_MODS=linuxserver/mods:jellyfin-amd
- PUID=852
- PGID=852
- TZ=America/New_York
volumes:
- /docker/data/jellyfin/config:/config
- /mnt/movies:/media/movies:ro
- /mnt/music:/media/music:ro
- /dev/dri:/dev/dri
- type: bind
source: /dev/kfd
target: /dev/kfd
restart: unless-stopped
cpu_shares: 512
memswap_limit: 2048M
deploy:
resources:
limits:
cpus: "4"
memory: 2048M
The /dev/dri and /dev/kfd locations are verified to be present in the container.
I’ve set the transcoding in jellyfin to VAAPI, and set the device to /dev/dri/renderD128
But when i try to play a video it just gives a playback error. I did notice that the GID for the render directory is different on scale, vs inside the jail. Could this be the issue? and how would i fix that?