Skip to main content

Time-lapse video of clouds over Boulder

We tend to get a lot of sunny days here along Colorado's Front Range, but right now we're enjoying some much-needed rain. After a couple rainy days earlier this week, the clouds broke Friday morning and we got one clear day before the clouds and rain returned today. Anticipating a nice scene when the clouds broke, I set my Kodak Zi8 on a tripod in my window and let it run. I cut out a 15-minute piece of video using Avidemux and then used modified code found here and here to prepare the video. First, I extracted two frames from each second of video:

ffmpeg -i 2011-05-13-original.mkv -r 2 -f image2 png/%05d.png

I then made a text file with the names of all the images and used mencoder to make a 30fps video:

ls -1tr > files.txt

mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=5000 -mf w=1280:h=720:fps=24:type=png mf://@files.txt -o time.avi

I then went to Jamendo to get some Creative Commons-licensed music to use the in the background. I chose "Shooting Star" by David Palmero, one of the first albums I found, and used Audacity to cut out a selection to match the length of the video. Lastly, I used PiTiVi to merge the video and audio together, with fade-in and fade-out transitions, and then rendered the video in a format YouTube would accept. The result:

Comments

  1. Very cool. I didn't know about PiTiVi, which will be useful for some random video projects that I end up doing.

    I also made a time-lapse recently of me working, but I used mplayer to take a shot every 15 seconds to get the pngs. I had to make the resultant video quite low-res to make it fit within some size limits though. It would have been nice to use PiTiVi to cut / speed up the night sections.
    http://www.youtube.com/watch?v=P1RLajGyEt0

    ReplyDelete
  2. PiTiVi is very basic and has no control for speed, but I do like it as a simple video editor. The only linux GUI I tried for speeding up the video was Kino, and it has the disadvantage of having to deal with everything as DV, which meant some ugly importing and some changing of aspect ratios and video quality that I could never quite control.

    ReplyDelete

Post a Comment

Popular posts from this blog

Hibernation

It's the last half-hour of 2017 and I'm pushing out a post to keep my blogging streak alive. I can't imagine this is interesting to anyone else, but that's never really been what this blog is for. I could write more, and maybe I should write more, but the only goal I've had for this blog for a while is to write at least once a year.

The last week of the year has become what I call my period of "hibernation." Between Christmas and the New Year, I stay home, do whatever I want on whatever schedule I want. This year, that meant a lot of nights staying up until 4 am and sleeping until 10 or 11. Other than trips to get food, I pretty much had no social interaction for the week. I don't know that I purposely take this time as a mental vacation, but that's sort of what it is.
I had several goals for this year's hibernation, but the one I've done best to stick to is physical: pedaling my stationary bike 40 miles each day. There is a Strava challe…

Last.fm and Ten Years of Web 2.0

Ten years ago yesterday I scrobbled my first tracks to last.fm. What's scrobbling? On last.fm, scrobbling refers to automatic music track logging to the internet. For me, uploading a record of my music listening habits was my first real experience with "Web 2.0." Remember Web 2.0? It referred to websites of user-generated content that enabled virtual communities and interoperability. Now such sites are too ubiquitous on the web to warrant a special designation — they're just the web. But that wasn't true in 2006, and even though I'd been putting content on the internet since 1996, at the time it was enough to make me a little nervous. What did these strangers want with my data, and what was in it for me?

Ten years and 24,941 scrobbles later, I have my answer: I have a really cool record of all the music I've listened to the past 10 years! Well, not "all," technically: I've certainly listened to music in places and on devices that didn't …

The 15-Year Blogoversary

15 years and 1,213 posts! My first experience with the World Wide Web came in 1995, and by 1997 I had my own web page. The first web authoring tool I remember using was Composer, an HTML editor built into the Netscape Communicator suite. That helped me learn some HTML, and later I used Microsoft Word 97 and then FrontPage 98 and later Macromedia Dreamweaver to design more elaborate pages. Some of my FrontPage-built sites are still on the web. As I learned more about HTML standards and validation I wrote more HTML by hand, but I still wanted a way to make publishing to the web easier.

By 2001 I understood that (a) sites should be updated regularly and (b) FTP'ing sites and pages from my desktop to a server was a bit of a pain. I had heard about some early blogging platforms and chose one, Blogger, to try out. As you can see, I'm still here.
My first post using Blogger came on December 8, 2001. A few months later I paid for Blogger Pro, which offered additional authoring tools, l…