Created
January 27, 2015 12:33
-
-
Save thisislawatts/7c34b83ff993e5e4788d to your computer and use it in GitHub Desktop.
Takes the first frame out of a video for your previewing pleasure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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