This is some code I wrote to make timelapse video on my netbook.
Start shooting timelapse video with start-timelapse.py
. It will start taking images to configured directory in configured intervals.
It will write a .pidfile to same directory with pid of the process. stop-timelapse.sh
will use .pidfile
to kill imaging process and
then processes images into a mpg video.
Configuration is done in config.py
Python file.
"How many seconds to wait before taking next picture"
"Directory where images taken are stored."
"How many seconds timelapse shooting should last"
"Wait for user to press enter before taking picture. Usefull for animation."
"Play sound after image is taken. For animation made by moving between frames."
"Run process through
imagefilter.py
script that sorts pixels in images according to brightness."