Created
June 21, 2010 17:13
-
-
Save hassy/447156 to your computer and use it in GitHub Desktop.
Create a time-lapse video / speed up a 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
#!/bin/bash | |
# Usage: speedup.sh <input> <output> <frames> | |
# frames is the number of frames per second (1 = fastest, 10 is slower etc) | |
mkdir speedup_tmp | |
ffmpeg -i $1 -r $3 -f image2 speedup_tmp/%05d.png | |
ffmpeg -i speedup_tmp/%05d.png -b 512000 $2 | |
rm -rf ./speedup_tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment