[FFmpeg-devel] [PATCH] avcodec/nvenc: set average and max bitrate values to zero when in CQ rate control mode

Timo Rothenpieler timo at rothenpieler.org
Thu May 21 15:45:13 EEST 2020


On 18.05.2020 09:54, Roman Arzumanyan wrote:
> Hello,
> The patch fixes bug with CQ RC mode: max and average bitrate values were not set to zero.
> 
> How to reproduce:
> #CQ 30 file
> ffmpeg \
>    -i big_buck_bunny_1080p_h264.mov -c:v h264_nvenc -preset medium \
>    -cq 30 -y output_cq30.mp4
> 
> #CQ 10 file
> ffmpeg \
>    -i big_buck_bunny_1080p_h264.mov -c:v h264_nvenc -preset medium \
>    -cq 10 -y output_cq10.mp4
> 
> Before the patch, both output_cq30.mp4  and output_cq10.mp4  were of same size.
> After the patch, output_cq10.mp4 file has higher quality and bigger size.
> 
> --
> BR, Roman Arzumanyan
> 

Looks generally ok, but I want to give it a few tests and haven't found 
the time for that yet.


More information about the ffmpeg-devel mailing list