[FFmpeg-user] Application provided invalid, non monotonically increasing dts to muxer
Klaus Kudielka
klaus.kudielka at gmx.net
Tue Nov 29 21:38:24 CET 2011
I would like to benefit from the new command line syntax, but at the moment, with git master, I cannot re-multiplex any MKV with vc1 or h264 in it.
On the other hand,
- git master seems to work work with MKV's containing mpeg2video
- 0.8.7 works perfectly even with vc1 and h264.
This might be related to FFmpeg tickets 222 & 415, but is actually somebody working on it?
Thanks, Klaus
---- Two examples for NOT WORKING git masker:
[0]$ /opt/ffmpeg-git/bin/ffmpeg -i x.mkv -map 0 -c copy -y /tmp/x.mkv
ffmpeg version 0.8.7.git-7076967, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 29 2011 20:31:15 with gcc 4.6.1
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libxvid --enable-libvpx --enable-librtmp --extra-cflags=-I/opt/x264/include --extra-ldflags=-L/opt/x264/lib --prefix=/opt/ffmpeg-git
libavutil 51. 29. 1 / 51. 29. 1
libavcodec 53. 39. 1 / 53. 39. 1
libavformat 53. 22. 0 / 53. 22. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 50. 0 / 2. 50. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, matroska,webm, from 'x.mkv':
Metadata:
ENCODER : Lavf53.4.0
Duration: 02:28:51.68, start: 0.000000, bitrate: 14874 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s (default)
Stream #0:2(deu): Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
Stream #0:5(ger): Subtitle: hdmv_pgs_subtitle
Stream #0:6(ger): Subtitle: hdmv_pgs_subtitle
Output #0, matroska, to '/tmp/x.mkv':
Metadata:
encoder : Lavf53.22.0
Stream #0:0: Video: h264, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 1k tbn, 1k tbc (default)
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), 448 kb/s (default)
Stream #0:2(deu): Audio: ac3, 48000 Hz, 5.1(side), 448 kb/s
Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
Stream #0:5(ger): Subtitle: hdmv_pgs_subtitle
Stream #0:6(ger): Subtitle: hdmv_pgs_subtitle
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (copy)
Stream #0:3 -> #0:3 (copy)
Stream #0:4 -> #0:4 (copy)
Stream #0:5 -> #0:5 (copy)
Stream #0:6 -> #0:6 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x27ad6c0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: -83 >= -83
av_interleaved_write_frame(): Invalid argument
[1]$ /opt/ffmpeg-git/bin/ffmpeg -i y.mkv -map 0 -c copy -y /tmp/x.mkv
ffmpeg version 0.8.7.git-7076967, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 29 2011 20:31:15 with gcc 4.6.1
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libxvid --enable-libvpx --enable-librtmp --extra-cflags=-I/opt/x264/include --extra-ldflags=-L/opt/x264/lib --prefix=/opt/ffmpeg-git
libavutil 51. 29. 1 / 51. 29. 1
libavcodec 53. 39. 1 / 53. 39. 1
libavformat 53. 22. 0 / 53. 22. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 50. 0 / 2. 50. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Seems stream 0 codec frame rate differs from container frame rate: 47.95 (48000/1001) -> 23.98 (48000/2002)
Input #0, matroska,webm, from 'y.mkv':
Duration: 02:39:01.53, start: 0.000000, bitrate: 18114 kb/s
Stream #0:0: Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s (default)
Stream #0:2(ger): Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
Stream #0:5(ger): Subtitle: hdmv_pgs_subtitle
Stream #0:6(ger): Subtitle: hdmv_pgs_subtitle
Output #0, matroska, to '/tmp/x.mkv':
Metadata:
encoder : Lavf53.22.0
Stream #0:0: Video: vc1 (WVC1 / 0x31435657), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 1k tbn, 1k tbc (default)
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), 448 kb/s (default)
Stream #0:2(ger): Audio: ac3, 48000 Hz, 5.1(side), 448 kb/s
Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
Stream #0:5(ger): Subtitle: hdmv_pgs_subtitle
Stream #0:6(ger): Subtitle: hdmv_pgs_subtitle
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (copy)
Stream #0:3 -> #0:3 (copy)
Stream #0:4 -> #0:4 (copy)
Stream #0:5 -> #0:5 (copy)
Stream #0:6 -> #0:6 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x17e8b60] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 125 >= 42
av_interleaved_write_frame(): Invalid argument
[1]$
---- Counter-example of working 0.8.7:
[1]$ /opt/ffmpeg/bin/ffmpeg -i x.mkv" -map 0.0 -vcodec copy -an -sn -y /tmp/x.mkv -map 0.1 -acodec copy -newaudio -map 0.2 -acodec copy -newaudio -map 0.3 -scodec copy -newsubtitle -map 0.4 -scodec copy -newsubtitle -map 0.5 -scodec copy -newsubtitle -map 0.6 -scodec copy -newsubtitle
ffmpeg version 0.8.7, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 28 2011 21:14:00 with gcc 4.6.1
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libxvid --enable-libvpx --enable-librtmp --enable-shared --extra-cflags=-I/opt/x264/include --extra-ldflags=-L/opt/x264/lib --prefix=/opt/ffmpeg
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 8. 0 / 53. 8. 0
libavformat 53. 5. 0 / 53. 5. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0
[matroska,webm @ 0x7083e0] max_analyze_duration 5000000 reached at 5024000
[matroska,webm @ 0x7083e0] Estimating duration from bitrate, this may be inaccurate
Input #0, matroska,webm, from 'x.mkv':
Metadata:
ENCODER : Lavf53.4.0
Duration: 02:28:51.68, start: 0.000000, bitrate: 896 kb/s
Stream #0.0: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s (default)
Stream #0.2(deu): Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Stream #0.3(eng): Subtitle: pgssub
Stream #0.4(eng): Subtitle: pgssub
Stream #0.5(ger): Subtitle: pgssub
Stream #0.6(ger): Subtitle: pgssub
Output #0, matroska, to '/tmp/x.mkv':
Metadata:
encoder : Lavf53.5.0
Stream #0.0: Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 1k tbn, 23.98 tbc (default)
Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, 448 kb/s (default)
Stream #0.2(deu): Audio: ac3, 48000 Hz, 5.1, 448 kb/s
Stream #0.3(eng): Subtitle: [0][0][0][0] / 0x0000
Stream #0.4(eng): Subtitle: [0][0][0][0] / 0x0000
Stream #0.5(ger): Subtitle: [0][0][0][0] / 0x0000
Stream #0.6(ger): Subtitle: [0][0][0][0] / 0x0000
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Stream #0.2 -> #0.2
Stream #0.3 -> #0.3
Stream #0.4 -> #0.4
Stream #0.5 -> #0.5
Stream #0.6 -> #0.6
Press [q] to stop, [?] for help
frame=214146 fps=738 q=-1.0 Lsize=16255928kB time=02:24:26.57 bitrate=15365.8kbits/s
video:15210771kB audio:976902kB global headers:0kB muxing overhead 0.421647%
[0]$
More information about the ffmpeg-user
mailing list