Skip to content

Instantly share code, notes, and snippets.

@ajthemacboy
Last active February 10, 2016 21:39
Show Gist options
  • Save ajthemacboy/5d1dcb1600482208f18e to your computer and use it in GitHub Desktop.
Save ajthemacboy/5d1dcb1600482208f18e to your computer and use it in GitHub Desktop.
mogrify -format jpg *.tga
x=1; for i in *.jpg; do counter=$(printf %03d $x); cp "$i" ./renamed/"$counter".jpg; x=$(($x+1)); done
(For 30 FPS (slower animation):) ffmpeg -framerate 30 -i %03d.jpg -c:v libx264 -profile:v high444 -crf 18 -framerate 60 output.mp4
(For 40 FPS (faster animation):) ffmpeg -framerate 40 -i %03d.jpg -c:v libx264 -profile:v high444 -crf 18 -framerate 30 output.mp4
(Recommended, Lossless): ffmpeg -framerate 30 -i %03d.jpg -c:v libx264 -preset veryslow -framerate 60 -qp 0 output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment