Created
August 6, 2016 13:43
-
-
Save kumekay/f25de9046d4736eed2a5bf337ae6d432 to your computer and use it in GitHub Desktop.
video2images.sh
This file contains 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
INPUT_VIDEO=$1 | |
VIDEO_LENGTH="$(ffprobe -i input.mp4 -show_format | grep duration | sed 's/[A-Za-z=]*//g')" | |
ffmpeg -i $INPUT_VIDEO -vf fps=40/$VIDEO_LENGTH out/frame%02d.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment