Opened 13 years ago
Closed 13 years ago
#558 closed defect (fixed)
h264 in mkv: non monotonically increasing dts
Reported by: | StevenG | Owned by: | Michael Niedermayer |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | git-master | Keywords: | H264 mkv av_interleaved_write_frame |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
Error message:
[mp4 @ 023A67C0] Application provided invalid, non monotonically increasing dts
to muxer in stream 0: -2 >= -2
av_interleaved_write_frame(): Invalid argument
Used command:
ffmpeg -i i:\2.prog\video\ffmpeg\a.mkv -vcodec copy -acodec copy i:\2.prog\video\ffmpeg\a.mp4
Sample file attached:
Attachments (1)
Change History (17)
by , 13 years ago
follow-up: 2 comment:1 by , 13 years ago
Component: | FFmpeg → undetermined |
---|---|
Keywords: | ffmpeg removed |
Priority: | important → normal |
Complete, uncut output missing.
Is the problem also reproducible if you copy only audio or only video?
follow-up: 3 comment:2 by , 13 years ago
Replying to cehoyos:
Complete, uncut output missing.
What that means ?
Is the problem also reproducible if you copy only audio or only video?
No.
Those works fine:
ffmpeg -i a.mkv -acodec copy a.aac
ffmpeg -i a.mkv -vcodec copy a.h264
comment:3 by , 13 years ago
comment:4 by , 13 years ago
i:\2.prog\video\ffmpeg>ffmpeg -i a.mkv -an -vcodec copy a.avi
ffmpeg version N-33591-gf884ef0, Copyright (c) 2000-2011 the FFmpeg developers
built on Oct 13 2011 02:23:02 with gcc 4.6.1
configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena
ble-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --ena
ble-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --en
able-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 21. 0 / 51. 21. 0
libavcodec 53. 20. 1 / 53. 20. 1
libavformat 53. 15. 0 / 53. 15. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 6 / 2. 43. 6
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, matroska,webm, from 'a.mkv':
Duration: 00:00:05.73, start: 0.000000, bitrate: 3060 kb/s
Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9],
25 fps, 25 tbr, 1k tbn, 50 tbc (default)
Stream #0:1(eng): Audio: aac, 48000 Hz, stereo, s16 (default)
Output #0, avi, to 'a.avi':
Metadata:
ISFT : Lavf53.15.0
Stream #0:0(eng): Video: h264 (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:
1 DAR 16:9], q=2-31, 50 tbn, 50 tbc (default)
Stream mapping:
Press [q] to stop, ? for help
frame= 143 fps= 0 q=-1.0 Lsize= 2034kB time=00:00:05.62 bitrate=2964.9kbits
/s
video:2022kB audio:0kB global headers:0kB muxing overhead 0.609411%
follow-up: 6 comment:5 by , 13 years ago
Sorry, I meant
ffmpeg -i a.mkv -an -vcodec copy out.mp4
(And please consider using "Code block".)
comment:6 by , 13 years ago
Replying to cehoyos:
Sorry, I meant
ffmpeg -i a.mkv -an -vcodec copy out.mp4(And please consider using "Code block".)
Input #0, matroska,webm, from 'a.mkv': Duration: 00:00:05.73, start: 0.000000, bitrate: 3060 kb/s Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default) Stream #0:1(eng): Audio: aac, 48000 Hz, stereo, s16 (default) Output #0, mp4, to 'a.mp4': Metadata: encoder : Lavf53.15.0 Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 25 tbn, 25 tbc (default) Stream mapping: Stream #0.0 -> #0.0 (copy) Press [q] to stop, [?] for help [mp4 @ 02521E60] Application provided invalid, non monotonically increasing dts to muxer in stream 0: -2 >= -2 av_interleaved_write_frame(): Invalid argument
comment:8 by , 13 years ago
Replying to cehoyos:
Please provide command line and complete, uncut output.
i:\2.prog\video\ffmpeg>ffmpeg -i a.mkv -an -vcodec copy a.mp4 ffmpeg version N-33591-gf884ef0, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 13 2011 02:23:02 with gcc 4.6.1 configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena ble-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable- libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --ena ble-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --en able-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 51. 21. 0 / 51. 21. 0 libavcodec 53. 20. 1 / 53. 20. 1 libavformat 53. 15. 0 / 53. 15. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 43. 6 / 2. 43. 6 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, matroska,webm, from 'a.mkv': Duration: 00:00:05.73, start: 0.000000, bitrate: 3060 kb/s Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default) Stream #0:1(eng): Audio: aac, 48000 Hz, stereo, s16 (default) Output #0, mp4, to 'a.mp4': Metadata: encoder : Lavf53.15.0 Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 25 tbn, 25 tbc (default) Stream mapping: Stream #0.0 -> #0.0 (copy) Press [q] to stop, [?] for help [mp4 @ 02521E60] Application provided invalid, non monotonically increasing dts to muxer in stream 0: -2 >= -2 av_interleaved_write_frame(): Invalid argument
comment:10 by , 13 years ago
Keywords: | H264 mkv added |
---|---|
Reproduced by developer: | set |
Status: | new → open |
Version: | unspecified → git-master |
comment:11 by , 13 years ago
Summary: | [mp4 @ 023A67C0] → h264 in mkv: non monotonically increasing dts |
---|
follow-up: 13 comment:12 by , 13 years ago
Some additional info/bug
i:\2.prog\video\ffmpeg>ffmpeg -i b.mkv -vcodec copy y:\test\b.h264 ffmpeg version N-33591-gf884ef0, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 13 2011 02:23:02 with gcc 4.6.1 configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena ble-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable- libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --ena ble-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --en able-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 51. 21. 0 / 51. 21. 0 libavcodec 53. 20. 1 / 53. 20. 1 libavformat 53. 15. 0 / 53. 15. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 43. 6 / 2. 43. 6 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 (5994/1 25) -> 23.98 (24000/1001) Input #0, matroska,webm, from 'b.mkv': Metadata: title : The Secret Circle S01E04 Heather 720p WEB-DL DD5.1 H.264-K iNGS Duration: 00:00:04.45, start: 0.000000, bitrate: 8744 kb/s Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720 [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, 384 kb/s (default) Output #0, h264, to 'y:\test\b.h264': Metadata: title : The Secret Circle S01E04 Heather 720p WEB-DL DD5.1 H.264-K iNGS encoder : Lavf53.15.0 Stream #0:0(eng): Video: h264, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 90k tbn, 23.98 tbc (default) Stream mapping: Stream #0.0 -> #0.0 (copy) Press [q] to stop, [?] for help [h264 @ 021AEA00] pts < dts in stream 0 [h264 @ 021AEA00] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 7560 >= 3780 frame= 106 fps= 0 q=-1.0 Lsize= 4535kB time=00:00:04.37 bitrate=8483.2kbits /s video:4535kB audio:0kB global headers:0kB muxing overhead 0.000000%
comment:13 by , 13 years ago
Replying to StevenG:
i:\2.prog\video\ffmpeg>ffmpeg -i b.mkv -vcodec copy y:\test\b.h264
Please attach b.mkv
comment:15 by , 13 years ago
Keywords: | av_interleaved_write_frame added |
---|
comment:16 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
The original sample was fixed, please feel free to open a new ticket for the second sample.
test it.