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 [https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/mpeg12dec.c#L1284].
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 rc_max_rate. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel