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

Roman Arzumanyan rarzumanyan at nvidia.com
Mon May 18 10:54:35 EEST 2020


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


-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fixing-CQ-mode-avg-max-bitrate-settings.patch
Type: application/octet-stream
Size: 969 bytes
Desc: 0001-fixing-CQ-mode-avg-max-bitrate-settings.patch
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200518/89ff8d7a/attachment.obj>


More information about the ffmpeg-devel mailing list