brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Guide: let Jellyfin in Docker use your Intel iGPU for transcoding

let Jellyfin in Docker use your Intel iGPU for transcoding

Guide docker

6 steps 4 min read

A Jellyfin server that transcodes on the CPU is fine until two people press play at once. Then the fans spin up and the video stutters. If your server has an Intel processor with a built-in GPU, I’d hand that job to the GPU, because it is already there and mostly idle. Here is how I’d do it for the official jellyfin/jellyfin image, which is the one on my own Unraid box. You need an Intel CPU with an iGPU (not the ones ending in “F”, those have none) and a /dev/dri folder on the host.

Time
4 min
Steps
6
Updated
19 Nov 2026

You will learn

  • Check that the host has a render dev…
  • Find the group id of the render group
  • Pass the device and the group to the…
  • Ask the container what it sees
  • Switch it on in Jellyfin

What you get, and what you need

Quick Sync (QSV) lets the iGPU decode and encode video, so a transcode that eats a few CPU cores drops to almost nothing. Per the Jellyfin Intel guide, QSV on Linux needs a Broadwell (5th gen Core) or newer chip, and Intel has no limit on concurrent encoding sessions, unlike NVIDIA’s NVENC on consumer cards. No monitor has to be plugged in. The official image already ships the Intel media drivers and the OpenCL runtime, so the only work is passing the GPU into the container.

One catch for older hardware: HEVC 10-bit needs a 7th gen Core (Kaby Lake) or newer. A 6th gen chip handles H.264 and 8-bit HEVC, but not 10-bit.

Step 1 of 6: Check that the host has a render device

On the host (for Unraid, that is the terminal), look for a renderD* device:

ls -l /dev/dri

You want to see something like renderD128. If the folder is missing, the iGPU is probably switched off in the BIOS, or the kernel is too old. Fix that first, nothing else will work without it.

Step 2 of 6: Find the group id of the render group

The container user has to be allowed to write to that device. The docs say to pass the host’s render group id to Docker:

getent group render | cut -d: -f3

On some systems the group is called video or input instead. Run ls -l /dev/dri again and use the group name you see next to renderD128. The number that comes out (122 in the docs) is only an example. Use your own.

Step 3 of 6: Pass the device and the group to the container

This is the compose example from the Jellyfin docs, with my comments. Swap in your own group id and paths:

services:
  jellyfin:
    image: jellyfin/jellyfin
    user: 1000:1000
    group_add:
      - '122'            # your render group id from step 2
    network_mode: 'host'
    volumes:
      - /path/to/config:/config
      - /path/to/cache:/cache
      - /path/to/media:/media
    devices:
      - /dev/dri/renderD128:/dev/dri/renderD128

With docker run the same thing is --group-add="122" and --device /dev/dri/renderD128:/dev/dri/renderD128. A second GPU shows up as renderD129. On Unraid I’d expect to add the same device and group in the container template (the docs do not cover Unraid, so check what your template offers). Recreate the container afterwards, a plain restart does not pick up new devices.

Step 4 of 6: Ask the container what it sees

Before you touch any Jellyfin setting, check that the drivers can reach the GPU from inside the container:

docker exec -it jellyfin /usr/lib/jellyfin-ffmpeg/vainfo

You should get a list of supported profiles and entrypoints. An error here means the device or group is not passed correctly, so go back to step 3. For the OpenCL part, which HDR tone-mapping uses, the docs give this check:

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

Step 5 of 6: Switch it on in Jellyfin

In the Jellyfin dashboard, open the transcoding settings, choose QSV (or VA-API for pre-Broadwell chips), and untick the codecs your GPU cannot handle. The docs say exactly that: enable QSV or VA-API and uncheck the unsupported codecs. If you picked the second GPU, set the device to renderD129 there as well. Then play something your player has to transcode and check that the CPU stays quiet.

Step 6 of 6: Where it usually breaks

When it does not work, I would look at three things first: the device is not in the container, the group id does not match the host’s, or the iGPU is disabled in the BIOS. Ice Lake, Jasper Lake and Elkhart Lake chips and older are losing QSV on Linux, because Intel deprecated the MediaSDK runtime, so on those the docs advise moving to VA-API in the long run.

Further reading

Link