Skip to content

Instantly share code, notes, and snippets.

@jtrim
Created May 5, 2010 20:57
Show Gist options
  • Save jtrim/391420 to your computer and use it in GitHub Desktop.
Save jtrim/391420 to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in `ls -1 converted`
do
ffmpeg -i converted/videos/$i -vframes 1 -r 1 -f image2 converted/images/$i.jpg
done
@jtrim
Copy link
Author

jtrim commented May 5, 2010

grabs the first frame from every video in a directory and saves it as a jpg file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment