[FFmpeg-trac] #2058(undetermined:open): FFMPEG sometimes not able to stream copy mpeg2video files, error with pts < dts
FFmpeg
trac at avcodec.org
Mon Jan 27 18:32:43 CET 2014
#2058: FFMPEG sometimes not able to stream copy mpeg2video files, error with pts <
dts
-------------------------------------+-------------------------------------
Reporter: ramitbhalla | Owner:
Type: defect | Status: open
Priority: normal | Component:
Version: git-master | undetermined
Keywords: | Resolution:
av_interleaved_write_frame mpegts | Blocked By:
mpeg2video | Reproduced by developer: 1
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by Mista_D):
One more sample that fails to "-codec copy", but decodes fine.
http://www.mediafire.com/watch/7h8ckfwftmxjh3t/test.mpg
ffmpeg213 -y -i test.mpg -c copy -v 99 -fdebug ts -debug_ts t.ts
ffmpeg version 2.1.3 Copyright (c) 2000-2013 the FFmpeg developers
built on Jan 21 2014 18:05:50 with gcc 4.1.2 (GCC) 20080704 (Red Hat
4.1.2-52)
configuration: --enable-static --enable-postproc --enable-gpl --enable-
avfilter --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-
libfaac --enable-pthreads --enable-swscale --enable-runtime-cpudetect
--disable-devices --disable-avdevice --extra-ldflags=-static --disable-
shared --enable-bzlib --enable-zlib --extra-libs='-lx264 -lxvidcore
-lmp3lame -lpthread -lm -lbz2 -lz -lpthread -lvpx -lass -lfontconfig
-lexpat -lfreetype -lfaac' --disable-encoder=libgsm --disable-
decoder=libgsm --disable-doc --enable-libvpx --enable-libass --enable-
version3 --enable-nonfree --enable-libfreetype
libavutil 52. 48.101 / 52. 48.101
libavcodec 55. 39.101 / 55. 39.101
libavformat 55. 19.104 / 55. 19.104
libavfilter 3. 90.100 / 3. 90.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files)
with argument '1'.
Reading option '-i' ... matched as input file with argument 'test.mpg'.
Reading option '-c' ... matched as option 'c' (codec name) with argument
'copy'.
Reading option '-v' ... matched as option 'v' (set logging level) with
argument '99'.
Reading option '-fdebug' ... matched as AVOption 'fdebug' with argument
'ts'.
Reading option '-debug_ts' ... matched as option 'debug_ts' (print
timestamp debugging info) with argument '1'.
Reading option 't.ts' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option v (set logging level) with argument 99.
Applying option debug_ts (print timestamp debugging info) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file test.mpg.
Successfully parsed a group of options.
Opening an input file: test.mpg.
[mpeg @ 0x1429df60] Format mpeg probed with size=8192 and score=52
[mpeg @ 0x1429df60] File position before avformat_find_stream_info() is 0
[mpeg @ 0x1429df60] invalid dts/pts combination 22413
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 29460 (pts
29460, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 37297 (pts
37297, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 45133 (pts
45133, duration 783) in the queue
Last message repeated 7 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 52187 (pts
52187, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 60023 (pts
60023, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 67860 (pts
67860, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 75697 (pts
75697, duration 783) in the queue
Last message repeated 7 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 82750 (pts
82750, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 90586 (pts
90586, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 98423 (pts
98423, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 106260 (pts
106260, duration 783) in the queue
Last message repeated 7 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 113314 (pts
113314, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 121150 (pts
121150, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 128986 (pts
128986, duration 783) in the queue
Last message repeated 7 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 136040 (pts
136040, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 143876 (pts
143876, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 151713 (pts
151713, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 159550 (pts
159550, duration 783) in the queue
Last message repeated 7 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 166603 (pts
166603, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 174439 (pts
174439, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 182276 (pts
182276, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 190113 (pts
190113, duration 783) in the queue
Last message repeated 7 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 197167 (pts
197167, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 205003 (pts
205003, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 212839 (pts
212839, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 220676 (pts
220676, duration 783) in the queue
Last message repeated 7 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 227730 (pts
227730, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 235566 (pts
235566, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 243403 (pts
243403, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 251239 (pts
251239, duration 783) in the queue
Last message repeated 7 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 258286 (pts
258286, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 266129 (pts
266129, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 273966 (pts
273966, duration 783) in the queue
Last message repeated 7 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 281020 (pts
281020, duration 783) in the queue
Last message repeated 8 times
[mpeg @ 0x1429df60] first_dts 22413 not matching first dts 288856 (pts
288856, duration 783) in the queue
Last message repeated 8 times
rfps: 23.833333 0.015297
Last message repeated 1 times
rfps: 23.916667 0.002647
Last message repeated 1 times
rfps: 24.000000 0.000432
rfps: 24.083333 0.008653
Last message repeated 1 times
rfps: 47.833333 0.010587
Last message repeated 1 times
rfps: 47.916667 0.000940
Last message repeated 1 times
rfps: 48.000000 0.001728
rfps: 48.083333 0.012952
rfps: 23.976024 0.000000
Last message repeated 1 times
rfps: 47.952048 0.000000
Last message repeated 1 times
[mpeg @ 0x1429df60] File position after avformat_find_stream_info() is 0
Input #0, mpeg, from 'test.mpg':
Duration: 00:00:03.17, start: 0.249033, bitrate: 7803 kb/s
Stream #0:0[0x1e0], 74, 1/90000: Video: mpeg2video (Main),
yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 1001/48000, max. 7500 kb/s,
23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1[0x1c0], 351, 1/90000: Audio: mp1, 44100 Hz, stereo, s16p,
192 kb/s
Successfully opened the file.
Parsing a group of options: output file t.ts.
Applying option c (codec name) with argument copy.
Successfully parsed a group of options.
Opening an output file: t.ts.
Successfully opened the file.
[mpegts @ 0x1429fda0] muxrate VBR, pcr every 2 pkts, sdt every 200,
pat/pmt every 40 pkts
Output #0, mpegts, to 't.ts':
Metadata:
encoder : Lavf55.19.104
Stream #0:0, 0, 1/90000: Video: mpeg2video, yuv420p, 1920x1080 [SAR
1:1 DAR 16:9], 1001/24000, q=2-31, max. 7500 kb/s, 23.98 fps, 90k tbn,
23.98 tbc
Stream #0:1, 0, 1/90000: Audio: mp1, 44100 Hz, stereo, 192 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpeg @ 0x1429df60] invalid dts/pts combination 22413
demuxer -> ist_index:0 type:video next_dts:NOPTS next_dts_time:NOPTS
next_pts:NOPTS next_pts_time:NOPTS pkt_pts:22413 pkt_pts_time:0.249033
pkt_dts:22414 pkt_dts_time:0.249044 off:-249033 off_time:-0.249033
demuxer+ffmpeg -> ist_index:0 type:video pkt_pts:0 pkt_pts_time:0
pkt_dts:1 pkt_dts_time:1.11111e-05 off:-249033 off_time:-0.249033
muxer <- type:video pkt_pts:0 pkt_pts_time:0 pkt_dts:1
pkt_dts_time:1.11111e-05 size:64149
[mpegts @ 0x1429fda0] pts (0) < dts (1) in stream 0
av_interleaved_write_frame(): Invalid argument
[AVIOContext @ 0x142a13a0] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 0x142a6620] Statistics: 3440304 bytes read, 2 seeks
--
Ticket URL: <https://trac.ffmpeg.org/ticket/2058#comment:13>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list