Created
October 21, 2019 08:47
-
-
Save CMCDragonkai/e00d114b43e38cb2c1b04594229e1df6 to your computer and use it in GitHub Desktop.
Using ffmpeg for Timelapse with Crossfade #shell
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
#!/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