Last active
September 18, 2024 06:54
-
-
Save FranciscoG/c63760be6d77ab44d919772b2b7b8f82 to your computer and use it in GitHub Desktop.
Convert Video to Image sequence using ffmpeg
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
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 |
Thanks so much. Same reason as above!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this! I need to rotoscope (basically trace a video for an animation) a video of myself for an animation class and the software I have to use requires you to import one frame at a time (it's bad software, I wouldn't use it if I didn't have to)