Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.

[FFMPEG] Hybrid HEVC encoding (QuickSynch 1st pass)

forartEU
Novice
508 Views

Hi everyone, for this nice FFMPEG-GUI called FastFlix we're discussing about hw encoding in this issue.

 

Since QSV doesn't (yet) support 2-pass mode, we thought it could be possible take advantage of the speed at least for the first pass.

 

If so, can someone help to correctly "transpose" these commands ?

 

1st pass:

ffmpeg -y -hwaccel auto -i "<sourcefile>" -max_muxing_queue_size 1024 -map "[v]" -c:v libx265 -pix_fmt yuv420p10le -x265-params "aq-mode=2:repeat-headers=1:strong-intra-smoothing=1:bframes=4:b-adapt=2:frame-threads=0:colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc:hdr10_opt=1:master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1):max-cll=0,0:hdr10=1:chromaloc=2:pass=1:no-slow-firstpass=1" -passlogfile "<logfile>" -b:v <bitrate> -preset:v medium -an -sn -dn -f mp4 NUL

 

Of course we can change libx265 into hevc_qsv and yuv420p10le into p010le, but how about -x265-params ?

 

2nd pass:

ffmpeg -y -hwaccel auto -i "<sourcefile>" -max_muxing_queue_size 1024 -map "[v]" -c:v libx265 -pix_fmt yuv420p10le -x265-params "aq-mode=2:repeat-headers=1:strong-intra-smoothing=1:bframes=4:b-adapt=2:frame-threads=0:colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc:hdr10_opt=1:master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1):max-cll=0,0:hdr10=1:chromaloc=2:pass=2" -passlogfile "<logfile>" -b:v <bitrate> -preset:v medium "<output>"

 

Last but not least, here is an interesting page about QSV available parameters in FFMPEG:

https://gist.github.com/nico-lab/58ac62e359bd63feed36af64db3e4406#file-hevc_qsv-txt

 

Thanks to anyone that can help.

0 Kudos
3 Replies
JaideepK_Intel
Moderator
485 Views

Hi,

 

Thank you for posting in Intel Communities,

This forum handles issues related to Intel oneVPL and Intel MSDK. We will able to help you resolve issues if they are related to Intel oneVPL or Intel MSDK only.

 

Thanks,

Jaideep

 

forartEU
Novice
468 Views

Thanks for your reply.

 

Well then, how to "transpose" above FFMPEG encoding commands into OneVPL calls ?

JaideepK_Intel
Moderator
418 Views

Hi,


We are working on this internally and we will get back to you soon with an update.


Thanks,

Jaideep


Reply