Title problems with using -ss option when transcoding from *.vob to *.avi
Type bug
Priority normal Status open needs_more_info
Superseder Nosy List
Depends On
Assigned To Topics

Created on 2010-08-29.14:35:28 by superandrzej, last changed 2010-09-04.22:58:05 by superandrzej.

Please provide full uncut output from "ffmpeg -i" if you are reporting issues with unplayable files.
Messages
msg11778 (view) Author: superandrzej Date: 2010-08-29.14:35:28
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 @ 0x9562160] frame sync error
Error while decoding stream #0.13                                              
                                                                               
                                                  
frame=    0 fps=  0 q=0.0 Lsize=      18kB time=0.96 bitrate= 155.4kbits/s dup=0
drop=7    
video:0kB audio:8kB global headers:0kB muxing overhead 142.760417%

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


The information about input file:
-> ffmpeg -v 9 -loglevel 99 -i '/second/film.vob'                              
                                                                               
                           
FFmpeg version SVN-r24953-snapshot, Copyright (c) 2000-2010 the FFmpeg developers
  built on Aug 29 2010 00:39:23 with gcc 4.4.4
  configuration: --cpu=i686 --prefix=/usr --disable-static --enable-shared
--enable-gpl --enable-version3 --disable-ffplay --disable-ffserver
--enable-postproc --enable-x11grab --disable-network --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora
  libavutil     50.24. 0 / 50.24. 0
  libavcore      0. 6. 0 /  0. 6. 0
  libavcodec    52.87. 0 / 52.87. 0
  libavformat   52.78. 3 / 52.78. 3
  libavdevice   52. 2. 1 / 52. 2. 1
  libavfilter    1.38. 1 /  1.38. 1
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[NULL @ 0x87b7560] Probed with size=8192 and score=52
[mpeg @ 0x87b7560] probing stream 0
    Last message repeated 4 times
[mpeg @ 0x87b7560] Probe with size=10112, packets=5 detected mpegvideo with score=51
[mpeg @ 0x87b7560] probed stream 0
[mpeg @ 0x87b7560] max_analyze_duration reached
Input #0, mpeg, from '/second/film.vob':                                       
                                                                               
                                                  
  Duration: 00:00:21.02, start: 0.287267, bitrate: -2147483 kb/s
    Stream #0.0[0x1e0], 127, 1/90000: Video: mpeg2video, yuv420p, 720x576 [PAR
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: dvdsub
    Stream #0.2[0x21], 1, 1/90000: Subtitle: dvdsub
    Stream #0.3[0x22], 1, 1/90000: Subtitle: dvdsub
    Stream #0.4[0x23], 1, 1/90000: Subtitle: dvdsub
    Stream #0.5[0x24], 1, 1/90000: Subtitle: dvdsub
    Stream #0.6[0x25], 1, 1/90000: Subtitle: dvdsub
    Stream #0.7[0x26], 1, 1/90000: Subtitle: dvdsub
    Stream #0.8[0x27], 1, 1/90000: Subtitle: dvdsub
    Stream #0.9[0x80], 149, 1/90000: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    Stream #0.10[0x81], 149, 1/90000: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
    Stream #0.11[0x82], 149, 1/90000: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
    Stream #0.12[0x83], 149, 1/90000: Audio: ac3, 48000 Hz, 5.1, 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: dvdsub
    Stream #0.15[0x29], 1, 1/90000: Subtitle: dvdsub
    Stream #0.16[0x2a], 1, 1/90000: Subtitle: dvdsub
At least one output file must be specified




I tried to bypass the problem:
1) I transcoded *.vob without -ss option.
2) I used following command to get rid of the beginning that I was not
interested in:
ffmpeg -ss 0:17:47 -i '/second/film.avi' -vcodec copy -acodec copy
'/second/film-cut.avi'

The resulted film-cut.avi was OK when played from the beginning but any attempt
to move forward or backward resulted in AV desynchronisation and CPU usage
surges to 100%.
With uncut film.avi moving forward or backward causes no problems and CPU usage
is normal.


Below information about film.avi and film-cut.avi

-> ffmpeg -v 9 -loglevel 99 -i '/second/film.avi'
FFmpeg version SVN-r24953-snapshot, Copyright (c) 2000-2010 the FFmpeg developers
  built on Aug 29 2010 00:39:23 with gcc 4.4.4
  configuration: --cpu=i686 --prefix=/usr --disable-static --enable-shared
--enable-gpl --enable-version3 --disable-ffplay --disable-ffserver
--enable-postproc --enable-x11grab --disable-network --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora
  libavutil     50.24. 0 / 50.24. 0
  libavcore      0. 6. 0 /  0. 6. 0
  libavcodec    52.87. 0 / 52.87. 0
  libavformat   52.78. 3 / 52.78. 3
  libavdevice   52. 2. 1 / 52. 2. 1
  libavfilter    1.38. 1 /  1.38. 1
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[NULL @ 0x866a560] Probed with size=2048 and score=100
[avi @ 0x866a560] All info found
Input #0, avi, from '/second/film-2p.avi':
  Metadata:
    ISFT            : Lavf52.78.3
  Duration: 01:46:35.68, start: 0.000000, bitrate: 1130 kb/s
    Stream #0.0, 1, 1/25: Video: mpeg4, yuv420p, 560x315 [PAR 1:1 DAR 16:9],
1/25, 25 tbr, 25 tbn, 25 tbc
    Stream #0.1, 1, 3/125: Audio: mp3, 48000 Hz, 2 channels, s16, 128 kb/s
At least one output file must be specified



-> ffmpeg -v 9 -loglevel 99 -i '/second/film-cut.avi'
FFmpeg version SVN-r24953-snapshot, Copyright (c) 2000-2010 the FFmpeg developers
  built on Aug 29 2010 00:39:23 with gcc 4.4.4
  configuration: --cpu=i686 --prefix=/usr --disable-static --enable-shared
--enable-gpl --enable-version3 --disable-ffplay --disable-ffserver
--enable-postproc --enable-x11grab --disable-network --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora
  libavutil     50.24. 0 / 50.24. 0
  libavcore      0. 6. 0 /  0. 6. 0
  libavcodec    52.87. 0 / 52.87. 0
  libavformat   52.78. 3 / 52.78. 3
  libavdevice   52. 2. 1 / 52. 2. 1
  libavfilter    1.38. 1 /  1.38. 1
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[NULL @ 0x9422560] Probed with size=2048 and score=100
[mp3 @ 0x9424260] mdb:434, lastbuf:0 skipping granule 0
    Last message repeated 1 times                                              
                                                                               
                                                  
[mp3 @ 0x9424260] mdb:434, lastbuf:0 skipping granule 1                        
                                                                               
                                                  
    Last message repeated 1 times                                              
                                                                               
                                                  
[avi @ 0x9422560] All info found                                               
                                                                               
                                                  
Input #0, avi, from '/second/film-2p-cut.avi':                                 
                                                                               
                                                  
  Metadata:                                                                    
                                                                               
                                                  
    ISFT            : Lavf52.78.3                                              
                                                                               
                                                  
  Duration: 01:28:48.68, start: 0.000000, bitrate: 1182 kb/s                   
                                                                               
                                                  
    Stream #0.0, 1, 1/25: Video: mpeg4, yuv420p, 560x315 [PAR 1:1 DAR 16:9],
1/25, 25 tbr, 25 tbn, 25 tbc                                                   
                                                     
    Stream #0.1, 1, 3/125: Audio: mp3, 48000 Hz, 2 channels, s16, 128 kb/s     
                                                                               
                                                  
At least one output file must be specified            



best regards

Andrzej
msg11780 (view) Author: cehoyos Date: 2010-08-29.17:24:02
Please only post the complete, uncut output for the failing transcode command,
not complete uncut output when only identifying the input file plus heavily cut
output for the failing transcode.

iiuc, you are describing a second, unrelated problem with avi files: Please open
a new issue for this problem.
msg11808 (view) Author: superandrzej Date: 2010-08-31.22:50:27
-> ffmpeg -ss 0:17:47 -t 01:28:48.4 -i '/second/film.vob' '/second/film.avi'
FFmpeg version SVN-r24953-snapshot, Copyright (c) 2000-2010 the FFmpeg developers
  built on Aug 29 2010 00:39:23 with gcc 4.4.4
  configuration: --cpu=i686 --prefix=/usr --disable-static --enable-shared
--enable-gpl --enable-version3 --disable-ffplay --disable-ffserver
--enable-postproc --enable-x11grab --disable-network --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora
  libavutil     50.24. 0 / 50.24. 0
  libavcore      0. 6. 0 /  0. 6. 0
  libavcodec    52.87. 0 / 52.87. 0
  libavformat   52.78. 3 / 52.78. 3
  libavdevice   52. 2. 1 / 52. 2. 1
  libavfilter    1.38. 1 /  1.38. 1
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[mpeg @ 0x9904560] max_analyze_duration reached
Input #0, mpeg, from '/second/film.vob':
  Duration: 00:00:21.02, start: 0.287267, bitrate: -2147483 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR
16:9], 9800 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x20]: Subtitle: dvdsub
    Stream #0.2[0x21]: Subtitle: dvdsub
    Stream #0.3[0x22]: Subtitle: dvdsub
    Stream #0.4[0x23]: Subtitle: dvdsub
    Stream #0.5[0x24]: Subtitle: dvdsub
    Stream #0.6[0x25]: Subtitle: dvdsub
    Stream #0.7[0x26]: Subtitle: dvdsub
    Stream #0.8[0x27]: Subtitle: dvdsub
    Stream #0.9[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    Stream #0.10[0x81]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
    Stream #0.11[0x82]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
    Stream #0.12[0x83]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
    Stream #0.13[0x84]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0.14[0x28]: Subtitle: dvdsub
    Stream #0.15[0x29]: Subtitle: dvdsub
    Stream #0.16[0x2a]: Subtitle: dvdsub
[buffer @ 0x9909780] w:720 h:576 pixfmt:yuv420p
Output #0, avi, to '/second/film.avi':
  Metadata:
    ISFT            : Lavf52.78.3
    Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31,
200 kb/s, 25 tbn, 25 tbc                                                       
                                                    
    Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 64 kb/s                    
                                                                               
                                                  
Stream mapping:                                                                
                                                                               
                                                  
  Stream #0.0 -> #0.0                                                          
                                                                               
                                                  
  Stream #0.13 -> #0.1                                                         
                                                                               
                                                  
Press [q] to stop encoding                                                     
                                                                               
                                                  
[ac3 @ 0x9a0c160] frame sync error                                             
                                                                               
                                                  
Error while decoding stream #0.13                                              
                                                                               
                                                  
frame=    0 fps=  0 q=0.0 Lsize=      18kB time=0.96 bitrate= 155.4kbits/s dup=0
drop=7                                                                         
                                                 
video:0kB audio:8kB global headers:0kB muxing overhead 142.760417%
msg11831 (view) Author: cehoyos Date: 2010-09-01.08:41:40
Do the following work?
ffmpeg -ss 0:17:47 -t 01:28:48.4 -i /second/film.vob /second/film.mov
ffmpeg -ss 0:17:47 -i /second/film.vob /second/film.avi
ffmpeg -ss 0:17:47 -t 01:28:48.4 -i /second/film.vob -an /second/film.avi
ffmpeg -ss 0:17:47 -t 01:28:48.4 -i /second/film.vob -vn /second/film.avi
ffmpeg -ss 0:17:47 -t 01:28:48.4 -i /second/film.vob -f null -
ffmpeg -ss 0:17:47 /second/film.vob -vn -f null -
ffmpeg -ss 0:17:47 /second/film.vob -vn -map 0.13 -f null -
ffmpeg /second/film.vob -vn -map 0.13 -f null -
msg11840 (view) Author: superandrzej Date: 2010-09-02.23:16:40
ffmpeg -ss 0:17:47 -t 01:28:48.4 -i /second/film.vob /second/film.mov		- NO. the
same error message
ffmpeg -ss 0:17:47 -i /second/film.vob /second/film.avi				- NO. the same error
message
ffmpeg -ss 0:17:47 -t 01:28:48.4 -i /second/film.vob -an /second/film.avi	- NO.
no error message, output below
ffmpeg -ss 0:17:47 -t 01:28:48.4 -i /second/film.vob -vn /second/film.avi	- NO.
the same error message
ffmpeg -ss 0:17:47 -t 01:28:48.4 -i /second/film.vob -f null -			- NO. the same
error message
ffmpeg -ss 0:17:47 /second/film.vob -vn -f null -				- NO. this command tries to
overwrite the original movie
I changed it into:
ffmpeg -ss 0:17:47 -i /second/film.vob -vn -f null -				- NO. the same error message
ffmpeg -ss 0:17:47 /second/film.vob -vn -map 0.13 -f null -			- NO. this command
tries to overwrite the original movie
I changed it into:
ffmpeg -ss 0:17:47 -i /second/film.vob -vn -map 0.13 -f null -			- NO. the same
error message
ffmpeg /second/film.vob -vn -map 0.13 -f null -					- NO. this command tries to
overwrite the original movie
I changed it into:
ffmpeg -i /second/film.vob -vn -map 0.13 -f null -				- YES



-> ffmpeg -ss 0:17:47 -t 01:28:48.4 -i /second/film.vob -an /second/film.avi
FFmpeg version SVN-r24953-snapshot, Copyright (c) 2000-2010 the FFmpeg developers
  built on Aug 29 2010 00:39:23 with gcc 4.4.4
  configuration: --cpu=i686 --prefix=/usr --disable-static --enable-shared
--enable-gpl --enable-version3 --disable-ffplay --disable-ffserver
--enable-postproc --enable-x11grab --disable-network --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora
  libavutil     50.24. 0 / 50.24. 0
  libavcore      0. 6. 0 /  0. 6. 0
  libavcodec    52.87. 0 / 52.87. 0
  libavformat   52.78. 3 / 52.78. 3
  libavdevice   52. 2. 1 / 52. 2. 1
  libavfilter    1.38. 1 /  1.38. 1
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[mpeg @ 0x9a6d560] max_analyze_duration reached
Input #0, mpeg, from '/second/film.vob':
  Duration: 00:00:21.02, start: 0.287267, bitrate: -2147483 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR
16:9], 9800 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x20]: Subtitle: dvdsub
    Stream #0.2[0x21]: Subtitle: dvdsub
    Stream #0.3[0x22]: Subtitle: dvdsub
    Stream #0.4[0x23]: Subtitle: dvdsub
    Stream #0.5[0x24]: Subtitle: dvdsub
    Stream #0.6[0x25]: Subtitle: dvdsub
    Stream #0.7[0x26]: Subtitle: dvdsub
    Stream #0.8[0x27]: Subtitle: dvdsub
    Stream #0.9[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    Stream #0.10[0x81]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
    Stream #0.11[0x82]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
    Stream #0.12[0x83]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
    Stream #0.13[0x84]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0.14[0x28]: Subtitle: dvdsub
    Stream #0.15[0x29]: Subtitle: dvdsub
    Stream #0.16[0x2a]: Subtitle: dvdsub
[buffer @ 0x9a71a40] w:720 h:576 pixfmt:yuv420p
Output #0, avi, to '/second/film.avi':
  Metadata:
    ISFT            : Lavf52.78.3
    Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31,
200 kb/s, 25 tbn, 25 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=    0 fps=  0 q=0.0 Lsize=       6kB time=10000000000.00 bitrate=  
0.0kbits/s dup=0 drop=7
video:0kB audio:0kB global headers:0kB muxing overhead inf%
msg11846 (view) Author: cehoyos Date: 2010-09-03.10:29:55
ffmpeg -ss 0:17:47 -i /second/film.vob -vn -f null -
seems to be the minimal command line to reproduce your 
problem.
Now please cut the input file as explained on 
http://ffmpeg.org/bugreports.html so it is still long 
enough to reproduce the problem and upload the cut 
sample into a new directory issue2199 on 
ftp://ffmpeg.org/MPlayer/incoming/ (write-only).
msg11864 (view) Author: superandrzej Date: 2010-09-04.22:58:04
sample uploaded.

With original *.vob ffmpeg quits immediately after error message
but with short version of *.vob ffmepg works after error message till it finds
the end of file.
History
Date User Action Args
2010-09-04 22:58:05superandrzejsetmessages: + msg11864
2010-09-03 10:29:55cehoyossetmessages: + msg11846
2010-09-02 23:16:40superandrzejsetmessages: + msg11840
2010-09-01 08:41:40cehoyossetmessages: + msg11831
2010-08-31 22:50:27superandrzejsetmessages: + msg11808
title: problems with -ss option -> problems with using -ss option when transcoding from *.vob to *.avi
2010-08-29 17:24:02cehoyossetstatus: new -> open
messages: + msg11780
substatus: new -> needs_more_info
2010-08-29 14:35:28superandrzejcreate