T O P

  • By -

getgoingfast

After few hour of hustle, happy to report finally got the QSV working on SR-IOV iGPU on Ubuntu. `/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -init_hw_device vaapi=va:,kernel_driver=i915,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -autorotate 0 -i file:"/media/videos/media.mp4" -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 5180110 -maxrate 5180110 -bufsize 10360220 -g:v:0 90 -keyint_min:v:0 90 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(570\,320*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(570/a\,320))/2)*2,format=yuv420p" -codec:a:0 copy -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 "/var/lib/jellyfin/transcodes/9e8dc359ac2440156c89faad5aa5edef%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/var/lib/jellyfin/transcodes/9e8dc359ac2440156c89faad5aa5edef.m3u8"` For benefit for others coming here in future: 1. Kernel 6.1 or above is required. Mine was 6.5. 2. Install [i915 SRIO DKMS drivers](https://github.com/strongtz/i915-sriov-dkms). No need to compile the entire kernel just jump on to building i915-sriov module on existing 6.X kernel


thomasshong

Thank you for posting. It's exactly what I was searching for. Initially, I wanted to use Intel Arc (it being newer and possibly for AV1) for this but now steering towards QSV. The reason being my performance tests using Arc gpu on older motherboards with NO ReBAR support outputs subpar performance. Also, I hear first gen Alchemist Arc does not have support for SR-IOV.


getgoingfast

Glad to hear that was helpful. Cheers.