diff options
author | Linjie Fu <linjie.fu@intel.com> | 2019-10-15 15:56:23 +0800 |
---|---|---|
committer | Zhong Li <zhongli_dev@126.com> | 2019-11-03 16:22:47 +0800 |
commit | e786e37326d4274c1dfbc37a6478680684c779c9 (patch) | |
tree | 31dbb33c8a9c7b208721abd3773e2086d195e360 /libavfilter/vf_spp.h | |
parent | 53c21c2d6bebba887be9a30de204875fb41b1169 (diff) | |
download | ffmpeg-e786e37326d4274c1dfbc37a6478680684c779c9.tar.gz |
lavc/qsvenc: Fix bitrate_limit to allow AVC encode in limited bitrate
MFXVideoENCODE_Query calls CheckVideoParamQueryLike in MSDK and
will determine whether to set param.mfx.TargetKbps to the allowed
minTargetKbps according to the bitrate_limit in extco2 buffer.
Thus q->param.ExtParam must be set before MFXVideoENCODE_Query in case
minTargetKbps is written to TargetKbps by default.
1080P AVC encoding with option "-bitrate_limit 0 -b:v 100k":
Before patch:
902 kbps
After patch:
156 kbps
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Diffstat (limited to 'libavfilter/vf_spp.h')
0 files changed, 0 insertions, 0 deletions