Created
February 23, 2020 10:47
-
-
Save OrderAndCh4oS/27d712927914c52a5d0523e5c46214c4 to your computer and use it in GitHub Desktop.
png2mp4
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
function png2mp4() { | |
ffmpeg -framerate 12 -pattern_type glob -i '*.png' -c:v libx264 -pix_fmt yuv420p "out${1}.mp4"; | |
mkdir "stills${1}"; | |
find ./ -maxdepth 1 -name '*.png' -exec mv {} "./stills${1}" \; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment