jimcofer.com
Site Version: 2.1 (build 2.1.278)

Home
My Writings!
History Blog
Critic's Corner
Geek Stuff
Downloads
Links
My Résumé
Feedback
About Me
About this Site

Photo Gallery

My Movie Reviews

My MySpace Profile

Dropbox

RSS Feed

Hit Counter
Vistors since
March 2002!
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

How to Convert AC3 Audio to MP3
 
The information in this article applies to:
 
  •  Windows 2000
  •  Windows XP
  •  Windows Vista
 

A large (and ever-increasing) percentage of the downloadable video on the Internet comes with AC3 (Dolby Digital) audio. This is great for people that have Media Center PCs or 6-speaker hookups on their computer. But it's an Olympic-sized pain for those of us that have portable players or set-top DVD players that will play back XviD or DivX video with MP3 audio only. My Archos player, for example, will play DivX and Xvid videos; with MP3 sound, the movie file plays correctly; with AC3 audio, the video portion plays, but the audio is completely silent (since the Archos player can't decode AC3).

If you're like me and are stuck in MP3land, there aren't a lot of "one-click" options to convert the audio from AC3 to MP3. Fortunately, by going through the back door of one of the most popular freeware conversion programs, this process can be done with just a few mouse clicks and a few minutes time.

To re-encode an AVI file from AC3 to MP3 you will need the following:

 
AutoGK
VLC, a freeware video player (optional, see below for more information)
The Radium MP3 Codec (optional, see below for more information)

Around 1GB of temporary free disk space (slightly smaller than the file you wish to convert)

 

 

Summary:

We will use the version of VirtualDub that comes with AutoGK to convert the audio portion of an AVI file from AC to MP3.

Why?

AVI files are somewhat unique in that there's no single AVI "format". Instead, AVI is a "container" format in that the files usually include a video portion and an audio portion. The video portion can be encoded in any number of formats, although XviD and DivX are the most popular. The audio portion is usually encoded in AC3 or MP3 format (although theoretically there's nothing to stop someone from encoding the audio in AAC, OGG, FLAC or WAV format). These audio and video portions can be matched in any number of ways: XviD video with AC3 audio, XviD video with MP3 audio, DivX with AC3 audio, DivX with MP3 audio, and so on. You can even have an AVI file with multiple audio tracks, such as a multiple language soundtracks, or a film with AC3 audio for the movie and MP3 audio for the "director's commentary"!

You could always re-encode the video using AutoGK or Super, but this is usually not a viable option. Re-encoding takes at least an hour (typically an hour and a half or two hours on my P4 system). It can also produce less than stellar results, especially with the options available in these "all-in-one" type programs. They're designed to be as user-friendly as possible, and trying to re-encode only the audio portion is not possible in the GUI. And even if these programs *did* work without fail, it'd still be silly: an AVI file is simply two long video and audio files in a single container. Why repaint the entire house when all you really want to do is repaint the shed out back?

Assumptions

This "how-to" article assumes that you are trying to convert to MP3 a video that has a single AC3 soundtrack. Converting movies with mutiple audio tracks is slightly more difficult and will not be covered in this article.

 
 

Step By Step:

 

1) If you don't have it on your system already, download and install AutoGK. Note the AutoGK isn't really a "program" per se, but is actually what's called a "front end", which in this context means "something that looks like a program, but is actually only storing a bunch of commands that it will issue to other programs". What this means is that the AutoGK setup will spawn three or four "setup routines" for things like VirtualDubMod, AVISynth and the XviD codec. This is completely normal. These programs are completely harmless, so just click "OK" and "Finish" when needed to complete the setup process.

2) Once AutoGK setup is complete, open My Computer or Windows Explorer and navigate to the folder you just installed AutoGK into (by default, this is in C:\Program Files\AutoGK, although you might have opted to install it in a different location). Once there, open the "VDubMod" folder and see if there's a file inside called "VirtualDubMod.exe". If so, skip to the next step. If not, keep looking for the file.

3) Double-click on VirtualDubMod.exe. You should see a window that looks like this:

 

 

4) Click on "File" > "Open Video File". Navigate to the file you want to convert and select it, then choose "Open".

5) Click on "Video" and make sure that "Direct Stream Copy" is checked in the second section.

6) Click on "Streams" > "Stream List". You should see a window that looks like this:

 

 

7) Right-click on the AVI file listed and choose "Full Processing Mode". Then right-click again and choose "Compression". A window should pop-up that looks something like this:

 

 

8) You might have multiple "MPEG Layer-3" options available (as I do in the screen cap above), or you may not have an MP3 option at all. If you DO NOT have an MP3 option, skip ahead to step 9. If you DO have an MP3 option, but there are no options to choose from, make sure the "Show all formats" box is checked, as in the screen cap above. If all of your MP3 choices are very low bitrates (like 56 and 48kbps), skip ahead to step 9. If you have options similar to the ones listed in the screen cap above, choose any of the 48000Hz options listed (you'd typically choose 128 or 192kbps), then click "OK" then "OK" again at the "Available streams" window and skip ahead to step 10.

9) Click "Cancel" then exit out of VirtualDub completely. Fire up your web browser and search for "Radium MP3 codec" (this site currently has it for download, but it might not be there when you read this, so search anyway). Install the codec (accepting all defaults) then repeat steps 2-8 (don't forget to check the "Show all formats" box!

10) In the main VirtualDub window, click File > Save As... You may choose any file name and\or location you'd like. DO NOT mess with any of the other options in the save dialog. Click "Save" when ready.

11) You will see a new window that looks like this:

 

 

Contrary to the progress indicator (above), conversion should take only around 10-15 minutes on a modern computer. Once the progress box disappears, the file is done!

 
Auuuugh! It's out of sync!

Relax, man... it happens. If you follow the steps above and get a video that looks and sounds pretty good but is out of sync, follow these steps to fix it:

1) Download and install VLC, a video player (and really, you should be using VLC anyway - it's easily the best video player for the Windows platform).

2) Open the out-of sync file using VLC and verify that it's still out of sync.

3) Press the STOP button in VLC and then click on Settings > Preferences.

4) You will see a screen that looks like this:

 

 
5) Click the "Advanced options" checkbox in the lower right corner and scroll down to the "Audio desynchronization compensation" option. If the audio portion is playing too early, enter a positive number in the box (try 200 to start). If the audio is playing too late (the most common problem), enter a negative number into the box (like -200):
 

 
6) Click "Save" and restart the video. If the audio is in sync, note the number you entered into the compensation box and skip ahead to step 7. If the audio is still out of sync, press STOP and repeat steps 4 and 5 using different numbers until the video is in sync. Note that you will have to stop and restart the video each time; although VLC will accept any changes you make to these numbers while the video is playing, it cannot display these changes until the video is restarted. Once you have a number that works for your video, make a note of it and skip ahead to step 7.

7) Open VirtualDub again and repeat steps 4-8 in the original instructions but DO NOT exit out of the "Available streams" screen yet.

8) Right-click on the AVI file and choose "Interleaving". In the "Audio skew correction" box, enter the number you entered in VLC into the box, then click OK:

 

 
9) Click on File > Save As... and give your file a name and location. Once VirtualDub is done, reopen the file in VLC (don't forget to reset the compensation box to zero!) and see if the file is now in sync.
 
 
Last Updated: Monday, 29 January 2007 23:22