[FFmpeg-user] pts/dts error using reset_timestamps while splitting a DVD

Owen Jones asorti6 at gmail.com
Tue Feb 5 11:31:37 CET 2013


On 23 Jan 2013, at 10:08, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> If you use the segmenting on the original vob file, do 
> you see the same error?

I've rebuilt ffmpeg again with I think the latest git version. I'm still getting the error running against the raw vob file copied from DVD.

I've also tried using -ss instead and this works fine. I could use this as an alternative (with -t) but it will be very clumsy since I need to make a lot of splits. I'd still really appreciate a solution to the segmenting problem if there is one...

beefy:Desktop riots$ ffmpeg -i VTS_01_1.VOB -codec copy -map 0 -f segment -segment_times 0:1:0 -reset_timestamps 1 split_%02d.mov
ffmpeg version 1.1.git-103a2c2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb  5 2013 09:17:52 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
  configuration: --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-hardcoded-tables --enable-shared --enable-pthreads --disable-indevs --cc=clang
  libavutil      52. 17.101 / 52. 17.101
  libavcodec     54. 91.100 / 54. 91.100
  libavformat    54. 61.104 / 54. 61.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 35.101 /  3. 35.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[mpeg @ 0x7fbdb3806600] max_analyze_duration 5000000 reached at 5000000 microseconds
Input #0, mpeg, from 'VTS_01_1.VOB':
  Duration: 00:00:10.60, start: 0.235211, bitrate: 803800 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
[mov @ 0x7fbdb3831c00] track 1: codec frame size is not set
Output #0, segment, to 'split_%02d.mov':
  Metadata:
    encoder         : Lavf54.61.104
    Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 25 fps, 90k tbn, 25 tbc
    Stream #0:1: Audio: ac3, 48000 Hz, stereo, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mov @ 0x7fbdb3831c00] track 1: codec frame size is not set
[mov @ 0x7fbdb3831c00] pts (-5376) < dts (384) in stream 1
av_interleaved_write_frame(): Invalid argument


beefy:Desktop riots$ ffmpeg -i VTS_01_1.VOB -codec copy -ss 0:1:0 -y split.mov
ffmpeg version 1.1.git-103a2c2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb  5 2013 09:17:52 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
  configuration: --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-hardcoded-tables --enable-shared --enable-pthreads --disable-indevs --cc=clang
  libavutil      52. 17.101 / 52. 17.101
  libavcodec     54. 91.100 / 54. 91.100
  libavformat    54. 61.104 / 54. 61.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 35.101 /  3. 35.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[mpeg @ 0x7fde02006600] max_analyze_duration 5000000 reached at 5000000 microseconds
Input #0, mpeg, from 'VTS_01_1.VOB':
  Duration: 00:00:10.60, start: 0.235211, bitrate: 803800 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
[mov @ 0x7fde02033a00] track 1: codec frame size is not set
Output #0, mov, to 'split.mov':
  Metadata:
    encoder         : Lavf54.61.104
    Stream #0:0: Video: mpeg2video (m2v1 / 0x3176326D), yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 25 fps, 90k tbn, 90k tbc
    Stream #0:1: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=45549 fps=3009 q=-1.0 Lsize=  977861kB time=00:30:22.07 bitrate=4396.4kbits/s    
video:919682kB audio:56940kB subtitle:0 global headers:0kB muxing overhead 0.126961%

Regards, Owen


More information about the ffmpeg-user mailing list