Skip to content

Instantly share code, notes, and snippets.

@mcotton
Last active January 10, 2022 18:14
Show Gist options
  • Save mcotton/f78a7817f1d199f06bf8 to your computer and use it in GitHub Desktop.
Save mcotton/f78a7817f1d199f06bf8 to your computer and use it in GitHub Desktop.
ffmpeg video from pictures
# start with DSC00013.JPG and continue sequentially
# basic version: ffmpeg -r 1 -y -start_number 13 -i DSC000%02d.JPG -r 24 out.mp4
ffmpeg -r 2 -s 1920x1080 -y -start_number 325 -i DSC00%03d.JPG -s 1920x1080 -c:v libx264 -r 24 -pix_fmt yuv420p -f MP4 ~/Desktop/out.mp4
# same thing with ImageMagick
convert -delay 50 *.png -loop 0 animate.gif
@mcotton
Copy link
Author

mcotton commented Jan 10, 2022

convert -delay 75 *.jpeg -loop 0 -rotate 90 animate.gif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment