diff options
author | Linjie Fu <linjie.fu@intel.com> | 2018-11-29 14:14:22 +0800 |
---|---|---|
committer | Zhong Li <zhong.li@intel.com> | 2019-01-10 21:48:07 +0800 |
commit | e92ce340e63058de32aec733b59fe2b196bed214 (patch) | |
tree | 86ffad65395fede6550521ab6ccd39a50be60ddb /libavcodec/qsvenc_h264.c | |
parent | ed3b64402ef770097f81e4f1e17f1fca253159aa (diff) | |
download | ffmpeg-e92ce340e63058de32aec733b59fe2b196bed214.tar.gz |
lavc/qsvenc: add VDENC support for H264
Add VDENC(lowpower mode) support for QSV H264
It's an experimental function(like lowpower in vaapi) with
some limitations:
- CBR/VBR require HuC which should be explicitly loaded via i915
module parameter(i915.enable_guc=2 for linux kernel version >= 4.16)
Use option "-low_power 1" to enable VDENC.
Add in dump_video_param() to show the status of VDENC in runtime log.
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Zhong Li <zhong.li@intel.com>
Diffstat (limited to 'libavcodec/qsvenc_h264.c')
-rw-r--r-- | libavcodec/qsvenc_h264.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/qsvenc_h264.c b/libavcodec/qsvenc_h264.c index 8e61826eef..f458137848 100644 --- a/libavcodec/qsvenc_h264.c +++ b/libavcodec/qsvenc_h264.c @@ -154,6 +154,10 @@ static const AVOption options[] = { { "auto" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_MF_AUTO }, INT_MIN, INT_MAX, VE, "mfmode" }, #endif +#if QSV_HAVE_VDENC + { "low_power", "enable low power mode(experimental: many limitations by mfx version, BRC modes, etc.)", OFFSET(qsv.low_power), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE}, +#endif + { "repeat_pps", "repeat pps for every frame", OFFSET(qsv.repeat_pps), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE }, { NULL }, |