[FFmpeg-devel] [PATCH] set bitrate from rc_max_rate for duration estimation will fix ticket #3678

Marc-Antoine ARNAUD arnaud.marcantoine at gmail.com
Wed Aug 20 20:46:07 CEST 2014

Hi Carl,

Yes I test with the attached file.
The case is when the input video stream is in Mpeg2, the bitrate of the
stream was setup in rc_max_rate, not in bitrate

For the remark you mean I can add an "else if (st->codec->rc_max_rate > 0)
{" ?
I'm agree with that, it was better.

I don't know also if I need to set the show_warning to true, because it can
be a longer duration if the real bitrate was not exactly equal to the

More information about the ffmpeg-devel mailing list