Created
February 2, 2023 08:50
-
-
Save y1zhou/0c787d0f3226c18a3161f58d16d88175 to your computer and use it in GitHub Desktop.
Generate an mp4 slideshow from png images
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 \ | |
-framerate 1 \ | |
-pattern_type glob \ | |
-i '*.png' \ | |
-c:v libx264 \ | |
-vf 'pad=ceil(iw/2)*2:ceil(ih/2)*2' \ | |
-pix_fmt yuv420p \ | |
slideshow.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the list of images is numerically-ordered, try this instead: