Opened 12 years ago

Last modified 9 months ago

#1438 open defect

Seeking in vob file with timestamp discontinuities fails

Reported by: Andrzej Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: mpegps seek roundup
Cc: donmoir@comcast.net Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

I am trying to transcode from *.vob to *.avi.
As long as I don't use -ss option everything works as expected.
With -ss option ffmpeg exits with following error:

[ac3 @ 0xa0c75a0] frame sync error
Error while decoding stream #0:9
[mpeg @ 0xa0133c0] Adjusting PTS forward

Last message repeated 27 times

frame= 0 fps=0.0 q=0.0 Lsize= 27kB time=00:-17:-25.-89 bitrate= -0.2kbits/s dup=0 drop=7
video:0kB audio:16kB global headers:0kB muxing overhead 65.411932%

The command line that I use is:
ffmpeg -ss 0:17:47 -t 01:28:48.4 -i '/A/film.vob' '/A/film.avi'

The information about input file:
-> ffmpeg -v 9 -loglevel 99 -i '/A/film.vob'
ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers

built on Jun 9 2012 00:17:30 with gcc 4.6.2
configuration: --cpu=i686 --prefix=/usr --disable-static --enable-shared --enable-gpl --enable-version3 --disable-ffserver --enable-x11grab --disable--amrnb --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora
libavutil 51. 54.100 / 51. 54.100
libavcodec 54. 23.100 / 54. 23.100
libavformat 54. 6.100 / 54. 6.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 77.100 / 2. 77.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100

[mpeg @ 0x906f3c0] Format mpeg probed with size=8192 and score=52
[mpeg @ 0x906f3c0] File position before avformat_find_stream_info() is 0
[mpeg @ 0x906f3c0] probing stream 0 pp:2500
[mpeg @ 0x906f3c0] Probe with size=2012, packets=1 detected mpegvideo with score=25
[mpeg @ 0x906f3c0] probing stream 0 pp:2499
[mpeg @ 0x906f3c0] Probe with size=4037, packets=2 detected mpegvideo with score=25
[mpeg @ 0x906f3c0] probing stream 0 pp:2498
[mpeg @ 0x906f3c0] Probe with size=6062, packets=3 detected mpegvideo with score=25
[mpeg @ 0x906f3c0] probing stream 0 pp:2497
[mpeg @ 0x906f3c0] probing stream 0 pp:2496
[mpeg @ 0x906f3c0] Probe with size=10112, packets=5 detected mpegvideo with score=51
[mpeg @ 0x906f3c0] probed stream 0
[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 29454 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 47454 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 31614 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 34494 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 40254 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 46014 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 65454 in que
[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 72654 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 90654 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 48894 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 54654 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 57534 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 63294 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 69054 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 77694 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 74814 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 83454 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 92094 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 108654 in que
[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 115854 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 133854 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 94974 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 100734 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 106494 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 115134 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 118014 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 123774 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 126654 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 129534 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 138174 in que
[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 151854 in que
[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 159054 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 177054 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 143934 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 152574 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 155454 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 161214 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 166974 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 175614 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 198654 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 178494 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 184254 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 190014 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 198654 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 204414 in que

Last message repeated 5 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 213054 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 215934 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 221694 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 227454 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 230334 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 236094 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 238974 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 244734 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 250494 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 259134 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 256254 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 264894 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 273534 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 276414 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 282174 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 287934 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 296574 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 299454 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 305214 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 308094 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 310974 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 319614 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 325374 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 334014 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 336894 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 342654 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 348414 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 357054 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 359934 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 365694 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 371454 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 380094 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 385854 in que

Last message repeated 5 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 394494 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 397374 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 403134 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 408894 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 411774 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 417534 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 420414 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 426174 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 431934 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 440574 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 437694 in que
[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 446334 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 454974 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] max_analyze_duration 5000000 reached at 5000000
[mpeg @ 0x906f3c0] File position after avformat_find_stream_info() is 0
Input #0, mpeg, from '/A/film.vob':

Duration: 00:00:21.02, start: 0.287267, bitrate: -2147483 kb/s

Stream #0:0[0x1e0], 127, 1/90000: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 1/50, 9800 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x20], 1, 1/90000: Subtitle: dvd_subtitle
Stream #0:2[0x21], 1, 1/90000: Subtitle: dvd_subtitle
Stream #0:3[0x22], 1, 1/90000: Subtitle: dvd_subtitle
Stream #0:4[0x23], 1, 1/90000: Subtitle: dvd_subtitle
Stream #0:5[0x24], 1, 1/90000: Subtitle: dvd_subtitle
Stream #0:6[0x25], 1, 1/90000: Subtitle: dvd_subtitle
Stream #0:7[0x26], 1, 1/90000: Subtitle: dvd_subtitle
Stream #0:8[0x27], 1, 1/90000: Subtitle: dvd_subtitle
Stream #0:9[0x80], 149, 1/90000: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
Stream #0:10[0x81], 149, 1/90000: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
Stream #0:11[0x82], 149, 1/90000: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
Stream #0:12[0x83], 149, 1/90000: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
Stream #0:13[0x84], 152, 1/90000: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0:14[0x28], 1, 1/90000: Subtitle: dvd_subtitle
Stream #0:15[0x29], 1, 1/90000: Subtitle: dvd_subtitle
Stream #0:16[0x2a], 1, 1/90000: Subtitle: dvd_subtitle

At least one output file must be specified

best regards

Andrzej

P.S.
I've already reported this issue almost 2 years ago.
It disappeared from bug reports in ffmpeg but I google it out:
http://roundup.libav.org/issue2199

Attachments (1)

timestamp_wrap.ts (2.4 MB ) - added by Carl Eugen Hoyos 12 years ago.

Change History (18)

comment:1 by Carl Eugen Hoyos, 12 years ago

Component: FFmpegundetermined

Please upload the sample (again), see http://ffmpeg.org/bugreports.html (you may upload bigger samples if it is necessary to reproduce the problem) and please provide the failing command line together with the complete, uncut console output.

comment:2 by Andrzej, 12 years ago

-> ffmpeg -ss 0:17:47 -t 01:28:48.4 -i '/A/film.vob' '/A/film.avi'
ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers

built on Jun 10 2012 23:15:05 with gcc 4.6.2
configuration: --cpu=i686 --prefix=/usr --disable-static --enable-shared --enable-gpl --enable-version3 --disable-ffserver --enable-x11grab --disable-network --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora
libavutil 51. 54.100 / 51. 54.100
libavcodec 54. 23.100 / 54. 23.100
libavformat 54. 6.100 / 54. 6.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 77.100 / 2. 77.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100

[mpeg @ 0x9b333c0] max_analyze_duration 5000000 reached at 5000000
Input #0, mpeg, from '/A/film.vob':

Duration: 00:00:21.02, start: 0.287267, bitrate: -2147483 kb/s

Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 9800 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x20]: Subtitle: dvd_subtitle
Stream #0:2[0x21]: Subtitle: dvd_subtitle
Stream #0:3[0x22]: Subtitle: dvd_subtitle
Stream #0:4[0x23]: Subtitle: dvd_subtitle
Stream #0:5[0x24]: Subtitle: dvd_subtitle
Stream #0:6[0x25]: Subtitle: dvd_subtitle
Stream #0:7[0x26]: Subtitle: dvd_subtitle
Stream #0:8[0x27]: Subtitle: dvd_subtitle
Stream #0:9[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
Stream #0:10[0x81]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
Stream #0:11[0x82]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
Stream #0:12[0x83]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
Stream #0:13[0x84]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0:14[0x28]: Subtitle: dvd_subtitle
Stream #0:15[0x29]: Subtitle: dvd_subtitle
Stream #0:16[0x2a]: Subtitle: dvd_subtitle

[buffer @ 0x9b68e20] w:720 h:576 pixfmt:yuv420p tb:1/90000 sar:64/45 sws_param:flags=2
[buffersink @ 0xa01ac60] No opaque field provided
[aformat @ 0x9b4e860] auto-inserting filter 'auto-inserted resampler 0' between the filter 'src' and the filter 'aformat'
[aresample @ 0x9b4e6a0] chl:5.1(side) fmt:s16 r:48000Hz -> chl:stereo fmt:s16 r:48000Hz
Output #0, avi, to '/A/film.avi':

Metadata:

ISFT : Lavf54.6.100
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 25 tbn, 25 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16

Stream mapping:

Stream #0:0 -> #0:0 (mpeg2video -> mpeg4)
Stream #0:9 -> #0:1 (ac3 -> libmp3lame)

Press [q] to stop, ? for help
[ac3 @ 0x9be75a0] frame sync error
Error while decoding stream #0:9
[mpeg @ 0x9b333c0] Adjusting PTS forward

Last message repeated 27 times

frame= 0 fps=0.0 q=0.0 Lsize= 27kB time=00:-17:-25.-89 bitrate= -0.2kbits/s dup=0 drop=7
video:0kB audio:16kB global headers:0kB muxing overhead 65.411932%

comment:3 by Andrzej, 12 years ago

I uploaded Ticket #1438.vob file.
The output is different but an *.avi film is produced.
Sound is distorted but I noticed that this also happens without -ss options.

-> ffmpeg -ss 0:00:30 -i '/A/film-s.vob' '/A/film.avi'
ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers

built on Jun 10 2012 23:15:05 with gcc 4.6.2
configuration: --cpu=i686 --prefix=/usr --disable-static --enable-shared --enable-gpl --enable-version3 --disable-ffserver --enable-x11grab --disable--amrnb --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora
libavutil 51. 54.100 / 51. 54.100
libavcodec 54. 23.100 / 54. 23.100
libavformat 54. 6.100 / 54. 6.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 77.100 / 2. 77.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100

[mpeg @ 0x966b3c0] max_analyze_duration 5000000 reached at 5000000
Input #0, mpeg, from '/A/film-s.vob':

Duration: 00:00:57.88, start: 0.287267, bitrate: 7075 kb/s

Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 9800 kb/s,
Stream #0:1[0x20]: Subtitle: dvd_subtitle
Stream #0:2[0x21]: Subtitle: dvd_subtitle
Stream #0:3[0x22]: Subtitle: dvd_subtitle
Stream #0:4[0x23]: Subtitle: dvd_subtitle
Stream #0:5[0x24]: Subtitle: dvd_subtitle
Stream #0:6[0x25]: Subtitle: dvd_subtitle
Stream #0:7[0x26]: Subtitle: dvd_subtitle
Stream #0:8[0x27]: Subtitle: dvd_subtitle
Stream #0:9[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
Stream #0:10[0x81]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
Stream #0:11[0x82]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
Stream #0:12[0x83]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
Stream #0:13[0x84]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0:14[0x28]: Subtitle: dvd_subtitle
Stream #0:15[0x29]: Subtitle: dvd_subtitle
Stream #0:16[0x2a]: Subtitle: dvd_subtitle

[buffer @ 0x96ad0c0] w:720 h:576 pixfmt:yuv420p tb:1/90000 sar:64/45 sws_param:flags=2
[buffersink @ 0x96733e0] No opaque field provided
[aformat @ 0x969fe00] auto-inserting filter 'auto-inserted resampler 0' between the filter 'src' and the filter 'aformat'
[aresample @ 0x9770e80] chl:5.1(side) fmt:s16 r:48000Hz -> chl:stereo fmt:s16 r:48000Hz
Output #0, avi, to '/A/film.avi':

Metadata:

ISFT : Lavf54.6.100
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 2
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16

Stream mapping:

Stream #0:0 -> #0:0 (mpeg2video -> mpeg4)
Stream #0:9 -> #0:1 (ac3 -> libmp3lame)

Press [q] to stop, ? for help
[ac3 @ 0x971f5a0] frame sync error
Error while decoding stream #0:9
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 25 times

Adjusting PTS forward=5.4 size= 78kB time=00:00:00.52 bitrate=1204.8kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 27 times

Adjusting PTS forward=12.8 size= 141kB time=00:00:01.56 bitrate= 742.9kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 35 times

Adjusting PTS forward=20.7 size= 217kB time=00:00:02.90 bitrate= 612.6kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 20 times

Adjusting PTS forward=8.2 size= 252kB time=00:00:03.69 bitrate= 559.5kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 32 times

Adjusting PTS forward=19.7 size= 385kB time=00:00:04.92 bitrate= 640.3kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 28 times

Adjusting PTS forward=23.4 size= 447kB time=00:00:06.00 bitrate= 610.0kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 26 times

Adjusting PTS forward=24.3 size= 502kB time=00:00:06.98 bitrate= 589.0kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 27 times

Adjusting PTS forward=28.0 size= 557kB time=00:00:08.04 bitrate= 567.2kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 24 times

Adjusting PTS forward=31.0 size= 634kB time=00:00:08.97 bitrate= 578.4kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 35 times

Adjusting PTS forward=24.8 size= 698kB time=00:00:10.32 bitrate= 554.3kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 26 times

Adjusting PTS forward=31.0 size= 742kB time=00:00:11.30 bitrate= 537.7kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 34 times

Adjusting PTS forward=31.0 size= 801kB time=00:00:12.60 bitrate= 520.9kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 26 times

Adjusting PTS forward=24.8 size= 843kB time=00:00:13.60 bitrate= 507.4kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 27 times

Adjusting PTS forward=31.0 size= 890kB time=00:00:14.66 bitrate= 497.4kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 29 times

Adjusting PTS forward=31.0 size= 965kB time=00:00:15.79 bitrate= 500.4kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 31 times

Adjusting PTS forward=31.0 size= 1024kB time=00:00:16.96 bitrate= 494.3kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 26 times

Adjusting PTS forward=31.0 size= 1068kB time=00:00:17.97 bitrate= 486.9kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 31 times

Adjusting PTS forward=31.0 size= 1116kB time=00:00:19.15 bitrate= 477.4kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 16 times

Adjusting PTS forward=31.0 size= 1179kB time=00:00:19.82 bitrate= 487.1kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 25 times

Adjusting PTS forward=31.0 size= 1290kB time=00:00:20.78 bitrate= 508.4kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 24 times

Adjusting PTS forward=31.0 size= 1387kB time=00:00:21.72 bitrate= 523.1kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 25 times

Adjusting PTS forward=31.0 size= 1485kB time=00:00:22.63 bitrate= 537.4kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 23 times

Adjusting PTS forward=31.0 size= 1576kB time=00:00:23.59 bitrate= 547.4kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 29 times

Adjusting PTS forward=24.8 size= 1647kB time=00:00:24.72 bitrate= 545.8kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 26 times

Adjusting PTS forward=31.0 size= 1689kB time=00:00:25.70 bitrate= 538.2kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 26 times

Adjusting PTS forward=31.0 size= 1739kB time=00:00:26.73 bitrate= 532.8kbits/s dup=0 drop=2
[mpeg @ 0x966b3c0] Adjusting PTS forward

Last message repeated 28 times

Adjusting PTS forward=31.0 size= 1795kB time=00:00:27.79 bitrate= 529.2kbits/s dup=0 drop=2
[mpeg2video @ 0x9671740] ac-tex damaged at 35 21
[mpeg2video @ 0x9671740] Warning MVs not available
[mpeg2video @ 0x9671740] concealing 675 DC, 675 AC, 675 MV errors
[ac3 @ 0x971f5a0] incomplete frame
frame= 706 fps= 51 q=31.0 Lsize= 1845kB time=00:00:27.93 bitrate= 541.1kbits/s dup=0 drop=2
video:1348kB audio:442kB global headers:0kB muxing overhead 3.032815%



shell I upload bigger file to reproduce exactly the same output or this one will be useful?

comment:4 by Carl Eugen Hoyos, 12 years ago

I tried

ffmpeg -ss 10 -i Ticket\ #1438.vob -map 0:0 -map 0:13 -qscale 2 out.avi

(since the sample is only 17 seconds long, I don't think -ss 30 makes much sense) and the resulting file plays fine for me.

Is the problem that you want to report not reproducible with the sample you uploaded? In that case, please provide a sample that does allow to reproduce the problem.

Last edited 12 years ago by Carl Eugen Hoyos (previous) (diff)

comment:5 by Andrzej, 12 years ago

Strange...
when I played previous sample it was 40 seconds long.
Anyway I'm uploading second sample Ticket #1438-2.vob 2:42. ~ 200M

below the output and the resulting file is 15Kb:
-> ffmpeg -ss 30 -i '/A/film-s3.vob' -map 0:0 -map 0:13 -qscale 2 '/A/film.avi'
ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers

built on Jun 10 2012 23:15:05 with gcc 4.6.2
configuration: --cpu=i686 --prefix=/usr --disable-static --enable-shared --enable-gpl --enable-version3 --disable-ffserver --enable-x11grab --disable-network --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora
libavutil 51. 54.100 / 51. 54.100
libavcodec 54. 23.100 / 54. 23.100
libavformat 54. 6.100 / 54. 6.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 77.100 / 2. 77.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100

[mpeg @ 0x8a853c0] max_analyze_duration 5000000 reached at 5000000
Input #0, mpeg, from '/A/film-s3.vob':

Duration: 00:00:21.18, start: 0.287267, bitrate: 77341 kb/s

Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 9800 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x20]: Subtitle: dvd_subtitle
Stream #0:2[0x21]: Subtitle: dvd_subtitle
Stream #0:3[0x22]: Subtitle: dvd_subtitle
Stream #0:4[0x23]: Subtitle: dvd_subtitle
Stream #0:5[0x24]: Subtitle: dvd_subtitle
Stream #0:6[0x25]: Subtitle: dvd_subtitle
Stream #0:7[0x26]: Subtitle: dvd_subtitle
Stream #0:8[0x27]: Subtitle: dvd_subtitle
Stream #0:9[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
Stream #0:10[0x81]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
Stream #0:11[0x82]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
Stream #0:12[0x83]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
Stream #0:13[0x84]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0:14[0x28]: Subtitle: dvd_subtitle
Stream #0:15[0x29]: Subtitle: dvd_subtitle
Stream #0:16[0x2a]: Subtitle: dvd_subtitle

Please use -q:a or -q:v, -qscale is ambiguous
File '/A/film.avi' already exists. Overwrite ? [y/N] y
w:720 h:576 pixfmt:yuv420p tb:1/90000 sar:64/45 sws_param:flags=2
[buffersink @ 0x8a8d640] No opaque field provided
Output #0, avi, to '/A/film.avi':

Metadata:

ISFT : Lavf54.6.100
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 25 tbn, 25 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16

Stream mapping:

Stream #0:0 -> #0:0 (mpeg2video -> mpeg4)
Stream #0:13 -> #0:1 (ac3 -> libmp3lame)

Press [q] to stop, ? for help
[ac3 @ 0x8bd4d20] frame sync error
Error while decoding stream #0:13
[mpeg @ 0x8a853c0] Adjusting PTS forward

Last message repeated 1 times

[mpeg2video @ 0x8a8b740] ac-tex damaged at 28 13
[mpeg2video @ 0x8a8b740] Warning MVs not available
[mpeg2video @ 0x8a8b740] concealing 1035 DC, 1035 AC, 1035 MV errors
[ac3 @ 0x8bd4d20] incomplete frame
frame= 0 fps=0.0 q=0.0 Lsize= 15kB time=00:00:-8.-68 bitrate= -13.7kbits/s dup=0 drop=6
video:0kB audio:4kB global headers:0kB muxing overhead 223.177083%

comment:6 by Andrzej, 12 years ago

Hi cehoyos,

Did you managed to reproduce the error with the second sample that I've uploaded?

comment:7 by Carl Eugen Hoyos, 12 years ago

Yes, I just did not find time yet to generalise the description (I have two additional samples, they are several GB and have to be cut first).

comment:8 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedavformat
Keywords: mpegps seek added
Reproduced by developer: set
Status: newopen
Summary: problems with using -ss option when transcoding from *.vob to *.aviSeeking in vob file with timestamp wrap fails
Version: unspecifiedgit-master

Sample uploaded to http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket1438/timestamp_wrap.vob
The sample is approximately 4:21 and contains 4 timestamp wraps. The segments are about 63, 54, 57, 66 and 21 seconds long. mplayer -demuxer mpegps seeks fine, mplayer -demuxer lavf and ffplay seek badly.
ffmpeg -ss 16 (and below) works approximately correct, ffmpeg -ss 17 jumps to a position 4,5 seconds before the end, -ss 22 fails accordingly.
If only the first 52MB (62 seconds) of the sample are used, seeking works fine, fails with 53 MB and more.

$ ffmpeg -ss 22 -i timestamp_wrap.vob out.png
ffmpeg version N-42547-g7543fd8 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 16 2012 07:44:51 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
  libavutil      51. 65.100 / 51. 65.100
  libavcodec     54. 40.100 / 54. 40.100
  libavformat    54. 16.104 / 54. 16.104
  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
[mpeg @ 0x904d3c0] max_analyze_duration 5000000 reached at 5000000
Input #0, mpeg, from 'timestamp_wrap.vob':
  Duration: 00:00:21.18, start: 0.287267, bitrate: 77341 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 9800 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x20]: Subtitle: dvd_subtitle
    Stream #0:2[0x21]: Subtitle: dvd_subtitle
    Stream #0:3[0x22]: Subtitle: dvd_subtitle
    Stream #0:4[0x23]: Subtitle: dvd_subtitle
    Stream #0:5[0x24]: Subtitle: dvd_subtitle
    Stream #0:6[0x25]: Subtitle: dvd_subtitle
    Stream #0:7[0x26]: Subtitle: dvd_subtitle
    Stream #0:8[0x27]: Subtitle: dvd_subtitle
    Stream #0:9[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
    Stream #0:10[0x81]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
    Stream #0:11[0x82]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
    Stream #0:12[0x83]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
    Stream #0:13[0x84]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0:14[0x28]: Subtitle: dvd_subtitle
    Stream #0:15[0x29]: Subtitle: dvd_subtitle
    Stream #0:16[0x2a]: Subtitle: dvd_subtitle
Output #0, image2, to 'out.png':
  Metadata:
    encoder         : Lavf54.16.104
    Stream #0:0: Video: png, rgb24, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> png)
Press [q] to stop, [?] for help
[mpeg2video @ 0x9053780] ac-tex damaged at 28 13
[mpeg2video @ 0x9053780] Warning MVs not available
[mpeg2video @ 0x9053780] concealing 1035 DC, 1035 AC, 1035 MV errors
frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=   0.0kbits/s dup=0 drop=6
video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead nan%
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)

by Carl Eugen Hoyos, 12 years ago

Attachment: timestamp_wrap.ts added

comment:9 by Carl Eugen Hoyos, 12 years ago

I attached a transport stream that may or may not have a related problem:
169 seconds aac sound with a timestamp wrap approximately in the middle.
The resulting file is ~0.2 seconds long.

$ ffmpeg -ss 1 -i timestamp_wrap.ts out.wav
ffmpeg version N-42547-g7543fd8 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 16 2012 07:44:51 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
  libavutil      51. 65.100 / 51. 65.100
  libavcodec     54. 40.100 / 54. 40.100
  libavformat    54. 16.104 / 54. 16.104
  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
[mpegts @ 0x904d3c0] max_analyze_duration 5000000 reached at 5034667
[mpegts @ 0x904d3c0] PES packet size mismatch
    Last message repeated 1 times
Input #0, mpegts, from 'timestamp_wrap.ts':
  Duration: 00:02:49.21, start: 95364.014889, bitrate: 121 kb/s
  Program 20001
  Program 20002
  Program 20003
  Program 20011
  Program 20012
    Stream #0:0[0x20](deu): Audio: aac ([15][0][0][0] / 0x000F), 24000 Hz, stereo, s16, 56 kb/s (clean effects)
  Program 20013
Output #0, wav, to 'out.wav':
  Metadata:
    encoder         : Lavf54.16.104
    Stream #0:0(deu): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 24000 Hz, stereo, s16, 768 kb/s (clean effects)
Stream mapping:
  Stream #0:0 -> #0:0 (aac -> pcm_s16le)
Press [q] to stop, [?] for help
[mpegts @ 0x904d3c0] PES packet size mismatch
[aac @ 0x9054220] Input buffer exhausted before END element found
Error while decoding stream #0:0: Operation not permitted
size=      20kB time=-26:-27:-55.-28 bitrate=  -0.0kbits/s
video:0kB audio:20kB subtitle:0 global headers:0kB muxing overhead 0.224609%

Seeking in timestamp_wrap.ts with ffplay works very well, both mplayer -demuxer mpegts and mplayer -demuxer lavf mostly fail to seek.

in reply to:  8 comment:11 by Michael Niedermayer, 12 years ago

Replying to cehoyos:

Sample uploaded to http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket1438/timestamp_wrap.vob
The sample is approximately 4:21 and contains 4 timestamp wraps. The segments are about 63, 54, 57, 66 and 21 seconds long. mplayer -demuxer mpegps seeks fine, mplayer -demuxer lavf and ffplay seek badly.
ffmpeg -ss 16 (and below) works approximately correct, ffmpeg -ss 17 jumps to a position 4,5 seconds before the end, -ss 22 fails accordingly.

timestamp wraps in mpeg can occur at a maximum of once every 26.5... hours, if you have 4 in 4 minutes they are not (all) timestamp wraps.
There are 2 seperate things here

  1. timestamp wraps
  2. timestamp discontinuities

Please open 2 seperate tickets for these 2 seperate issues

comment:12 by Carl Eugen Hoyos, 12 years ago

Summary: Seeking in vob file with timestamp wrap failsSeeking in vob file with timestamp discontinuities fails

Ticket #1626 created.

comment:13 by DonMoir, 12 years ago

Cc: donmoir@comcast.net added

comment:14 by Carl Eugen Hoyos, 12 years ago

Keywords: roundup added

comment:15 by gjdfgh, 11 years ago

Chained OGG files behave bogus on seeking.

comment:16 by Carl Eugen Hoyos, 11 years ago

Ticket #2821 looks related.

comment:17 by Balling, 9 months ago

[null @ 0x55670c963800] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1581 >= 1581

[null @ 0x55670c963800] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 2924 >= 2924

[null @ 0x55670c963800] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 6020 >= 6020

in the timestamp_wrap.vob.

Note: See TracTickets for help on using tickets.