diff options
author | Tim Walker <[email protected]> | 2018-01-04 01:02:42 +0100 |
---|---|---|
committer | Tim Walker <[email protected]> | 2018-01-04 01:08:50 +0100 |
commit | faab5c403f0ed727030f39e0a2db5e312ed9f50f (patch) | |
tree | d5c5ba25801612960b42b72799f0fc9c4e52499a /libhb | |
parent | ba30fd8bf38954abce8bc481375d5592824261e5 (diff) |
QSV: fix ICQ availability detection for HEVC encoder.
Explicitly set all relevant rate control parameters when
querying for availability of a given rate control method.
I still "blame" Intel, as the existing code managed to
query ICQ availability for the H.264 encoder just fine.
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/qsv_common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c index 0d82274fd..3470f49e3 100644 --- a/libhb/qsv_common.c +++ b/libhb/qsv_common.c @@ -397,6 +397,7 @@ static int query_capabilities(mfxSession session, mfxVersion version, hb_qsv_inf init_video_param(&inputParam); inputParam.mfx.CodecId = info->codec_id; inputParam.mfx.RateControlMethod = MFX_RATECONTROL_LA; + inputParam.mfx.TargetKbps = 5000; memset(&videoParam, 0, sizeof(mfxVideoParam)); videoParam.mfx.CodecId = inputParam.mfx.CodecId; @@ -411,6 +412,7 @@ static int query_capabilities(mfxSession session, mfxVersion version, hb_qsv_inf inputParam.mfx.CodecId = info->codec_id; inputParam.mfx.RateControlMethod = MFX_RATECONTROL_LA; inputParam.mfx.FrameInfo.PicStruct = MFX_PICSTRUCT_FIELD_TFF; + inputParam.mfx.TargetKbps = 5000; memset(&videoParam, 0, sizeof(mfxVideoParam)); videoParam.mfx.CodecId = inputParam.mfx.CodecId; @@ -428,6 +430,7 @@ static int query_capabilities(mfxSession session, mfxVersion version, hb_qsv_inf init_video_param(&inputParam); inputParam.mfx.CodecId = info->codec_id; inputParam.mfx.RateControlMethod = MFX_RATECONTROL_ICQ; + inputParam.mfx.ICQQuality = 20; memset(&videoParam, 0, sizeof(mfxVideoParam)); videoParam.mfx.CodecId = inputParam.mfx.CodecId; |