Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3056 Discussions

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

forartEU
Novice
1,247 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
4 Replies
JaideepK_Intel
Moderator
1,224 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

 

0 Kudos
forartEU
Novice
1,207 Views

Thanks for your reply.

 

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

0 Kudos
JaideepK_Intel
Moderator
1,157 Views

Hi,


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


Thanks,

Jaideep


0 Kudos
Pamela_H_Intel
Moderator
584 Views

Apologies for the delays. Media SDK functionality has been superseded by oneVPL, FFmpeg and GStreamer.

 

For more information see the oneVPL Landing Page: https://www.intel.com/content/www/us/en/developer/tools/oneapi/onevpl.html where you will find, among other information

 

oneVPL version 2.x is an API that is the successor to Intel® Media SDK. The Intel Media SDK project is no longer active and will not be updated. Packages and downloads are still available on GitHub*. For continued support and access to new features, Intel Media SDK users are encouraged to move to oneVPL as soon as possible.

Let us know if you have any questions about oneVPL.


0 Kudos
Reply