[FFmpeg-devel] [PATCH] lavc/qsvenc: Fix bitrate_limit to allow AVC encode in limited bitrate

Fu, Linjie linjie.fu at intel.com
Fri Oct 18 11:49:30 EEST 2019


> -----Original Message-----
> From: Fu, Linjie <linjie.fu at intel.com>
> Sent: Tuesday, October 15, 2019 15:56
> To: ffmpeg-devel at ffmpeg.org
> Cc: Fu, Linjie <linjie.fu at intel.com>
> Subject: [PATCH] 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 at intel.com>
> ---
>  libavcodec/qsvenc.c | 38 +++++++++++++++++++-------------------
>  1 file changed, 19 insertions(+), 19 deletions(-)

Ping.
This is reported by Mann, J in:
https://software.intel.com/en-us/forums/intel-media-sdk/topic/815938

- linjie



More information about the ffmpeg-devel mailing list