Log in

View Full Version : ffmpeg hevc Intel Quick Sync


dorati
19th August 2016, 15:53
Somebody can help me, how to use hevc with Intel Quick Sync (QSV).

I tested a lot of parameters - for example this:

ffmpeg -i video.mkv -vcodec hevc_qsv output.mkv

The result:

Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> hevc (hevc_qsv))
Stream #0:1 -> #0:1 (dts (dca) -> vorbis (libvorbis))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

What i make wrong?

pandy
21st August 2016, 23:47
This one work for me:

-pix_fmt nv12 -c:v hevc_qsv -preset:v 7 -profile:v 1 -load_plugin 2 -level:v 5.1 -b:v 38M -maxrate:v 40M-1 -minrate:v 1M -bufsize:v 19M-1 -g:v 250 -bf:v 3 -refs:v 5 -bitrate_limit 1 -async_depth 4

Notice load_plugin option - seem this is kind of mandatory to use qsv HW encoding...

I will check tomorrow on different machine what working...

dorati
31st August 2016, 21:11
thank you for your replay. This works for me !!
:thanks: