Skip to content

Instantly share code, notes, and snippets.

@KonradIT
Forked from vjo/gopro-timelapse.sh
Created January 18, 2014 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KonradIT/8488624 to your computer and use it in GitHub Desktop.
Save KonradIT/8488624 to your computer and use it in GitHub Desktop.
# Sort pictures from GOPRO09* in img (symbolic links)
x=1;for i in GOPRO9*JPG; do counter=$(printf %04d $x); ln "$i" img_in_order/img"$counter".jpg; x=$(($x+1)); done
# Rotate pictures if needed
for file in *.jpg; do convert $file -rotate 180 rotated-$file; done
# Make a 24img/s movie
ffmpeg -i "img%04d.jpg" -r 24 -s hd720 -vcodec libx264 -b:v 4000k fflapse_hd720.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment