Skip to content

Instantly share code, notes, and snippets.

@FranciscoG
FranciscoG / convert.sh
Last active January 17, 2024 16:04
Convert Video to Image sequence using ffmpeg
ffmpeg -i input.mov -r 0.25 output_%04d.png
# -i followed by video file sets input stream
# -r set framerat. 1 = 1 frame per second.
# and then set the output file with the number replacement
# more info: https://ffmpeg.org/ffmpeg.html#Main-options
# https://superuser.com/questions/135117/how-to-convert-video-to-images