Audio for Video using Avidemux

Wednesday, June 10th, 2009

I have a lot of fun with Flip Mino HD camcorder. I’ve already done a few music videos with it and in my opinion the audio is far behind the quality of the video. Of course, even with expensive video equipment, having the mic on the camera keeps it some distance from the subject. Having a separate mic, much closer to the subject, gives a much better result.

A Free Video Editor – and a Good One

In the past I’ve used Windows Movie Maker to combine my audio and video streams, but WMM is not compatible with the MP4 720P file created by the Flip. I was happy to find Avidemux, a free video editor. The program comes with a wide range of codecs and works on the compressed files without decompressing for simple operations like trimming length and replacing audio. And since that’s almost all I do to my music videos, it’s perfect for the job.

Avidemux is simple both in concept and use. You can peruse and search the Wiki and ask questions in the forum but there’s no substitute for a little experimenting.

For a simple music video I replace the camera audio with my separate recording and trim the start and end points of the clip. Naturally, when I shoot the video I clap in front of the camera so I have an obvious point to synchronize the two streams. As funny as it seems, getting a good clap important because it makes synchronization so much easier. Try to face the camcorder directly so the instant of contact is easy to see.

Synch Video with External Audio

To sync the video first File : Open the video file and find the “clap” point. Note the time. Then load the external audio file by going to the Audio : Main Track menu selection, choosing the format for the external audio file, and open the file. Now when you play the video, the external audio will play instead of the audio recorded by the camcorder. Find the “clap” on the audio track and note the time.

Take the difference between the two “clap” points in milliseconds. Check the Shift option box, and enter the difference value in the milliseconds value field. If the clap happens first on the external audio file, enter the difference as a positive number. If the clap happens first on the video stream, enter the difference as a negative number, with a minus sign preceding.

Now play the video the audio and video “clap” should be synchronized.

Trim the Video

Next, trim the video to length. Avidemux provides two markers, the A and B marker, which can be placed at any frame in the video. After the markers are set, any save, delete, cut, or copy will affect the section between the markers. My technique for trimming a video is to set the “A” marker to the beginning of the good stuff, and the “B” marker to the end of the portion I want to keep. When I save the video only the portion between the markers is saved.

Before saving, confirm that the Format field is set to the proper container format. If you’re not converting to a new format, it should be the same as the input video. You may need to set a codec for the audio stream, depending on the container format and the format of the external audio file. Once again, the format used in the original video file is a good choice.

When saving files, Avidemux has a quirk – probably because it’s a port from a Linux implementation – it does not automatically insert the extension on the saved file. You need to specify an extension that matches the container format when you save the video, and you should choose the appropriate extension for audio files and frame exports as well. And one more tip, I always save the file to a new name, so I can re-use the original file if needed.

Here’s a video demonstrating all the steps I’ve described. A few moments watching the procedure should make things much more clear. Try the full screen option in the lower right hand corner of the video control bar.

I’ve had a lot of fun learning and using Avidemux. If you need a nifty video tool that works quickly with minimal resources and minimal damage to your video quality, you should give this program a try.



This entry was posted on Wednesday, June 10th, 2009 at 7:53 pm and is filed under Tutorials, Video. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


2 Responses to ' Audio for Video using Avidemux '

Subscribe to comments with RSS or TrackBack to ' Audio for Video using Avidemux '.

  1. on June 11th, 2009 at 1:41 pm

    […] my last blog entry I described the process for merging audio and video recorded on two different devices, for […]

  2. Carl said in post # 2,

    on July 15th, 2011 at 4:41 am

    Great tutorial, I will try this when I get home as Reaper seems to be damaging the quality of the video when I render. I briefly tried it last night but I think I got an error message opening an MP4.

    Thanks.

Leave a reply






About the Blog

    Howdy, my name is Fran Guidry and this is my Homebrewed Music blog.

    I play Hawaiian slack key guitar and recorded my solo acoustic CD at home. Most of the recording information I find on the internet seems focused on bands, drums, multitracking, and so on but my main focus is recording solo acoustic guitar. Lately I’ve been enjoying video recording along with audio, so that shows up in the blog as well.

    I’m also a guitar nut. I love big ones and little ones, handmades and factory guitars, cheap ones and expensive ones. So I’ll be sharing the fun of exploring guitars as well, along with the challenges of amplifying acoustic guitars for live performance.

    Welcome!

Philosophy

    My recording philosophy is pragmatic, skeptical, not super critical. After all, the performance is by far the most important component of a track, and every aspect of any recording is a matter of taste.

    But I do like to know “about stuff.” Back in hifi days I learned about double blind testing. I learned that we humans can easily hear differences that don’t really exist. The more I’ve learned about our human auditory system, the more I’m skeptical of what people say they hear, especially if they claim that a particular microphone or preamp or cable has some magical property.

    I’ve only been recording since 2001, and when I started I found the usual places on the internet. I sought advice and accepted it, thought I would improve my recordings by using more expensive equipment. It didn’t work.

    Two things that did seem to lead to better recordings were experience and room treatment. Getting an appealing sound is the combination of many small details, and learning those details only comes from experience. Amd the sound of the recording space is obviously a big factor.

    I’ve only recorded seriously using digital technology, but I remember trying to record rehearsals and gigs back in analog days. I don’t have any nostalgia for analog recording and playback systems at all. I think even low end digital systems can capture marvelous recordings. So when I look at gear, I look for good specs: low noise, broad flat frequency response, wide dynamic range, low distortion. I’m not interested in colorful components, mics and preamps with a sound, I want the sound to be the sound of my guitar.

    But the last word is that I’m just learning and I hope you find something useful in my posts.