Opened 15 years ago
Closed 14 years ago
#605 closed defect (fixed)
aac in flv: Application provided invalid, non monotonically increasing dts to muxer in stream
| Reported by: | burek | Owned by: | Michael Niedermayer |
|---|---|---|---|
| Priority: | normal | Component: | undetermined |
| Version: | git-master | Keywords: | aac flv av_interleaved_write_frame |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | yes | |
| Analyzed by developer: | no |
Description
Hi,
I have a FLV file, saved with VLC player and no matter what I try to do with that FLV file, I get the same error:
[flv @ 0x123edc0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 325 >= 298 av_interleaved_write_frame(): Invalid argument
The file can be downloaded from here (30 mb): http://ffmpeg.test-lab.ch/uploads/nonmonotonic.flv
And here is the log of the output:
# ffmpeg -i nonmonotonic.flv -acodec copy -vcodec copy out.flv
ffmpeg version N-34326-gf955fdc, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 1 2011 15:12:14 with gcc 4.6.1
configuration: --enable-static --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-libx264 --enable-libaacplus
libavutil 51. 22. 0 / 51. 22. 0
libavcodec 53. 26. 0 / 53. 26. 0
libavformat 53. 18. 0 / 53. 18. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 45. 3 / 2. 45. 3
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[flv @ 0x1237760] max_analyze_duration 5000000 reached at 5014000
Seems stream 0 codec frame rate differs from container frame rate: 48.00 (48/1) -> 24.00 (48/2)
Input #0, flv, from 'nonmonotonic.flv':
Metadata:
encoder : Lavf53.18.0
Duration: 00:15:00.11, start: 0.000000, bitrate: 316 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 320x240, 24 tbr, 1k tbn, 48 tbc
Stream #0:1: Audio: aac, 44100 Hz, mono, s16
Output #0, flv, to 'out.flv':
Metadata:
encoder : Lavf53.18.0
Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 320x240, q=2-31, 1k tbn, 1k tbc
Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, mono
Stream mapping:
Stream #0.0 -> #0.0 (copy)
Stream #0.1 -> #0.1 (copy)
Press [q] to stop, [?] for help
[flv @ 0x123edc0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 325 >= 298
av_interleaved_write_frame(): Invalid argument
Attachments (1)
Change History (4)
comment:1 by , 15 years ago
| Component: | FFmpeg → undetermined |
|---|---|
| Keywords: | aac flv av_interleaved_write_frame added |
| Reproduced by developer: | set |
| Status: | new → open |
| Summary: | Application provided invalid, non monotonically increasing dts to muxer in stream → aac in flv: Application provided invalid, non monotonically increasing dts to muxer in stream |
| Version: | unspecified → git-master |
by , 15 years ago
| Attachment: | nonmonotonic_cut.flv added |
|---|
comment:2 by , 14 years ago
I proposed a patch adding -async -1 that would allow working around this issue. But there is something strange with the audio time stamps in this file.
Note that the error is different though in latest FFmpeg.
comment:3 by , 14 years ago
| Resolution: | → fixed |
|---|---|
| Status: | open → closed |
Remuxing works with current git head.
Note:
See TracTickets
for help on using tickets.



$ ffmpeg -i nonmonotonic_cut.flv -acodec copy -vn out.flv ffmpeg version N-34342-g971e710, Copyright (c) 2000-2011 the FFmpeg developers built on Nov 2 2011 11:09:57 with gcc 4.5.3 configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc libavutil 51. 22. 0 / 51. 22. 0 libavcodec 53. 26. 0 / 53. 26. 0 libavformat 53. 18. 0 / 53. 18. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 45. 3 / 2. 45. 3 libswscale 2. 1. 0 / 2. 1. 0 Seems stream 0 codec frame rate differs from container frame rate: 48.00 (48/1) -> 0.08 (1/12) Input #0, flv, from 'nonmonotonic_cut.flv': Metadata: encoder : Lavf53.18.0 Duration: 00:15:00.07, start: 0.007000, bitrate: 9 kb/s Stream #0:0: Video: h264 (High), yuv420p, 320x240, 0.08 tbr, 1k tbn, 48 tbc Stream #0:1: Audio: aac, 44100 Hz, mono, s16 Output #0, flv, to 'out.flv': Metadata: encoder : Lavf53.18.0 Stream #0:0: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, mono Stream mapping: Stream #0.1 -> #0.0 (copy) Press [q] to stop, [?] for help [flv @ 0x1397ac0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 517 >= 500 av_interleaved_write_frame(): Invalid argument