I want to take N screenshots equally spaced out on a video of some format(FLV, mp4, etc). Is there program or a script to a way to automate this?
23 Answers
This blog post lays out a few options and the following examples are taken from there. With VLC you could do something like:
C:\VideoLAN\VLC>vlc "C:\videos\hello.mov" --video-filter=scene --vout=dummy --start-time=1 --stop-time=5 --scene-ratio=1 --scene-prefix=img- --scene-path=C:\images\ vlc://quit
With ffmpeg, the sample command is:
c:\ffmpeg.exe -i c:\video\hello.mov –ss 10 –t 4 img-%03d.jpg 1 It's not entirely clear what you are asking for as the question currently stands, but if you want a set of thumbnail images spanning the entire timespan of a video, Media Player Classic has an option from a paused video. Click on: file > save thumbnails
A simpler command for FFMPEG to create 60 second interval clips is like this:
ffmpeg -i myvideo.avi -vf fps=1/60 img%03d.jpgThis command can be adjusted to take quicker or slower intervals by modifying the fps key. In this example, it takes 1 frame per 60 seconds.
There is a blog guide on it here with details instructions:
2