Created
February 26, 2024 04:42
-
-
Save evadecker/fc82bc34695e4422115ad13afbf5f070 to your computer and use it in GitHub Desktop.
Convert .png frames to a video
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
# 1 frame per second | |
ffmpeg -framerate 1 -pattern_type glob -i '*.png' \ | |
-c:v libx264 -r 30 -pix_fmt yuv420p out.mp4 | |
# 30 frames per second | |
ffmpeg -framerate 30 -pattern_type glob -i '*.png' \ | |
-i audio.ogg -c:a copy -shortest -c:v libx264 -pix_fmt yuv420p out.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment