Shell scripts for capturing and compiling timelapse photography
Switch branches/tags
Nothing to show
Clone or download
Latest commit cfc6479 Dec 28, 2017
Permalink
Failed to load latest commit information.
.gitignore Working w/ two separate scripts Apr 13, 2017
capture.sh Make shell scripts executable Dec 28, 2017
compile.sh Compress with gifsicle, if available Dec 28, 2017
readme.md Add readme Dec 29, 2017

readme.md

Shell scripts for capturing and compiling timelapse photography, like this:

Example timelapse output

Requirements

Software

Hardware

  • An iPhone or webcam with a live JPG photo URL

Because my phone is the best camera I own, I use it plus the ipCamera app; its undocumented photo URL path is /photo. To get it in the right physical position, I have a cheap gooseneck phone holder. Scrappy!

Installation

For Mac with Homebrew:

brew install ffmpeg
brew install gifsicle

Usage

First run capture.sh by passing it the URL:

./capture.sh -u http://127.0.0.1:8080/capture

This script will run forever, so press ctrl+c when want to quit.

Next, run compile.sh:

./compile.sh

That will put an MP4 video and myriad smaller GIFs in the output folder.

When it's done, it will ask if you want to delete the captured photos. Maybe verify the output is acceptable before letting it do that!

Options and help

For a full list of the optional arguments, pass -h to either script:

./capture.sh -h
./compile.sh -h

License

MIT license or as components allow