Processing Digital Camera videos for Flickr with Ubuntu Linux

Here's how I processed some digital camera videos for uploading to Flickr. The things I wanted to adjust were:

  • Shortening the length
  • Removing the original Audio track
  • Adding new music, using a sound loop

Nothing particularly that seems like it should be hard. (Details after the break)

First, I found a sound loop from SoundSnap.com.

By installing Audacity and using "Effect: Repeat", I was easily able to make the sound loop repeat enough times to cover the video.

Next, I stripped out the original audio using ffmpeg, while converting the file to the the MPEG format, and preserving the quality:


ffmpeg -i MVI_3876.AVI -an -sameq out.mpg

Finally, I added in my new music, while also truncating the video to be 16 seconds:


ffmpeg -i out.mpg -i my.mp3 -sameq -t 16 final.mpg

While I would happy to know about graphical ways to accomplish what ffmpeg was doing, it wasn't particularly hard to read the documentation for ffmpeg and come up with these commands.

Leave a comment

Recent Entries

  • generating HTTP headers: sorted or unsorted?

    Recently I've been reviewing how various Perl frameworks and modules generate HTTP headers. After reviewing several approaches, it's clear that there are two major...

  • The cost of saving sent e-mail

    I don't tap my own phone. I don't xerox postcards before I mail them back from vacation. I don't take a voice recorder when...

  • Modifying PDFs so they open full screen

    The [PDF spec](http://www.adobe.com/devnet/pdf/pdf_reference_archive.html) includes an option to cause PDFs to open full screen when users open them. I'm a fan of the feature because...

  • Stewardship and Sustainability of our online lives

    A few weeks ago I had my laptop stolen. Earlier that morning I had been reflecting and writing on the laptop about the intersection...

  • A vision for CGI.pm and CGI::Simple

    I've spent a lot time recently [triaging bugs for CGI.pm](http://mark.stosberg.com/blog/2009/08/almost-100-cgipm-bugs-closed-help-with-the-50-still-open.html). I've enjoyed the process, and respect CGI.pm as a widely used Perl module. I'm...

Close