Making Time-Lapse Video With Raspberry Pi

Introduction: Making Time-Lapse Video With Raspberry Pi

About: Avid Thinker, Computer Programmer, Web evangelist, Hacking / Breaking expert, Problem Solver, Technology Obsessed, Gamer, 3D printing, Coffee lover!

Making time-lapse video with raspberry pi and using on-board graphic card to encode the videos!

using raspberry pi camera module and timelapse script

adding the software for encoding

sudo apt-get install debian-keyring

sudo sh -c "echo 'deb . main' >> /etc/apt/sources.list"

gpg --keyserver --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 the time-lapse script from github repo

sudo wget -O /usr/bin/

sudo chmod +x /usr/bin/

edit crontab to execute raspistill every min

sudo crontab -e

* * * * * sh /usr/bin/ 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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Be the First to Share


    • Backyard Contest

      Backyard Contest
    • Silly Hats Speed Challenge

      Silly Hats Speed Challenge
    • Arduino Contest 2020

      Arduino Contest 2020