(issue 1551)
I will attach a damaged transport stream, copying the video stream fails.
$ ffmpeg -i non_monotone_timestamps20091117_cut.ts -vcodec copy -an out.avi
ffmpeg version N-42594-g56ae592 Copyright (c) 2000-2012 the FFmpeg developers
built on Jul 18 2012 09:14:59 with gcc 4.3.2
configuration: --cc=/usr/local/gcc-4.3.2/bin/gcc --enable-gpl --enable-libopenjpeg --enable-libvorbis --enable-libspeex --enable-libmp3lame --enable-libtheora --extra-ldflags=-lm --enable-libvpx --enable-libxavs --enable-x11grab --enable-libass
libavutil 51. 65.100 / 51. 65.100
libavcodec 54. 41.100 / 54. 41.100
libavformat 54. 17.100 / 54. 17.100
libavdevice 54. 1.100 / 54. 1.100
libavfilter 3. 2.100 / 3. 2.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[mpeg2video @ 0x9091100] mpeg_decode_postinit() failure
Last message repeated 10 times
[mpegts @ 0x90774e0] max_analyze_duration 5000000 reached at 5016000
[mpegts @ 0x90774e0] PES packet size mismatch
Last message repeated 5 times
Input #0, mpegts, from 'non_monotone_timestamps20091117_cut.ts':
Duration: 00:00:09.36, start: 14618.429378, bitrate: 2188 kb/s
Program 10
Metadata:
service_name : TEST TIMB 5
service_provider: TIMB1
Program 14
Metadata:
service_name : Sportitalia
service_provider:
Program 15
Metadata:
service_name : Sportitalia24
service_provider:
Program 20
Metadata:
service_name : LA7
service_provider: TIMB1
Program 30
Metadata:
service_name : MTV
service_provider:
Stream #0:0[0xa7]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 544x576 [SAR 24:17 DAR 4:3], 15000 kb/s, 26.94 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0xa8]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 128 kb/s
Stream #0:2[0xaa](���): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Program 40
Metadata:
service_name : QOOB
service_provider:
Program 50
Metadata:
service_name : dahlia promo
service_provider: TIMB1
Program 70
Metadata:
service_name : Mediashopping
service_provider:
Program 80
Metadata:
service_name : QVC
service_provider: TIMB1
Program 110
Metadata:
service_name : TEST TIMB A
service_provider: TIMB1
Program 111
Metadata:
service_name : TEST TIMB B
service_provider: TIMB1
Program 112
Metadata:
service_name : TEST TIMB C
service_provider: TIMB1
Program 113
Metadata:
service_name : TEST TIMB D
service_provider: TIMB1
Program 114
Metadata:
service_name : TEST TIMB E
service_provider: TIMB1
Program 120
Metadata:
service_name : MTV2
service_provider:
Program 130
Metadata:
service_name : MTV3
service_provider:
Program 140
Metadata:
service_name : TED
service_provider:
Output #0, avi, to 'out.avi':
Metadata:
ISFT : Lavf54.17.100
Stream #0:0: Video: mpeg2video (mpg2 / 0x3267706D), yuv420p, 544x576 [SAR 24:17 DAR 4:3], q=2-31, 15000 kb/s, 26.94 fps, 50 tbn, 50 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[avi @ 0x90943e0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 374 >= 374
av_interleaved_write_frame(): Invalid argument
Not reproducible any more.