https://github.com/dps/rpi-timelapse
Timelapse Camera Controller for Raspberry Pi
https://github.com/dps/rpi-timelapse
Last synced: 11 months ago
JSON representation
Timelapse Camera Controller for Raspberry Pi
- Host: GitHub
- URL: https://github.com/dps/rpi-timelapse
- Owner: dps
- Created: 2013-01-09T05:56:20.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-01-14T04:05:43.000Z (over 13 years ago)
- Last Synced: 2024-04-16T18:33:17.584Z (about 2 years ago)
- Language: Python
- Size: 142 KB
- Stars: 104
- Watchers: 23
- Forks: 43
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
rpi-timelapse
=============
A timelapse camera controller for Raspberry Pi and Canon EOS 350d (should work with any camera supported by `gphoto2` with minor tweaks), with an optional UI and controls on the Adafruit LCD Pi plate.
Installation
------------
rpi-timelapse uses `gphoto2` and `imagemagick`. To install these dependencies on your pi:
```
$ sudo apt-get install gphoto2
$ sudo apt-get install imagemagick
```
Run
---
python tl.py
Run on boot
-----------
Follow the instructions at using `timelapse` file from this repo instead of `lcd`.
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)](http://www.youtube.com/watch?v=AZbK4acS5Mc)