Skip to content

Instantly share code, notes, and snippets.

@hassy
Created June 21, 2010 17:13
Show Gist options
  • Save hassy/447156 to your computer and use it in GitHub Desktop.
Save hassy/447156 to your computer and use it in GitHub Desktop.
Create a time-lapse video / speed up a video
#!/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