Changes between Version 1 and Version 2 of Create a thumbnail image every X seconds of the video


Ignore:
Timestamp:
Nov 19, 2012, 12:55:25 PM (4 years ago)
Author:
cehoyos
Comment:

-r has problems (see ticket #1578), always use -vf fps

Legend:

Unmodified
Added
Removed
Modified
  • Create a thumbnail image every X seconds of the video

    v1 v2  
    88But, what if you want to extract thumbnails periodically? This will create one thumbnail image every second, named out1.png, out2.png, out3.png, ... 
    99{{{ 
    10 ffmpeg -i input.flv -f image2 -r 1 out%d.png 
     10ffmpeg -i input.flv -f image2 -vf fps=fps=1 out%d.png 
    1111}}} 
    1212 
     
    1414''(%03d means that ordinal number of each thumbnail image should be formatted using 3 digits)'' 
    1515{{{ 
    16 ffmpeg -i myvideo.avi -f image2 -r 1/60 img%03d.jpg 
     16ffmpeg -i myvideo.avi -f image2 -vf fps=fps=1/60 img%03d.jpg 
    1717}}} 
    1818 
    1919This will create one thumbnail image every 10 minutes, named thumb0001.bmp, thumb0002.bmp, thumb0003.bmp, ... 
    2020{{{ 
    21 ffmpeg -i test.flv -f image2 -r 1/600 thumb%04d.bmp 
     21ffmpeg -i test.flv -f image2 -vf fps=fps=1/600 thumb%04d.bmp 
    2222}}} 
    2323