Skip to content

novaspirit/pi_timelapse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

pi_timelapse

using raspberry pi camera module and timelapse script

adding the software for encoding

sudo apt-get install debian-keyring

sudo sh -c 'echo deb http://vontaene.de/raspbian-updates/ . main >> /etc/apt/sources.list'

gpg --keyserver pgp.mit.edu --recv-keys 0C667A3E

gpg --armor --export 0C667A3E | apt-key add -

sudo apt-get update

apt-get software:

sudo apt-get install libgstreamer1.0-0 liborc-0.4-0 gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gstreamer1.0-alsa gstreamer1.0-omx gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-pulseaudio gstreamer1.0-tools gstreamer1.0-x libgstreamer-plugins-bad1.0-0 libgstreamer-plugins-base1.0-0

create folder to store images

mkdir /home/pi/timelapse

download script

sudo wget -O /usr/bin/timelapse.sh https://raw.githubusercontent.com/novaspirit/pi_timelapse/master/timelapse.sh

sudo chmod +x /usr/bin/timelapse.sh

edit crontab to execute raspistill every min

sudo crontab -e

          • sh /usr/bin/timelapse.sh 2>&1

command to sort photos to number query

ls -1v | awk 'BEGIN{ a=0 }{ printf "mv "%s" %04d.jpeg\n", $0, a++ }' | bash

command to convert photos to video

gst-launch-1.0 multifilesrc location=%04d.jpeg index=1 caps="image/jpeg,framerate=24/1" ! jpegdec ! omxh264enc ! avimux ! filesink location=timelapse.avi

About

using raspberry pi camera module and timelapse script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages