OwenCuro <[email protected]> added the comment:

This patch worked for me on a file:

http://ocean.blue.dmu.ac.uk/~williams/nonMonotoneTimestamps.mpg

The patch was run against: r19857

$ ffmpeg -i 1015_20090819162900.mpg
FFmpeg version SVN-r19857, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=/usr/local --enable-shared --enable-nonfree
--disable-ffserver --enable-pthreads --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libdirac --enable-libfaac --enable-libfaad
--enable-libgsm --enable-libmp3lame --enable-libnut --enable-libnut
--enable-libopenjpeg --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
--enable-zlib --enable-pic --enable-gpl --enable-version3
--extra-cflags=-I/usr/include/gsm
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.35. 0 / 52.35. 0
  libavformat   52.38. 0 / 52.38. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
  built on Sep 15 2009 15:04:30, gcc: 4.1.2 20080704 (Red Hat 4.1.2-44)

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1)
-> 25.00 (25/1)
Input #0, mpegts, from '1015_20090819162900.mpg':
  Duration: 02:18:57.69, start: 7497.635144, bitrate: 2277 kb/s
  Program 1 
    Stream #0.0[0x2bd]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3],
15000 kb/s, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x2be](eng): Audio: mp2, 48000 Hz, 2 channels, s16, 128 kb/s
    Stream #0.2[0x2c0](eng): Audio: mp3, 0 channels, s16
    Stream #0.3[0x2bf](eng): Subtitle: dvbsub
At least one output file must be specified

Before the patch ffmpeg would fail:

ffmpeg -t 270 -sameq -y -i 1015_20090819162900.mpg -vcodec copy -acodec copy 
bob.mpg

[NULL @ 0x22dbef0]error, non monotone timestamps 24286522 >= 24286522kbits/s    
av_interleaved_write_frame(): Error while opening file

_____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1126>
_____________________________________________________

Reply via email to