Skip to content

Instantly share code, notes, and snippets.

@CMCDragonkai
Created October 21, 2019 08:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CMCDragonkai/e00d114b43e38cb2c1b04594229e1df6 to your computer and use it in GitHub Desktop.
Save CMCDragonkai/e00d114b43e38cb2c1b04594229e1df6 to your computer and use it in GitHub Desktop.
Using ffmpeg for Timelapse with Crossfade #shell
#!/usr/bin/env sh
# change 0.1 to how long a frame should be shown
# change 0.05 to how long the crossfade should show
# change 2000x1500 to the width and height of the video
# change framerate to the output framerate (this doesn't change how fast the movie is)
# change -q:v 1 to quality (1 is the highest quality for mpeg4)
ffmpeg \
-pattern_type glob \
-i '*.JPG' \
-vf 'zoompan=d=(0.1+0.05)/0.05:s=2000x1500:fps=1/0.05,framerate=25:interp_start=0:interp_end=255:scene=100' \
-c:v mpeg4 \
-q:v 1 \
output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment