Out my window (this is my second attempt at time lapse, I’m starting to get the hang of it)
I used Mencoder on linux to do the heavy lifting. The above video has 32K frames (one month). I’m working at how to figure out sunrise and sunset times and remove those pictures, but it’s kind of tough now. The biggest problem has been dealing with the vast number of files involved. It’s 32K per month, and I have 2 cameras, and they’ve been running for over 2 years constantly. With a friend’s help, I wrote a neat crontab to sort the pictures out of the directory into folders for each month:
The command I run once a month is:
/usr/bin/find ~/camera[1-4] -maxdepth 1 -name "pic_*" -exec /home/kabalnet/monthcamera {} ;Here’s the monthname script:
#! /bin/bash
myfile=`basename "$1"`
dirpath=`dirname "$1"`
adirname=$dirpath/`expr match "$myfile" 'pic_(200...)'`
if [ ! -e "$adirname" ]
then
echo Directory to be created is ${adirname}
mkdir $adirname
fi
mv $1 $adirname