Tuesday, July 27, 2010

Time Lapse Experiments

I took these using my old iPhone.

I made these by:
1. running GorillaCam on my iPhone taking one pic every 10 seconds for a few hours
2. download to iPhoto and export using "Sequence" option. This saves photos as cloud-1.jpg, cloud-2.jpg, ... .
3. running ffmpeg to stitch all the images into a video feed. The command is:

nice ffmpeg -r 10 -b 4000000 -i cloud-pics/cloud-%d.jpg sunset.mp4

-r 10 is frame rate of 10 frames a second
-v 4000000 is a bitrate of 4Mb
-i cloud-pics/cloud-%d.jpg just says this is the input %d gets replaced by a counter that starts at 1.

I installed ffmpeg using Mac Ports but its possible to get the source and build. There are lots of examples on Google.