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++;
}
Share
Source: http://www.deography.com/record/
Categories
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...
Add a Comment
OK, so I've done the same thing, and hadn't thought of putting it together into a movie before. So, iMovie to the rescue, we get:
http://www.youtube.com/watch?v=mdu0yLAgVj0
which is a little less frenetic. :-)
Hmm.. I'm on 10.4.10 and my Sleepwatcher still works just fine. The only thing, that stopped working after I upgraded from .8 to .10, was DeepSleep widget.
Actually I did that take-a-picture-with-iSight-on-wake-up-and-upload-it-to-my-webserver about half a year ago by myself. For security reasons, of course. :) And because it was easy.
Hey, thanks for the seizure!
That got parsed out. It should say:
while ($fname = <*.jpg>)
Let's see if this works.
This guy doesn't seem to understand file globs in Perl. This is much easier:
#!/usr/bin/perl
while ($fname = )
{
rename ($fname, ++$i . ".jpg");
}
Dosent this guy know any girls :P
August 30 2007 at 9:39 AM Report abuse Permalink rate up rate down Replyoops! here's the link:
http://www.youtube.com/watch?v=j-W3hwfhwes
I've been playing around with something like this too. I've been snapping off a shot every morning with my iMac's built-in camera and uploading it to my flickr account using flickrbooth. I was waiting till I got to 365 days before I tried figuring out how to make a movie out of the sequence but thanks(!) TUAW for tipping me to the Quicktime trick. You can see my results here:
Unless I've misunderstood what you mean by the Sleepwatcher daemon, I'm on 10.4.10 and mine is working just fine.
August 29 2007 at 7:56 PM Report abuse Permalink rate up rate down ReplyDecent concept. Unfortunately, not entertaining. At the end he realizes he has a jumble of random images which play too fast and have no punchline, so he throws in some slower snapshots outside of the gimmick. And?
August 29 2007 at 7:21 PM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Verizon Leather Sleeve for Tablets for $4 + free shipping
- Wicked Jaw Breaker Noise-Isolating In-Ear Headphones for $6 + free shipping
- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



22 Comments