2024-12-14, 01:49 AM
(This post was last modified: 2024-12-14, 02:04 AM by the-bort-the. Edited 3 times in total.)
I also have an Alder Lake CPU with Jellyfin installed as a docker container on Debian. I have followed the thread and believe I've checked all the same boxes, but I'm seeing a lot of pausing/freezing/buffering during playback. It's much worse than just disabling the encoding/decoding. I do see, via the
I'm struggling to understand how things could be different. If you want a new thread, I'm also happy to open one. Adding some of the information that was asked of OP in hopes there is something I've missed.
docker-compose.yml snippet:
# apt policy intel-opencl-icd
# /usr/lib/jellyfin-ffmpeg/ffmpeg -v debug -init_hw_device opencl
# /usr/lib/jellyfin-ffmpeg/ffmpeg -v verbose -init_hw_device vaapi=va
dev/dri/renderD128 -init_hw_device opencl@va
top
command the CPU% is way down from when hardware acceleration is completely disabled, so there's that. I've included some playback information as well.I'm struggling to understand how things could be different. If you want a new thread, I'm also happy to open one. Adding some of the information that was asked of OP in hopes there is something I've missed.
docker-compose.yml snippet:
Code:
image: jellyfin/jellyfin:10.9.11-amd64.20240907-221241
devices:
- /dev/dri/renderD128:/dev/dri/renderD128
# apt policy intel-opencl-icd
Code:
intel-opencl-icd:
Installed: 24.17.29377.6
Candidate: 24.17.29377.6
Version table:
*** 24.17.29377.6 100
100 /var/lib/dpkg/status
22.43.24595.41-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
# /usr/lib/jellyfin-ffmpeg/ffmpeg -v debug -init_hw_device opencl
Code:
ffmpeg version 6.0.1-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
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 --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-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
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-init_hw_device' ... matched as option 'init_hw_device' (initialise hardware device) with argument 'opencl'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument debug.
Applying option init_hw_device (initialise hardware device) with argument opencl.
[AVHWDeviceContext @ 0x55ffb0923500] 1 OpenCL platforms found.
[AVHWDeviceContext @ 0x55ffb0923500] 1 OpenCL devices found on platform "Intel(R) OpenCL Graphics".
[AVHWDeviceContext @ 0x55ffb0923500] 0.0: Intel(R) OpenCL Graphics / Intel(R) UHD Graphics
[AVHWDeviceContext @ 0x55ffb0923500] cl_intel_va_api_media_sharing found as platform extension.
[AVHWDeviceContext @ 0x55ffb0923500] Media sharing must be enabled on context creation to use QSV to OpenCL mapping.
[AVHWDeviceContext @ 0x55ffb0923500] QSV to OpenCL mapping not usable.
Successfully parsed a group of options.
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
# /usr/lib/jellyfin-ffmpeg/ffmpeg -v verbose -init_hw_device vaapi=va

Code:
ffmpeg version 6.0.1-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
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 --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-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
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
[AVHWDeviceContext @ 0x564225f5c480] libva: VA-API version 1.22.0
[AVHWDeviceContext @ 0x564225f5c480] libva: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
[AVHWDeviceContext @ 0x564225f5c480] libva: Found init function __vaDriverInit_1_22
[AVHWDeviceContext @ 0x564225f5c480] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x564225f5c480] Initialised VAAPI connection: version 1.22
[AVHWDeviceContext @ 0x564225f5c480] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 24.2.5 (12561f6).
[AVHWDeviceContext @ 0x564225f5c480] Driver not found in known nonstandard list, using standard behaviour.
[AVHWDeviceContext @ 0x564225f8ea40] 0.0: Intel(R) OpenCL Graphics / Intel(R) UHD Graphics
[AVHWDeviceContext @ 0x564225f8ea40] Intel QSV to OpenCL mapping function found (clCreateFromVA_APIMediaSurfaceINTEL).
[AVHWDeviceContext @ 0x564225f8ea40] Intel QSV in OpenCL acquire function found (clEnqueueAcquireVA_APIMediaSurfacesINTEL).
[AVHWDeviceContext @ 0x564225f8ea40] Intel QSV in OpenCL release function found (clEnqueueReleaseVA_APIMediaSurfacesINTEL).
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'