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.
|
feedback
|
|
Short version:
This command generates a 320×240 sized PNG 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: http://blog.prashanthellina.com/2008/03/29/creating-video-thumbnails-using-ffmpeg/ | |||||||
feedback
|
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
| ||||
|
feedback
|
|
If
finds something, you can use it to dump the video into a sequence of jpg files. | |||
|
feedback
|
|
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. | |||
|
feedback
|
|
You could also try this
| |||||
feedback
|
|
| |||||||
feedback
|
