Skip to content

Instantly share code, notes, and snippets.

@StevenPatz
Forked from vjo/gopro-timelapse.sh
Created December 24, 2013 03:31
Show Gist options
  • Save StevenPatz/8108439 to your computer and use it in GitHub Desktop.
Save StevenPatz/8108439 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