summaryrefslogtreecommitdiffstats
path: root/libavcodec/qsvenc_h264.c
diff options
context:
space:
mode:
authorMaxym Dmytrychenko <maxim.d33@gmail.com>2018-04-02 15:17:23 +0200
committerMaxym Dmytrychenko <maxim.d33@gmail.com>2018-04-08 20:47:59 +0200
commitcca5e4f040971db6de0bfe6968f00c021d8a9c42 (patch)
tree8d9dc68ef641717b1d91283f712da6dcb5947a7f /libavcodec/qsvenc_h264.c
parent29a8ed766354c45c9be4b8512c5b2eb25a450cdc (diff)
downloadffmpeg-streaming-cca5e4f040971db6de0bfe6968f00c021d8a9c42.zip
ffmpeg-streaming-cca5e4f040971db6de0bfe6968f00c021d8a9c42.tar.gz
qsv: adding Multi Frame Encode support
Starting from API 1.25 helps to improve performance of the simultaneous encode, 1:N scenario, like: ./avconv -y -hwaccel qsv -c:v h264_qsv -r 30000/1001 -i ~/bbb_sunflower_1080p_60fps_normal.mp4 -vframes 600 -an \ -filter_complex "split=2[s1][s2]; [s1]scale_qsv=1280:720[o1]; [s2]scale_qsv=960:540[o2]" \ -map [o1] -c:v h264_qsv -b:v 3200k -minrate 3200k -maxrate 3200k -f rawvideo /tmp/3200a.264 \ -map [o2] -c:v h264_qsv -b:v 1750k -minrate 1750k -maxrate 1750k -f rawvideo /tmp/1750a.264 Signed-off-by: Maxym Dmytrychenko <maxim.d33@gmail.com>
Diffstat (limited to 'libavcodec/qsvenc_h264.c')
-rw-r--r--libavcodec/qsvenc_h264.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/qsvenc_h264.c b/libavcodec/qsvenc_h264.c
index 634a7d3..ae00ff8 100644
--- a/libavcodec/qsvenc_h264.c
+++ b/libavcodec/qsvenc_h264.c
@@ -93,6 +93,10 @@ static const AVOption options[] = {
{ "aud", "Insert the Access Unit Delimiter NAL", OFFSET(qsv.aud), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, VE},
+#if QSV_HAVE_MF
+ { "mfmode", "Multi-Frame Mode", OFFSET(qsv.mfmode), AV_OPT_TYPE_INT, { .i64 = MFX_MF_AUTO }, 0, INT_MAX, VE },
+#endif
+
{ NULL },
};
OpenPOWER on IntegriCloud