Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
video2images.sh
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