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

Fu, Linjie linjie.fu at intel.com
Wed Oct 30 10:35:39 EET 2019


> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Fu,
> Linjie
> Sent: Friday, October 18, 2019 16:50
> To: FFmpeg development discussions and patches <ffmpeg-
> devel at ffmpeg.org>
> Subject: Re: [FFmpeg-devel] [PATCH] lavc/qsvenc: Fix bitrate_limit to allow
> AVC encode in limited bitrate
> 
> > -----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

Ping.

- linjie


More information about the ffmpeg-devel mailing list