[FFmpeg-devel] [Bug] Problem on remuxing AVC in mkv to mp4, how to fix it?
Tue Aug 4 19:37:30 CEST 2009
I've got an example of that too...
ffmpeg -i matt.mkv -vcodec copy -an bob.mov
[NULL @ 0x33c2150]error, non monotone timestamps 8016 >= 3984
av_interleaved_write_frame(): Error while opening file
I just ended up recompressing it - first extracting to yuv, and then
reencoding to mp4.
On Tue, Aug 4, 2009 at 6:10 AM, Zhou Zongyi <zhouzy at os.pku.edu.cn> wrote:
> Hi all,
> When using the following command line to remux AVC in mkv (with b-frames)
> to mp4,
> ffmpeg -i avc.mkv -vcodec copy avc.mp4
> FFmpeg complains about "non monotone timestamps" and exits.
> I tried skipping that check in util.c and it gave me broken mp4 files.
> mkv->mkv is broken as well if it contain audio streams, while mp4->mp4 and
> mp4->mkv works just fine.
> Since matroska does not provide dts (mp4 does), ffmpeg assumes dts = pts,
> which is completely wrong if b-frames are used.
> Is that where the problem is and can anybody give suggestions on how to fix
> Zhou Zongyi,
> zhouzy at os.pku.edu.cn
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
More information about the ffmpeg-devel