November 04, 2010

Maiden Rock sunrise timelapse



I've been taking a lot of sunrise and sunset pictures up here because we've usually got a great view of both. I finally got my Cannon 40d back from repairs, so I can once again use my cheesy Yongnuo interval timer to capture a stream of time-lapse images.

I used MEncoder to process the resulting folder of images after resizing them with an imagemagick convert shell script:

#!/bin/sh
for file; do
/opt/local/bin/convert -scale 1280 -shave 0x66 -scale 1280x720! "$file" "$file";
mv "$file" `echo "$file" | sed "s/\ /_/g" | tr [:upper:] [:lower:]` ;
done

And then:

mencoder "mf://*.jpg" -vf scale=1280:720 -o timelapse.avi -of lavf -ovc lavc
-lavcopts vcodec=mjpeg -lavfopts 
i_certify_that_my_video_stream_does_not_use_b_frames

This turned an 850 MB folder of images at 3:2 into a 12.6 MB avi at 4:3 and YouTube turned that into a 3 MB mp4. My attempts at just using mencoder to turn it into an mp4 didn't come out quite as well, but I really have little idea what I'm doing. As usual.

By the way, I'm finding it amusing that almost any reference to our little town of Maiden Rock and YouTube thinks you're talking about Iron Maiden.

Posted by Hal Eckhart at November 4, 2010 10:48 PM
Comments
Post a comment
spam and annoying comments will be deleted







Remember personal info?




enter this number security code in the box below (prevents comment spam)