Last active
February 8, 2025 14:10
-
-
Save FranciscoG/c63760be6d77ab44d919772b2b7b8f82 to your computer and use it in GitHub Desktop.
Convert Video to Image sequence using ffmpeg
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
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
Thanks so much. Same reason as above!