Created
January 31, 2021 20:00
-
-
Save DarkionAvey/33e892ea7cffc2bdf2c67be7172a4a81 to your computer and use it in GitHub Desktop.
A script for creating a timelapse video
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
//Unpack video to frames (r 1 is one frame per second) | |
ffmpeg -i input1.avi -r 1 frames/image-%6d.jpeg | |
//repack at 25fps | |
ffmpeg -i image-%6d.jpeg -r 25 -q:v 2 output1.mp4 | |
//Speed up video by 2x "0.5" | |
ffmpeg -i output1.mp4 -filter:v "setpts=0.5*PTS" output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment