Monday, April 8, 2013

Grab video frames using VLC

The following grabs every fifth frame starting from second 0:20 and ending on 0:30 (10 seconds). Frames are saved in ./out/ . The number of frames captured depends on the number of frames per second of the video.

vlc video.avi --video-filter=scene --vout=dummy --start-time=20 --stop-time=30 --scene-ratio=5 --scene-prefix=frame --scene-path=./out vlc://quit

No comments:

Post a Comment