How can I convert a video file to a sequence of images, for example one frame every N seconds. Can mplayer or ffmpeg do this? I have used MPlayer to grab screenshots manually but I would like to automate this for a long video.
|
With
This command generates a 320×240 sized JPG thumbnail at the 4th second in the video. Put this in a script that changes the time and file name and you're done. Long version: Creating video thumbnails using ffmpeg |
|||||||||
|
will save a frame as a jpeg file every 5 seconds. However, it will not stop at the end of the file, it will continue producing copies of the last frame. To avoid this, find the duration of the video in seconds (using another player) and subtract 2, and use this value for the
|
||||
|
|
|
If
finds something, you can use it to dump the video into a sequence of jpg files. |
|||
|
|
|
You can skip frames in VirtualDub. Just use "Decimate By" option located at Video -> Frame Rate menu. For example if you set "Decimate By 100" then use File -> Export -> Image sequence, it will save only every 100th frame. |
|||
|
|
|
With VLC 1.1.0 and above, you can use the scene video filter:
The above saves 1 out of every 24 frames (--scene-ratio=24), starting at 00:00:10 and ending at 00:00:11. Just tested and confirmed this works with VLC 2.0.3 on a fresh Windows 8 installation (I have no additional video plugins or software). Full documentation: http://wiki.videolan.org/How_to_create_thumbnails |
|||
|
|
|
You could also try this
|
|||
|
|
||||

