Last active
January 4, 2016 00:09
-
-
Save amirnissim/8539532 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download imagesnap [http://iharder.sourceforge.net/current/macosx/imagesnap/] | |
# identify your video recording device | |
./imagesnap -l | |
# repeatedly take a snapshot | |
while :; do ./imagesnap -d "HD Pro Webcam C920" ~/Pictures/snapshots/`date +%H-%M-%S`.jpeg; sleep 58; done | |
# optional: resize | |
# WARNING - will overrite your files | |
sips -Z 640 ./snapshots/*.jpeg | |
# create an animated .gif with imagemagick | |
brew install imagemagick | |
convert -delay 4 *.jpeg output.gif | |
# or a .mov file with tlassemble [https://github.com/dbridges/cocoa-tlassemble] | |
brew install tlassemble | |
tlassemble ./snapshots time_lapse.mov -fps 30 -height 720 -codec h264 -quality high |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment