Hi guys, I have just installed this docker and I'm trying to enable the hw transcoding.
I have an Intel Pentium Gold G6405 (Comet Lake-S) with an UHD 610 as iGPU.
I have added the --device=/dev/dri:/dev/dri as an extra parameter and also I've added the docker mod for OpenCL-Intel.
All seems to work but there is something weird that I can't understand.
When I try to play a 4K HEVC HDR with Microsoft EDGE the hw transcoding seems to work but if I watch the system resources I see the CPU at 100% and the GPU at 20-30%:
These are the playback infos:
And this is my configuration:
This is the FFMpeg log:
/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -init_hw_device vaapi=va:,driver=iHD,kernel_driver=i915 -init_hw_device qsv=qs@va -init_hw_device opencl=ocl@va -filter_hw_device ocl -autorotate 0 -i file:"/data/tvshows/Gen V/Season 1/Gen V - S01E01 - God U WEBDL-2160p.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_qsv -preset 7 -look_ahead 0 -b:v 19371572 -maxrate 19371572 -bufsize 38743144 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt2020:color_trc=smpte2084:colorspace=bt2020nc,scale=trunc(min(max(iw\,ih*a)\,min(3840\,1600*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(3840/a\,1600))/2)*2,format=yuv420p" -codec:a:0 libfdk_aac -ac 6 -ab 640000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/config/data/transcodes/39574ced94177e1670d475db775b4b91%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/data/transcodes/39574ced94177e1670d475db775b4b91.m3u8"
...
...
...
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_qsv))
Stream #0:1 -> #0:1 (eac3 (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
Output #0, hls, to '/config/data/transcodes/39574ced94177e1670d475db775b4b91.m3u8':
Metadata:
encoder : Lavf59.27.100
Stream #0:0: Video: h264, nv12(tv, bt2020nc/bt2020/smpte2084, progressive), 3840x1600 [SAR 1:1 DAR 12:5], q=2-31, 19371 kb/s, 23.98 fps, 90k tbn (default) (original)
Metadata:
encoder : Lavc59.37.100 h264_qsv
Side data:
cpb: bitrate max/min/avg: 19371572/0/19371572 buffer size: 38743144 vbv_delay: N/A
Stream #0:1: Audio: aac, 48000 Hz, 5.1, s16, 640 kb/s (default)
Metadata:
encoder : Lavc59.37.100 libfdk_aac
Can you help me to understand why there is so a huge use of the CPU even if the hw transcoding seems to work?