Skip to content

Instantly share code, notes, and snippets.

@rantt
Created April 16, 2015 00:09
Show Gist options
  • Select an option

  • Save rantt/fa9c6784f1524f32bbbb to your computer and use it in GitHub Desktop.

Select an option

Save rantt/fa9c6784f1524f32bbbb to your computer and use it in GitHub Desktop.
Timelapse Script
#!/bin/bash
while [ 1 ];do vardate=$(date +%d\-%m\-%Y\_%H.%M.%S); screencapture -t jpg -x ~/gamedev/vidcaps/timelapse/$vardate.jpg; sleep 10; done
#Run ffmpeg after to turn jpg's into video
#ffmpeg -i '%*.jpg' -r 30 -q:v 2 timelapse.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment