Sign in

Mod for jellyfin

jellyfin-amd

This mod adds the mesa libraries (v20.1+) needed for hardware encoding (VAAPI) on AMD GPUs to the Jellyfin Docker container (latest tag).

arch
amd64
built

Use it#

Set DOCKER_MODS on the jellyfin container and recreate it. The mod is pulled on every start; several mods are separated with |.

DOCKER_MODS=ghcr.io/linuxserver-playground/mods:jellyfin-amd

:jellyfin-amd always gets the newest build. To stay on this one, pin its tag:

DOCKER_MODS=ghcr.io/linuxserver-playground/mods:jellyfin-amd-27bc865
services:
  jellyfin:
    image: ghcr.io/linuxserver-playground/jellyfin:latest
    environment:
      - DOCKER_MODS=ghcr.io/linuxserver-playground/mods:jellyfin-amd

Details#

To enable, you need to add the 2 following entries:

  • Device mapping for /dev/dri and /dev/kfd
    • docker-compose:
          devices:
            - /dev/dri:/dev/dri
            - /dev/kfd:/dev/kfd
    • docker cli
      --device /dev/dri:/dev/dri
      --device /dev/kfd:/dev/kfd
  • Environment Variable: DOCKER_MODS=ghcr.io/linuxserver-playground/mods:jellyfin-amd
    • docker-compose:
          environment:
            - DOCKER_MODS=ghcr.io/linuxserver-playground/mods:jellyfin-amd
    • docker cli:
      -e DOCKER_MODS=ghcr.io/linuxserver-playground/mods:jellyfin-amd

Settings in Jellyfin

Under server administration in Server > Playback the Hardware acceleration can be set to Video Acceleration API (VAAPI) and the VA API Device has to be set to the device given in the Docker configuration. For example /dev/dri/renderD128.

Community project

Improve this mod, or make your own

Mods are how LinuxServer images grow without getting heavier: a Dockerfile, a few scripts and a mod.yml. If this one is missing something, or you need one like it for another image, an AI agent in our harness can build and test it with you.

Ask your agent

  • The jellyfin-amd mod <what is wrong>. Fix it, test it and draft the PR.
  • Make a mod like jellyfin-amd for <another image>, and test it.

Making a mod Every way to help Get the harness (opens in a new tab)

Source: jellyfin-amd branch (opens in a new tab). Every mod