Yesterday, 07:43 PM
I am failing to set up HW transcoding on my i5-8500T after spending hours on it.
Can you help find out where the issue is?
In the Jellyfin transcoding UI i have selected Intel QuickSync and QSV device as /dev/dri/renderD128
I am attempting to play this file: https://4kmedia.org/lg-chess-hdr-demo/
Docker compose file below. GIDs selected appropriately given the system GIDs. Right now the file fails to play (just loads forever) and even other content fails to play.
services:
jellyfin:
image: jellyfin/jellyfin:10.10.7
user: 1000:1000
container_name: jellyfin
network_mode: 'host'
volumes:
- /home/administrator/server/local_NVME/docker/jellyfin/config
config
- /home/administrator/server/local_NVME/docker/jellyfin/cache
cache
- /home/administrator/server/local_NVME/docker/jellyfin/jellyfin
data
- /home/administrator/server/NAS/Media
media
devices:
- /dev/dri/renderD128
dev/dri/renderD128
group_add:
- "993" # GID for 'render'
- "44" # GID for 'video'
restart: 'unless-stopped'
environment:
- PUID=1000
- PGID=1000
- LIBVA_DRIVER_NAME=iHD
- FFREPORT=file=/config/logs/ffmpeg-report.log:level=32
Logs (sudo docker logs jellyfin | grep -i qsv):
The file seems to play after about 15 minutes of transcoding and even then it is supper choppy. I got this machine in the hopes that I can use this for Jellyfin transcoding and perhaps I did not make the right choice here.
Can you help find out where the issue is?
In the Jellyfin transcoding UI i have selected Intel QuickSync and QSV device as /dev/dri/renderD128
I am attempting to play this file: https://4kmedia.org/lg-chess-hdr-demo/
Docker compose file below. GIDs selected appropriately given the system GIDs. Right now the file fails to play (just loads forever) and even other content fails to play.
services:
jellyfin:
image: jellyfin/jellyfin:10.10.7
user: 1000:1000
container_name: jellyfin
network_mode: 'host'
volumes:
- /home/administrator/server/local_NVME/docker/jellyfin/config

- /home/administrator/server/local_NVME/docker/jellyfin/cache

- /home/administrator/server/local_NVME/docker/jellyfin/jellyfin

- /home/administrator/server/NAS/Media

devices:
- /dev/dri/renderD128

group_add:
- "993" # GID for 'render'
- "44" # GID for 'video'
restart: 'unless-stopped'
environment:
- PUID=1000
- PGID=1000
- LIBVA_DRIVER_NAME=iHD
- FFREPORT=file=/config/logs/ffmpeg-report.log:level=32
Logs (sudo docker logs jellyfin | grep -i qsv):
Code:
[/color]
[19:16:27] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available decoders: ["libdav1d", "av1", "av1_cuvid", "av1_qsv", "h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "mpeg2_qsv", "mpeg2_cuvid", "mpeg4", "mpeg4_cuvid", "msmpeg4", "vc1_qsv", "vc1_cuvid", "vp8", "libvpx", "vp8_cuvid", "vp8_qsv", "vp9", "libvpx-vp9", "vp9_cuvid", "vp9_qsv", "aac", "ac3", "ac4", "dca", "flac", "mp3", "truehd"]
[19:16:27] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available encoders: ["libsvtav1", "av1_nvenc", "av1_qsv", "av1_amf", "av1_vaapi", "libx264", "h264_amf", "h264_nvenc", "h264_qsv", "h264_v4l2m2m", "h264_vaapi", "libx265", "hevc_amf", "hevc_nvenc", "hevc_qsv", "hevc_vaapi", "mjpeg_qsv", "mjpeg_vaapi", "aac", "libfdk_aac", "ac3", "alac", "dca", "flac", "libmp3lame", "libopus", "truehd", "libvorbis", "srt"]
[19:16:27] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available filters: ["bwdif_cuda", "deinterlace_qsv", "deinterlace_vaapi", "flip_vulkan", "hwupload_cuda", "hwupload_vaapi", "libplacebo", "overlay_opencl", "overlay_qsv", "overlay_vaapi", "overlay_vulkan", "overlay_cuda", "procamp_vaapi", "scale_cuda", "scale_opencl", "scale_qsv", "scale_vaapi", "scale_vulkan", "tonemapx", "tonemap_cuda", "tonemap_opencl", "tonemap_vaapi", "transpose_cuda", "transpose_opencl", "transpose_vaapi", "transpose_vulkan", "vpp_qsv", "yadif_cuda", "zscale", "alphasrc"]
[19:16:27] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available hwaccel types: ["cuda", "vaapi", "qsv", "drm", "opencl", "vulkan"]
[19:22:02] [INF] [27] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -f mpegts -init_hw_device vaapi=va:/dev/dri/renderD128,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i file:"/media/Movies/All/LG Chess 4K Demo.mp4" -noautoscale -map_metadata -1 -map_chapters -1 -threads 4 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_qsv -preset veryfast -b:v 1116000 -maxrate 1116000 -bufsize 2232000 -profile:v:0 high -level 51 -g:v:0 180 -keyint_min:v:0 180 -vf "setparams=color_primaries=bt2020:color_trc=smpte2084:colorspace=bt2020nc,scale_vaapi=w=960:h=540:extra_hw_frames=24,procamp_vaapi=c=1.2,tonemap_vaapi=format=nv12:p=bt709:t=bt709:m=bt709:extra_hw_frames=32,hwmap=derive_device=qsv,format=qsv" -codec:a:0 libfdk_aac -bsf:a aac_adtstoasc -ac 2 -vbr:a 5 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "2d4b2aafce32009f264913aed3f566bc-1.mp4" -start_number 0 -hls_segment_filename "/config/transcodes/2d4b2aafce32009f264913aed3f566bc%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/2d4b2aafce32009f264913aed3f566bc.m3u8"
[color=#cccccc]
The file seems to play after about 15 minutes of transcoding and even then it is supper choppy. I got this machine in the hopes that I can use this for Jellyfin transcoding and perhaps I did not make the right choice here.