• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting SOLVED: Problem with hardware encoding in Docker

     
    • 0 Vote(s) - 0 Average

    SOLVED: Problem with hardware encoding in Docker

    Problem with hardware encoding in Docker
    auxin7
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Mar
    Reputation: 0
    Country:Germany
    #1
    2025-03-14, 08:40 PM
    I set up a new homeserver with openmediavault running 7.7.1-3 (Sandworm) on the Linux 6.12.12+bpo-amd64 kernel and using an Intel i5 14400 which supports QSV (https://www.intel.com/content/www/us/en/...tions.html), and then using portainer to set up jellyfin.

    I am using the standart docker compose file
    Code:
    services:
      jellyfin:
        image: jellyfin/jellyfin
        user: 1000:1000
        group_add:
          - "105" # 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

    changing the render group to "105" since this is the output of " getent group render | cut -d: -f3 ".

    Checking the output of vainfo within the docker givs this error:

    Code:
    Trying display: drm[/color]
    [color=#bfc7d5]libva info: VA-API version 1.22.0[/color]
    [color=#bfc7d5]libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so[/color]
    [color=#bfc7d5]libva info: Found init function __vaDriverInit_1_22[/color]
    [color=#bfc7d5]libva error: /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so init failed[/color]
    [color=#bfc7d5]libva info: va_openDriver() returns 1[/color]
    [color=#bfc7d5]libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/i965_drv_video.so[/color]
    [color=#bfc7d5]libva info: Found init function __vaDriverInit_1_22[/color]
    [color=#bfc7d5]libva error: /usr/lib/jellyfin-ffmpeg/lib/dri/i965_drv_video.so init failed[/color]
    [color=#bfc7d5]libva info: va_openDriver() returns -1[/color]
    [color=#bfc7d5]vaInitialize failed with error code -1 (unknown libva error),exit[/color]
    [color=#bfc7d5]


    while

    Code:
    docker exec -it jellyfin /usr/lib/jellyfin-ffmpeg/ffmpeg -v verbose -init_hw_device vaapi=va -init_hw_device opencl@va[/color]
    [color=#bfc7d5]ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers[/color]
    [color=#bfc7d5]  built with gcc 12 (Debian 12.2.0-14)[/color]
    [color=#bfc7d5]  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc[/color]
    [color=#bfc7d5]  libavutil      59.  8.100 / 59.  8.100[/color]
    [color=#bfc7d5]  libavcodec    61.  3.100 / 61.  3.100[/color]
    [color=#bfc7d5]  libavformat    61.  1.100 / 61.  1.100[/color]
    [color=#bfc7d5]  libavdevice    61.  1.100 / 61.  1.100[/color]
    [color=#bfc7d5]  libavfilter    10.  1.100 / 10.  1.100[/color]
    [color=#bfc7d5]  libswscale      8.  1.100 /  8.  1.100[/color]
    [color=#bfc7d5]  libswresample  5.  1.100 /  5.  1.100[/color]
    [color=#bfc7d5]  libpostproc    58.  1.100 / 58.  1.100[/color]
    [color=#bfc7d5][AVHWDeviceContext @ 0x56039da15640] Trying to use DRM render node for device 0.[/color]
    [color=#bfc7d5][AVHWDeviceContext @ 0x56039da15640] libva: VA-API version 1.22.0[/color]
    [color=#bfc7d5][AVHWDeviceContext @ 0x56039da15640] libva: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so[/color]
    [color=#bfc7d5][AVHWDeviceContext @ 0x56039da15640] libva: Found init function __vaDriverInit_1_22[/color]
    [color=#bfc7d5][AVHWDeviceContext @ 0x56039da15640] libva: /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so init failed[/color]
    [color=#bfc7d5][AVHWDeviceContext @ 0x56039da15640] libva: va_openDriver() returns 1[/color]
    [color=#bfc7d5][AVHWDeviceContext @ 0x56039da15640] libva: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/i965_drv_video.so[/color]
    [color=#bfc7d5][AVHWDeviceContext @ 0x56039da15640] libva: Found init function __vaDriverInit_1_22[/color]
    [color=#bfc7d5][AVHWDeviceContext @ 0x56039da15640] libva: /usr/lib/jellyfin-ffmpeg/lib/dri/i965_drv_video.so init failed[/color]
    [color=#bfc7d5][AVHWDeviceContext @ 0x56039da15640] libva: va_openDriver() returns -1[/color]
    [color=#bfc7d5][AVHWDeviceContext @ 0x56039da15640] Failed to initialise VAAPI connection: -1 (unknown libva error).[/color]
    [color=#bfc7d5]Device creation failed: -5.[/color]
    [color=#bfc7d5]Failed to set value 'vaapi=va' for option 'init_hw_device': Input/output error[/color]
    [color=#bfc7d5]Error parsing global options: Input/output error[/color]
    [color=#bfc7d5]


    results in this error.

    Now I am quite stuck, hope some of you can help me. Software encoding works, but is quite expensive....
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-03-14, 09:01 PM
    From the OS, what is the output of this command?

    Code:
    sudo dmesg | grep i915
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    auxin7
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Mar
    Reputation: 0
    Country:Germany
    #3
    2025-03-15, 06:01 AM
    Thanks for coming back!

    The output of the command is:

    Code:
    sudo dmesg | grep i915
    [    4.582697] i915 0000:00:02.0: [drm] Found ALDERLAKE_S/RPL-S (device ID a782) display version 12.00 stepping D0
    [    4.583379] i915 0000:00:02.0: [drm] VT-d active for gfx access
    [    4.583381] i915 0000:00:02.0: vgaarb: deactivate vga console
    [    4.583411] i915 0000:00:02.0: [drm] Using Transparent Hugepages
    [    4.584025] i915 0000:00:02.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=io+mem:owns=io+mem
    [    4.584459] i915 0000:00:02.0: firmware: failed to load i915/adls_dmc_ver2_01.bin (-2)
    [    4.584463] i915 0000:00:02.0: firmware: failed to load i915/adls_dmc_ver2_01.bin (-2)
    [    4.584463] i915 0000:00:02.0: Direct firmware load for i915/adls_dmc_ver2_01.bin failed with error -2
    [    4.584465] i915 0000:00:02.0: [drm] Failed to load DMC firmware i915/adls_dmc_ver2_01.bin (-ENOENT). Disabling runtime power management.
    [    4.584466] i915 0000:00:02.0: [drm] DMC firmware homepage: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
    [    4.584485] i915 0000:00:02.0: firmware: failed to load i915/tgl_guc_70.bin (-2)
    [    4.584491] i915 0000:00:02.0: firmware: failed to load i915/tgl_guc_70.bin (-2)
    [    4.584497] i915 0000:00:02.0: firmware: failed to load i915/tgl_guc_70.1.1.bin (-2)
    [    4.584501] i915 0000:00:02.0: firmware: failed to load i915/tgl_guc_70.1.1.bin (-2)
    [    4.584505] i915 0000:00:02.0: firmware: failed to load i915/tgl_guc_69.0.3.bin (-2)
    [    4.584508] i915 0000:00:02.0: firmware: failed to load i915/tgl_guc_69.0.3.bin (-2)
    [    4.584510] i915 0000:00:02.0: [drm] *ERROR* GT0: GuC firmware i915/tgl_guc_70.bin: fetch failed -ENOENT
    [    4.584515] i915 0000:00:02.0: [drm] GT0: GuC firmware(s) can be downloaded from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915
    [    4.585224] i915 0000:00:02.0: [drm] GT0: GuC firmware i915/tgl_guc_70.bin version 0.0.0
    [    4.585298] i915 0000:00:02.0: [drm] *ERROR* GT0: GuC initialization failed -ENOENT
    [    4.585301] i915 0000:00:02.0: [drm] *ERROR* GT0: Enabling uc failed (-5)
    [    4.585303] i915 0000:00:02.0: [drm] *ERROR* GT0: Failed to initialize GPU, declaring it wedged!
    [    4.585619] i915 0000:00:02.0: [drm] CI tainted: 0x9 by intel_gt_init+0xb7/0x340 [i915]
    [    4.872464] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_ops [i915])
    [    4.875345] [drm] Initialized i915 1.6.0 for 0000:00:02.0 on minor 0
    [    4.916545] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
    [    4.956447] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
    [    4.996612] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
    [    5.036405] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes

    So no firmware for the GPU on the system? I thought that docker containers would come with their own kernel and are therefore independent of their host system?
    auxin7
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2025 Mar
    Reputation: 0
    Country:Germany
    #4
    2025-03-16, 06:34 AM
    Ok, the missing firmware pointed me to the right direction. I came upon this post:

    https://unix.stackexchange.com/questions...odule-i915

    So I ran

    sudo apt-get install firmware-linux

    and

    sudo apt-get install firmware-intel-graphics

    After that i rebooted the system and the commands from the Jellyfin instructions came back postive/green.

    When using OpenMediaVault you can also get the Apt-Tool plugin and to it via the web-interface
    1
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode