Thursday, November 1, 2007

Watching Bethel



This video is an hourly time lapse of the construction of the new University Commons at Bethel, updated this morning. I'll probably try to keep it updated on a regular basis, at least after obtaining permission from Bethel, the images are from their webcam.

This was made on my end using completely open source software (OSS) with the following steps:

1. I run a Linux based system

2. I use a program called "anachron" to schedule a program to run once an hour, every day

3. The program (wget) downloads the picture from Bethel's webcam and names it with the time stamp (YearMonthDayHourMinute) in such a way that it keeps the pictures in chronological order.

4. Next a program called ImageMagick processes each photo and spits out the number of unique colors in the photo. If the number of unique colors is less than 2,000 it means that the photo is black ( e.g., taken at night) and is discounted*

5. If the number of colors is greater than 2,000 it converts the photo from a GIF format to a JPEG format for the next step.

(5.b. A separate program renames the photos that are used sequentially so ffmpeg can process them)

6. A program called ffmpeg takes all the photos in JPEG format and converts them into a movie, in this case two movies.

7. I show people the movies I made and look cool :-)


1 comment:

Katie Addington said...

You mean, you don't always look cool? What?