Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a .vob file which is a part of video from DVD. When I play it in a player it has 1 min 50 sec. I would like to extract the frames in one second (or x second).

ffmpeg -i VTS_02_7.VOB -r 1 -f image2 output_%05d.jpg

it generates 177 frames (which I supposed should be 110) and also it shows the last frame 177's time is 00:02:57.00. I wonder how the time duration becomes 2 min 57 sec.

Here is some few lines of output

ffmpeg version N-50025-gb8bb661 Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb 17 2013 02:44:12 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable
-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 17.101 / 52. 17.101
  libavcodec     54. 91.103 / 54. 91.103
  libavformat    54. 63.100 / 54. 63.100
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 38.100 /  3. 38.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, mpeg, from 'VTS_02_7.VOB':
  Duration: 25:34:31.01, start: 3373.368633, bitrate: 12 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DA
R 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
Output #0, image2, to '1min/output_%05d.jpg':
    encoder         : Lavf54.63.100
    Stream #0:0: Video: mjpeg, yuvj420p, 720x480 [SAR 32:27 DAR 16:9], q=2-31, 2
00 kb/s, 90k tbn, 1 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> mjpeg)
Press [q] to stop, [?] for help
frame=    4 fps=0.0 q=0.0 size=N/A time=00:00:03.00 bitrate=N/A dup=0 drop=32
frame=    5 fps=4.7 q=0.0 size=N/A time=00:00:04.00 bitrate=N/A dup=0 drop=60
frame=    5 fps=3.1 q=0.0 size=N/A time=00:00:04.00 bitrate=N/A dup=0 drop=70
frame=    6 fps=2.8 q=0.0 size=N/A time=00:00:05.00 bitrate=N/A dup=0 drop=86
frame=    7 fps=2.6 q=0.0 size=N/A time=00:00:06.00 bitrate=N/A dup=0 drop=126
New subtitle stream 0:2 at pos:5869582 and DTS:3378.39s
frame=    8 fps=2.5 q=0.0 size=N/A time=00:00:07.00 bitrate=N/A dup=0 drop=155
frame=   10 fps=2.6 q=0.0 size=N/A time=00:00:09.00 bitrate=N/A dup=0 drop=195
frame=   11 fps=2.5 q=0.0 size=N/A time=00:00:10.00 bitrate=N/A dup=0 drop=228
frame=   12 fps=2.5 q=0.0 size=N/A time=00:00:11.00 bitrate=N/A dup=0 drop=260
frame=  173 fps=2.4 q=0.0 size=N/A time=00:02:52.00 bitrate=N/A dup=0 drop=4925
frame=  174 fps=2.4 q=0.0 size=N/A time=00:02:53.00 bitrate=N/A dup=0 drop=4946
frame=  175 fps=2.4 q=0.0 size=N/A time=00:02:54.00 bitrate=N/A dup=0 drop=4975
frame=  176 fps=2.4 q=0.0 size=N/A time=00:02:55.00 bitrate=N/A dup=0 drop=4996
frame=  176 fps=2.4 q=0.0 size=N/A time=00:02:55.00 bitrate=N/A dup=0 drop=5015
frame=  177 fps=2.4 q=0.0 size=N/A time=00:02:56.00 bitrate=N/A dup=0 drop=5024
frame=  177 fps=2.4 q=0.0 Lsize=N/A time=00:02:57.00 bitrate=N/A dup=0 drop=5030
video:11204kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.00019

Here the duration is also shown as Duration: 25:34:31.01. How does ffmpeg determine this?

share|improve this question
But the start time is 3373.368633. How about the generated images? Do they match the beginning and end images you expect? –  Rajib Dec 13 '13 at 18:57
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.