Skip to content

alanzchen/rpi-timelapse

 
 

Repository files navigation

rpi-timelapse

A timelapse camera controller for Raspberry Pi and Canon EOS 760D (should work with any camera supported by gphoto2 with minor tweaks). Now working headlessly, i.e. without a display.

Installation

rpi-timelapse uses gphoto2 and imagemagick. To install these dependencies on your pi:

$ sudo apt-get install gphoto2
$ sudo apt-get install imagemagick

Note that if your camera requires a newer gphoto2 version to work with, you may find gphoto2-updater.sh very handful. You can find credits of gphoto2-updater.sh inside that file.

Run

python tl.py

Post-Processing

Here's how to post process the image frames (on Linux, can be run on the Pi itself, but faster on desktop).

Remove flicker if timelapse used many shutter values

for a in *; do echo $a;/opt/ImageMagick/bin/mogrify -auto-gamma $a;done

Be careful with auto-gamma - it works extremely well for sunset / sunrise but can make very dark areas of the scene very noisy.

Convert the resulting JPEGs to a timelapse movie

ffmpeg -r 18 -q:v 2 -start_number XXXX -i /tmp/timelapse/IMG_%d.JPG output.mp4

Demo Video on YouTube (view in HD)

About

Timelapse Camera Controller for Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 85.9%
  • Shell 14.1%