Illustrated title card for the guide: Jellyfin Docker Compose Hardware Acceleration Setup
docker

Jellyfin Docker Compose Hardware Acceleration Setup

Docker Compose settings for Jellyfin hardware transcoding with Intel QSV, AMD VA-API or NVIDIA NVENC, plus the checks and fixes the official docs give.

To get hardware transcoding in the official jellyfin/jellyfin image with Docker Compose, Intel and AMD GPUs need the host render device under devices: and the host’s render group id under group_add:. NVIDIA GPUs need the NVIDIA driver and the NVIDIA Container Toolkit on the host, and the tutorial’s Compose example adds runtime: nvidia and a GPU reservation under deploy:. After the container starts, you enable QSV, VA-API or NVENC in Jellyfin and uncheck the codecs your GPU does not support. Each Compose block below is copied from the Jellyfin documentation.

Jellyfin Guide is an independent, unofficial guide and is not affiliated with the Jellyfin project.

Pick the method for your GPU

Jellyfin’s hardware acceleration page recommends these methods on a Linux host:

GPU vendorMethod on LinuxNotes from the vendor tutorial
IntelQSVQSV is preferred on mainstream GPUs. VA-API is required by pre-Broadwell legacy GPUs. Linux QSV supports Broadwell (5th gen Core) and newer.
AMDVA-APIVA-API is preferred on all GPUs. Full acceleration on Polaris (RX400/500) and newer uses VA-API with Vulkan interop. AMF on Linux is not recommended.
NVIDIANVENCSupported on NVIDIA GPUs since the Maxwell architecture. NVENC is the only available method.

You can list the GPUs on a Linux host with the command the Jellyfin docs give:

lspci -nn | grep -Ei "3d|display|vga"

Some models lack the hardware these methods need. Intel processors ending in “F” have no integrated GPU. AMD RX 6400/6500 series cards have no video encoders. Some low-end and mobile NVIDIA models, such as the GT1030 and MX450, lack NVENC/NVDEC support.

Before you write the Compose file

  • Run it on Linux. The Jellyfin container page says running the container on a Windows or macOS host is not supported. It lists hardware accelerated transcoding among the features known to be broken on platforms other than Linux.
  • Use the official image. Jellyfin-ffmpeg usually ships with the official Docker images, and FFmpeg binaries from elsewhere result in partial acceleration. The LinuxServer.io image uses different config and data paths and has its own docs.
  • Container name. The docker exec checks below address a container named jellyfin. The installation page’s Compose example sets container_name: jellyfin, but the vendor examples do not, so use your container’s real name if it differs.
  • Networking. The vendor examples use network_mode: 'host'. The installation page says host networking is optional but required for DLNA, and that bridge mode is used when host mode is omitted. Its Compose example leaves host mode out and publishes 8096:8096/tcp and 7359:7359/udp.
  • Restart policy. The vendor examples have no restart: line. The installation page’s example sets restart: 'unless-stopped'.
  • User. The examples run as user: 1000:1000. The installation page says to replace uid:gid to run as a specific user and group, or leave the user line out to use the default user.

Start the stack from the folder that holds docker-compose.yml with docker compose up, adding -d to run it in the background.

Intel QSV or VA-API

The official Docker image comes with all necessary user mode Intel media drivers and the OpenCL runtime. The tutorial’s remaining work is passing the host’s render group id to Docker, with the render device mapped as in the example below.

First, confirm the host has a render node. The Intel tutorial’s Debian and Ubuntu host steps say at least one renderD* device must exist in /dev/dri, otherwise upgrade the kernel or enable the iGPU in the BIOS.

ls -l /dev/dri

Then read the host’s render group id. On some releases the group may be video or input instead of render.

getent group render | cut -d: -f3

This is the Compose file from the Intel tutorial. The value '122' is an example: put your own id in its place.

services:
  jellyfin:
    image: jellyfin/jellyfin
    user: 1000:1000
    group_add:
      - '122' # Change this to match your "render" host group id and remove this comment
    network_mode: 'host'
    volumes:
      - /path/to/config:/config
      - /path/to/cache:/cache
      - /path/to/media:/media
    devices:
      - /dev/dri/renderD128:/dev/dri/renderD128

To use a second GPU, change renderD128 to renderD129. Once the container is up, check the QSV and VA-API codecs and the OpenCL runtime from inside it:

docker exec -it jellyfin /usr/lib/jellyfin-ffmpeg/vainfo
docker exec -it jellyfin /usr/lib/jellyfin-ffmpeg/ffmpeg -v verbose -init_hw_device vaapi=va -init_hw_device opencl@va

Then enable QSV or VA-API in Jellyfin and uncheck the unsupported codecs. The Intel tutorial notes that the iHD driver supports both the QSV and VA-API interfaces, while the i965 driver supports only VA-API and should only be used on pre-Broadwell platforms.

Two Intel cases need extra host work, covered in the Intel tutorial and the known issues page:

  • Jasper Lake and Elkhart Lake (for example N5095, N5105, N6005, J6412): the Low-Power encoding mode must be configured and enabled for the bitrate control Jellyfin requires.
  • ARC B-series discrete GPUs: Linux kernel 6.12 or newer is required, and Resizable-BAR is mandatory, or the media driver will crash the transcoder.

AMD VA-API

The official Docker image comes with all necessary user mode Mesa drivers. The AMD tutorial asks you to query both the render and video group ids on the host and use them in the Docker CLI or Compose file. On some releases the group may be input.

getent group render | cut -d: -f3
getent group video | cut -d: -f3

The AMD tutorial’s Compose example is the same shape as the Intel one, with one group_add entry for the render group:

services:
  jellyfin:
    image: jellyfin/jellyfin
    user: 1000:1000
    group_add:
      - '122' # Change this to match your "render" host group id and remove this comment
    network_mode: 'host'
    volumes:
      - /path/to/config:/config
      - /path/to/cache:/cache
      - /path/to/media:/media
    devices:
      - /dev/dri/renderD128:/dev/dri/renderD128

Check the VA-API codecs and the Vulkan runtime inside the container:

docker exec -it jellyfin /usr/lib/jellyfin-ffmpeg/vainfo --display drm --device /dev/dri/renderD128
docker exec -it jellyfin /usr/lib/jellyfin-ffmpeg/ffmpeg -v debug -init_hw_device vulkan

In the vainfo output, VAEntrypointVLD means the card can decode that format and VAEntrypointEncSlice means it can encode to it. Enable VA-API in Jellyfin and uncheck the unsupported codecs based on the vainfo output.

The Jellyfin known issues page says some Linux distros, including Fedora, OpenSUSE and Manjaro, disabled the H.264 and HEVC codecs in their Mesa VA-API driver, and suggests the Jellyfin Docker image as one way around it.

NVIDIA NVENC

The official Docker image does not include any NVIDIA proprietary driver. You install the driver and the NVIDIA Container Toolkit on the host. The Jellyfin NVIDIA tutorial says that in Jellyfin 10.11 the minimum NVIDIA driver version on Linux is 520.56.06.

Install and configure the NVIDIA Container Toolkit

These are the steps from the NVIDIA Container Toolkit install guide for Ubuntu and Debian. The guide says the same instructions should work for any Debian-derived distribution. The guide also covers dnf and zypper.

sudo apt-get update && sudo apt-get install -y --no-install-recommends \
   ca-certificates \
   curl \
   gnupg2

curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
  && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \
    sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
    sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list

sudo apt-get update

export NVIDIA_CONTAINER_TOOLKIT_VERSION=1.20.2-1
  sudo apt-get install -y \
      nvidia-container-toolkit=${NVIDIA_CONTAINER_TOOLKIT_VERSION} \
      nvidia-container-toolkit-base=${NVIDIA_CONTAINER_TOOLKIT_VERSION} \
      libnvidia-container-tools=${NVIDIA_CONTAINER_TOOLKIT_VERSION} \
      libnvidia-container1=${NVIDIA_CONTAINER_TOOLKIT_VERSION}

NVIDIA’s guide pins version 1.20.2-1 in this command. Then point Docker at the NVIDIA runtime and restart it. The nvidia-ctk command modifies /etc/docker/daemon.json on the host.

sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker

For rootless Docker, the NVIDIA guide gives a separate set of commands.

The Compose file

This is the Compose file from the Jellyfin NVIDIA tutorial:

services:
  jellyfin:
    image: jellyfin/jellyfin
    user: 1000:1000
    network_mode: 'host'
    volumes:
      - /path/to/config:/config
      - /path/to/cache:/cache
      - /path/to/media:/media
    runtime: nvidia
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]

The Docker Compose GPU page explains the reservation fields:

  • capabilities must be set, otherwise deployment returns an error.
  • With count: all, as in the example above, or with neither count nor device_ids set, all GPUs available on the host are used by default.
  • To pick specific GPUs, use device_ids with ids from nvidia-smi on the host, for example device_ids: ['0', '3'] for GPU-0 and GPU-3. count and device_ids are mutually exclusive.

The official Jellyfin image already sets the required NVIDIA environment variables. If you build your own image, the tutorial says to add NVIDIA_DRIVER_CAPABILITIES=all and NVIDIA_VISIBLE_DEVICES=all.

Next, the tutorial adds your user to the video group, updates dynamic links and restarts Docker:

sudo usermod -aG video $USER
docker exec -it --user root jellyfin ldconfig
sudo systemctl restart docker

Check the GPU from inside the container, then enable NVENC in Jellyfin and uncheck the unsupported codecs:

docker exec -it jellyfin nvidia-smi

If you see CUDA_ERROR_NO_DEVICE

For the upstream issue CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected, the Jellyfin tutorial says to pass these extra devices to the container:

/dev/nvidia-caps:/dev/nvidia-caps
/dev/nvidia0:/dev/nvidia0
/dev/nvidiactl:/dev/nvidiactl
/dev/nvidia-modeset:/dev/nvidia-modeset
/dev/nvidia-uvm:/dev/nvidia-uvm
/dev/nvidia-uvm-tools:/dev/nvidia-uvm-tools

Confirm the GPU is doing the work

Every vendor tutorial uses the same trigger: play a video in the Jellyfin web client and force a transcode by setting a lower resolution or bitrate. Then watch the GPU on the host.

GPUHost toolWhat to look for
Intelsudo intel_gpu_top (package intel-gpu-tools on Debian and Ubuntu)The Video engine shows QSV decoder or encoder workload. VideoEnhance shows QSV VPP workload.
AMDradeontopActivity on the 3D engines. The AMD tutorial says there is no reliable way to read the VCE/UVD/VCN engine occupancy on Linux.
NVIDIAnvidia-smiGPU occupancy and the VRAM use of each jellyfin-ffmpeg process.

Common problems and the documented fix

ProblemWhat the official docs say
No renderD* device in /dev/driThe Intel and AMD tutorials’ Debian and Ubuntu host steps say to upgrade the kernel or enable the iGPU in the BIOS.
H.264 10-bit video falls back to software decodingJellyfin’s overview says it falls back to software decoding for H.264 / AVC 10-bit (High 10 profile) video when there is no hardware decoder available, and suggests upgrading such video to H.265 / HEVC 10-bit. The NVIDIA tutorial lists H.264 10-bit decoding on Blackwell and newer as work in progress and not currently enabled in Jellyfin.
NVIDIA GPU disappears from a running containerThe known issues page says a container might randomly lose access to an NVIDIA GPU and links potential workarounds. The NVIDIA install guide notes a known issue where containers lose requested GPUs after a systemd daemon configuration reload on systems using systemd cgroup drivers.
NVIDIA on Docker DesktopDocker Desktop isn’t supported by the NVIDIA Container Toolkit, per the Jellyfin known issues page.
GeForce limited to a few streamsConsumer-targeted GeForce cards and some entry-level Quadro cards have an artificial limit on concurrent NVENC encoding sessions: the known issues table gives maximums of up to 12 sessions on driver 590 and newer, up to 8 on 550 to 58x, up to 5 on 530 to 546 and up to 3 before 530. The Intel and AMD tutorials say Intel iGPUs, ARC discrete GPUs and AMD GPUs have no such limit.
Transcoding slowed by disk speedOn modern GPUs, hard drive I/O speed can limit peak transcoding throughput. Jellyfin suggests an SSD or RamDisk for caching the transcoded temporary video segments.

What this page leaves out

More Jellyfin setup and transcoding guides are listed on the all guides page.

Evidence and limits. The Compose files, commands and limits on this page come from the current Jellyfin documentation pages listed below, the NVIDIA Container Toolkit install guide (toolkit version 1.20.2-1) and Docker’s Compose GPU page. All were checked on 2026-11-26. The steps were not run for this guide.

Sources

  1. Jellyfin Docs: Container
  2. Jellyfin Docs: Hardware Acceleration
  3. Jellyfin Docs: HWA Tutorial On Intel GPU
  4. Jellyfin Docs: HWA Tutorial On AMD GPU
  5. Jellyfin Docs: HWA Tutorial On NVIDIA GPU
  6. Jellyfin Docs: Known Hardware Acceleration Issues and Limitations
  7. NVIDIA Container Toolkit: Installing the NVIDIA Container Toolkit
  8. Docker Docs: Run Docker Compose services with GPU access

Related