Skip to content

Instantly share code, notes, and snippets.

@OrderAndCh4oS
Created February 23, 2020 10:47
Show Gist options
  • Save OrderAndCh4oS/27d712927914c52a5d0523e5c46214c4 to your computer and use it in GitHub Desktop.
Save OrderAndCh4oS/27d712927914c52a5d0523e5c46214c4 to your computer and use it in GitHub Desktop.
png2mp4
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