Skip to content

Instantly share code, notes, and snippets.

@w00tzenheimer
Forked from FranciscoG/convert.sh
Created October 23, 2025 15:39
Show Gist options
  • Select an option

  • Save w00tzenheimer/774099e215d850261c056f2b321e3ac4 to your computer and use it in GitHub Desktop.

Select an option

Save w00tzenheimer/774099e215d850261c056f2b321e3ac4 to your computer and use it in GitHub Desktop.
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
# add -t MM:SS to reduce how much of the video you want to connvert
ffmpeg -t 00:05 -i input.mov -r 15 output_%04d.png
# reduce the file size of the pngs b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment