Skip to content

Instantly share code, notes, and snippets.

@thisislawatts
Created January 27, 2015 12:33
Show Gist options
  • Save thisislawatts/7c34b83ff993e5e4788d to your computer and use it in GitHub Desktop.
Save thisislawatts/7c34b83ff993e5e4788d to your computer and use it in GitHub Desktop.
Takes the first frame out of a video for your previewing pleasure
# Requires ffmpeg
function ffumbnail() {
file_name=$(basename "${1}")
file_name_no_ext="${file_name%.*}"
ffmpeg -i $file_name -vframes 1 $file_name_no_ext.jpg;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment