[FFmpeg-trac] #3032(undetermined:open): ffmpeg fails to stream copy mpeg2 TS file with timestamp discontinuity (was: Ffmpeg fails to stream copy mpeg2 TS files while trimming with av_interleaved_write_frame)
FFmpeg
trac at avcodec.org
Thu Oct 10 09:24:27 CEST 2013
#3032: ffmpeg fails to stream copy mpeg2 TS file with timestamp discontinuity
-------------------------------------+-------------------------------------
Reporter: ramitbhalla | Owner:
Type: defect | Status: open
Priority: normal | Component:
Version: git-master | undetermined
Keywords: | Resolution:
av_interleaved_write_frame mpegts | Blocked By:
mpeg2video dts | Reproduced by developer: 1
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Changes (by cehoyos):
* keywords: av_interleaved_write_frame => av_interleaved_write_frame
mpegts mpeg2video dts
* status: reopened => open
* version: unspecified => git-master
* reproduced: 0 => 1
Comment:
If you believe we can improve the "Submitting Sample Media" paragraph on
http://ffmpeg.org/bugreports.html with respect to file sizes, please do
not hesitate to tell us!
{{{
$ ffmpeg -i discontinuity.ts -vcodec copy -an out.ts
ffmpeg version N-57001-g65c2fe7 Copyright (c) 2000-2013 the FFmpeg
developers
built on Oct 10 2013 02:46:13 with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl
libavutil 52. 46.101 / 52. 46.101
libavcodec 55. 35.100 / 55. 35.100
libavformat 55. 19.100 / 55. 19.100
libavdevice 55. 4.100 / 55. 4.100
libavfilter 3. 88.101 / 3. 88.101
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100
[mpeg2video @ 0x1cf96c0] Invalid frame dimensions 0x0.
Input #0, mpeg, from 'discontinuity.ts':
Duration: 00:00:02.29, start: 992.125233, bitrate: 8960 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt709),
1920x1080 [SAR 1:1 DAR 16:9], max. 11546 kb/s, 29.97 fps, 29.97 tbr, 90k
tbn, 59.94 tbc
Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Output #0, mpegts, to 'out.ts':
Metadata:
encoder : Lavf55.19.100
Stream #0:0: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9],
q=2-31, max. 11546 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x1cf9d00] Non-monotonous DTS in output stream 0:0; previous:
27027, current: 27027; changing to 27028. This may result in incorrect
timestamps in the output file.
[mpegts @ 0x1cf9d00] pts (126126) < dts (216216) in stream 0
av_interleaved_write_frame(): Invalid argument
}}}
Not necessarily related to the warning shown before the fatal error:
{{{
$ ffmpeg -i discontinuity.ts -vcodec copy -an -t 2.4 out.ts
ffmpeg version N-57001-g65c2fe7 Copyright (c) 2000-2013 the FFmpeg
developers
built on Oct 10 2013 02:46:13 with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl
libavutil 52. 46.101 / 52. 46.101
libavcodec 55. 35.100 / 55. 35.100
libavformat 55. 19.100 / 55. 19.100
libavdevice 55. 4.100 / 55. 4.100
libavfilter 3. 88.101 / 3. 88.101
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100
[mpeg2video @ 0x1e7e6c0] Invalid frame dimensions 0x0.
Input #0, mpeg, from 'discontinuity.ts':
Duration: 00:00:02.29, start: 992.125233, bitrate: 8960 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt709),
1920x1080 [SAR 1:1 DAR 16:9], max. 11546 kb/s, 29.97 fps, 29.97 tbr, 90k
tbn, 59.94 tbc
Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Output #0, mpegts, to 'out.ts':
Metadata:
encoder : Lavf55.19.100
Stream #0:0: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9],
q=2-31, max. 11546 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x1e7ed00] Non-monotonous DTS in output stream 0:0; previous:
27027, current: 27027; changing to 27028. This may result in incorrect
timestamps in the output file.
frame= 38 fps=0.0 q=-1.0 Lsize= 1531kB time=00:00:02.40
bitrate=5219.9kbits/s
video:1416kB audio:0kB subtitle:0 global headers:0kB muxing overhead
8.121993%
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3032#comment:7>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list