Skip to content

Instantly share code, notes, and snippets.

@quinnjn
Last active October 3, 2016 01:20
Show Gist options
  • Save quinnjn/c03ce45e730994a11933b56decb8af7a to your computer and use it in GitHub Desktop.
Save quinnjn/c03ce45e730994a11933b56decb8af7a to your computer and use it in GitHub Desktop.
Raspberry Pi timelapse
TIMELAPSE=86400000 # 24 hours
TIMEOUT=48000 # 48 seconds
raspistill --output timelapse-%04d.jpg --timeout $TIMEOUT --timelapse $TIMELAPSE
ls *.jpg > stills.txt
mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:aspect=16/9:vbitrate=8000000 -vf scale=1920:1080 -o timelapse.avi -mf type=jpeg:fps=24 mf://@stills.txt
rm stills.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment