Skip to content

Instantly share code, notes, and snippets.

@boscomonkey
Created December 9, 2010 20:34
Show Gist options
  • Save boscomonkey/735290 to your computer and use it in GitHub Desktop.
Save boscomonkey/735290 to your computer and use it in GitHub Desktop.
extract frames from a video using VLC
#!/bin/sh
T_START=01:00:00
T_END=${FROM}
FNAME=sample.mp4
cvlc --video-filter scene -V image --start-time ${T_START} --stop-time ${T_END} --scene-format jpg --scene-ratio 24 --scene-prefix snap ${FNAME} vlc://quit 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment