Advertisement

Timelapse of iSight wakeup captures


A few months back, we wrote about reader Dylan's iSight autocapture project-- he rigged up the code to have his iSight on his MacBook Pro snap a photo every time the lid was opened (and even released all of his work as open source). At the time, he mentioned eventually combining all of the photos together into a timelapse video, and seven months later, here it is.

Unfortunately, he says the Sleepwatcher daemon he was using doesn't work as of 10.4.10, so the project is over until it gets updated, if ever. But he did share with us how he compiled the images together into a timelapse-- he punched out a Perl script (which is reprinted after the jump) to rename all of the pictures into sequenced filenames, and then squished them together with Quicktime's "image sequence" feature. Very nice.



#!/usr/bin/perl

$iteration=1;

foreach my $file (`ls *.jpg`) {
chop($file);
system("cp $file sequence/$iteration.jpg;");
$iteration++;
}