Looking to understand how to chose the best hardware acceleration settings - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions) +--- Thread: Looking to understand how to chose the best hardware acceleration settings (/t-looking-to-understand-how-to-chose-the-best-hardware-acceleration-settings) |
Looking to understand how to chose the best hardware acceleration settings - the-bort-the - 2024-02-11 Looking to understand which settings I should chose for the hardware acceleration on my Beelink server. I have everything up and running (using docker-compose, see .yml), but am just unsure if I'm supposed to pick low power, QSV, or VA-API. I'm also not sure about which codecs to have enabled versus disabled. I have provided as much detail below after having went through the Intel hardware-acceleration docs. Is my assumption that it appears to be VA-API? I have tried first with QSV and brought down the bitrate to 1.5 Mbps and saw the output of intel_gpu_top change (screenshot attached). Just not sure how to pick the optimal settings or what makes most sense. Hardware: Beelink S12 Pro Mini PC, Intel 12th Gen Alder Lake- N100 Operating system: Debian GNU/Linux 12 (bookworm) Kernel: Linux beelink 6.1.0-15-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.66-1 (2023-12-09) x86_64 GNU/Linux Code: apt policy intel-opencl-icd intel-opencl-icd: Installed: 22.43.24595.41-1 Candidate: 22.43.24595.41-1 Version table: *** 22.43.24595.41-1 500 500 https://deb.debian.org/debian bookworm/main amd64 Packages 100 /var/lib/dpkg/status Code: sudo /usr/lib/jellyfin-ffmpeg/vainfo --display drm --device /dev/dri/renderD128 libva info: VA-API version 1.20.0 libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_20 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.20 (libva 2.20.0) vainfo: Driver version: Intel iHD driver for Intel® Gen Graphics - 23.4.0 (05e4d0d) vainfo: Supported profile and entrypoints VAProfileNone : VAEntrypointVideoProc VAProfileNone : VAEntrypointStats VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Simple : VAEntrypointEncSlice VAProfileMPEG2Main : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264Main : VAEntrypointFEI VAProfileH264Main : VAEntrypointEncSliceLP VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileH264High : VAEntrypointFEI VAProfileH264High : VAEntrypointEncSliceLP VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointEncPicture VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264ConstrainedBaseline: VAEntrypointFEI VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP VAProfileVP8Version0_3 : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointEncSlice VAProfileHEVCMain : VAEntrypointFEI VAProfileHEVCMain : VAEntrypointEncSliceLP VAProfileHEVCMain10 : VAEntrypointVLD VAProfileHEVCMain10 : VAEntrypointEncSlice VAProfileHEVCMain10 : VAEntrypointEncSliceLP VAProfileVP9Profile0 : VAEntrypointVLD VAProfileVP9Profile0 : VAEntrypointEncSliceLP VAProfileVP9Profile1 : VAEntrypointVLD VAProfileVP9Profile1 : VAEntrypointEncSliceLP VAProfileVP9Profile2 : VAEntrypointVLD VAProfileVP9Profile2 : VAEntrypointEncSliceLP VAProfileVP9Profile3 : VAEntrypointVLD VAProfileVP9Profile3 : VAEntrypointEncSliceLP VAProfileHEVCMain12 : VAEntrypointVLD VAProfileHEVCMain12 : VAEntrypointEncSlice VAProfileHEVCMain422_10 : VAEntrypointVLD VAProfileHEVCMain422_10 : VAEntrypointEncSlice VAProfileHEVCMain422_12 : VAEntrypointVLD VAProfileHEVCMain422_12 : VAEntrypointEncSlice VAProfileHEVCMain444 : VAEntrypointVLD VAProfileHEVCMain444 : VAEntrypointEncSliceLP VAProfileHEVCMain444_10 : VAEntrypointVLD VAProfileHEVCMain444_10 : VAEntrypointEncSliceLP VAProfileHEVCMain444_12 : VAEntrypointVLD VAProfileHEVCSccMain : VAEntrypointVLD VAProfileHEVCSccMain : VAEntrypointEncSliceLP VAProfileHEVCSccMain10 : VAEntrypointVLD VAProfileHEVCSccMain10 : VAEntrypointEncSliceLP VAProfileHEVCSccMain444 : VAEntrypointVLD VAProfileHEVCSccMain444 : VAEntrypointEncSliceLP VAProfileAV1Profile0 : VAEntrypointVLD VAProfileHEVCSccMain444_10 : VAEntrypointVLD VAProfileHEVCSccMain444_10 : VAEntrypointEncSliceLP Code: /usr/lib/jellyfin-ffmpeg/ffmpeg -v verbose -init_hw_device vaapi=va:/dev/dri/renderD128 -init_hw_device opencl@va built with gcc 10 (Debian 10.2.1-6) configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-libs=-lfftw3f --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-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libsvtav1 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc libavutil 57. 28.100 / 57. 28.100 libavcodec 59. 37.100 / 59. 37.100 libavformat 59. 27.100 / 59. 27.100 libavdevice 59. 7.100 / 59. 7.100 libavfilter 8. 44.100 / 8. 44.100 libswscale 6. 7.100 / 6. 7.100 libswresample 4. 7.100 / 4. 7.100 libpostproc 56. 6.100 / 56. 6.100 [AVHWDeviceContext @ 0x563424423100] libva: VA-API version 1.20.0 [AVHWDeviceContext @ 0x563424423100] libva: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so [AVHWDeviceContext @ 0x563424423100] libva: Found init function __vaDriverInit_1_20 [AVHWDeviceContext @ 0x563424423100] libva: va_openDriver() returns 0 [AVHWDeviceContext @ 0x563424423100] Initialised VAAPI connection: version 1.20 [AVHWDeviceContext @ 0x563424423100] VAAPI driver: Intel iHD driver for Intel® Gen Graphics - 23.4.0 (05e4d0d). [AVHWDeviceContext @ 0x563424423100] Driver not found in known nonstandard list, using standard behaviour. [AVHWDeviceContext @ 0x56342445ac40] 0.0: Intel® OpenCL Graphics / Intel® UHD Graphics [AVHWDeviceContext @ 0x56342445ac40] Intel QSV to OpenCL mapping function found (clCreateFromVA_APIMediaSurfaceINTEL). [AVHWDeviceContext @ 0x56342445ac40] Intel QSV in OpenCL acquire function found (clEnqueueAcquireVA_APIMediaSurfacesINTEL). [AVHWDeviceContext @ 0x56342445ac40] 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' docker-compose:yml: version: '3.8' services: jellyfin: image: jellyfin/jellyfin:10.8.13-1-amd64 container_name: jellyfin group_add: - "105" network_mode: 'host' volumes: - /home/dev/jellyfin:/config - /home/dev/jellyfin:/cache - /media/jellyfin_1:/jellyfin_1 - /media/jellyfin_2:/jellyfin_2:ro # - /path/to/media2:/media2:ro restart: unless-stopped # Optional - alternative address used for autodiscovery environment: - JELLYFIN_PublishedServerUrl=https://server.com extra_hosts: - "host.docker.internal:host-gateway" devices: - /dev/dri/renderD128:/dev/dri/renderD128 RE: Looking to understand how to chose the best hardware acceleration settings - TheDreadPirate - 2024-02-11 Use this table to figure out which codec boxes to check. https://en.wikipedia.org/wiki/Intel_Quick_Sync_Video#Hardware_decoding_and_encoding Low power encoding is optional for Alder Lake, but recommended. https://jellyfin.org/docs/general/administration/hardware-acceleration/intel/#lp-mode-hardware-support Other than that, leave the rest of Jellyfin's transcode settings as is. |