[FFmpeg-trac] #3558(undetermined:new): "-fflags +igndts" generates wrong dts when rewrapping some ts files to mp4
FFmpeg
trac at avcodec.org
Mon Apr 14 14:28:13 CEST 2014
#3558: "-fflags +igndts" generates wrong dts when rewrapping some ts files to mp4
-------------------------------------+-------------------------------------
Reporter: wim_arbor | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: mov | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
When copying the streams of a mpeg-ts containing h.264 and mpeg1L2 audio
to mp4/mov using {{{-fflags +igndts}}}, av_interleaved_write_frame()
reports: Invalid argument, pts (-10800) < dts (-3600). The output is
(almost) empty. Without {{{-fflags +igndts}}} a proper output is created.
How to reproduce:
{{{
arbor at debian7:~$ bin/ffmpeg -y -fflags +igndts -i of_commercial_dvb_cut.ts
-f mov -c:a copy -c:v copy out.mp4
ffmpeg version N-62439-g5e379cd Copyright (c) 2000-2014 the FFmpeg
developers
built on Apr 14 2014 13:41:14 with gcc 4.7 (Debian 4.7.2-5)
configuration:
libavutil 52. 76.100 / 52. 76.100
libavcodec 55. 58.103 / 55. 58.103
libavformat 55. 37.100 / 55. 37.100
libavdevice 55. 13.100 / 55. 13.100
libavfilter 4. 4.100 / 4. 4.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 18.100 / 0. 18.100
[mp3 @ 0x20fd2e0] Header missing
[mpegts @ 0x20f7a00] PES packet size mismatch
Last message repeated 1 times
Input #0, mpegts, from 'of_commercial_dvb_cut.ts':
Duration: 00:00:05.96, start: 4576.668422, bitrate: 2523 kb/s
Program 1
Stream #0:0[0xa1]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(tv, bt470bg), 720x576 [SAR 16:11 DAR 20:11], 25 fps, 25 tbr, 90k
tbn, 50 tbc
Stream #0:1[0x111](nla): Subtitle: dvb_teletext ([6][0][0][0] /
0x0006)
Stream #0:2[0x489](nla): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 192 kb/s
Output #0, mov, to 'out.mp4':
Metadata:
encoder : Lavf55.37.100
Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p, 720x576 [SAR
16:11 DAR 20:11], q=2-31, 25 fps, 90k tbn, 90k tbc
Stream #0:1(nla): Audio: mp2 (.mp2 / 0x32706D2E), 48000 Hz, stereo,
192 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:2 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mov @ 0x20fe060] pts (-10800) < dts (-3600) in stream 0
av_interleaved_write_frame(): Invalid argument
frame= 2 fps=0.0 q=-1.0 Lsize= 55kB time=00:00:00.00 bitrate=N/A
video:61kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
}}}
Patches should be submitted to the ffmpeg-devel mailing list and not this
bug tracker.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3558>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list