Skip to content

Instantly share code, notes, and snippets.

@jmahmood
Created March 23, 2012 06:04
Show Gist options
  • Save jmahmood/2167483 to your computer and use it in GitHub Desktop.
Save jmahmood/2167483 to your computer and use it in GitHub Desktop.
Get Screenshots for files in a directory
for file in *.m4v ; do
ffmpeg -ss 00:00:15 -i $file -vframes 1 -an -f image2 $(echo $file | rev | cut -f2- -d. | rev).png
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment