PDA

View Full Version : How to make a Dual or Multiple Audio AVI or MPEG4 file



laodai
09-02-2008, 02:07 AM
http://forum.videohelp.com/topic266194.html

How to make a Dual or Multiple Audio AVI or MPEG4 file (XviD, DivX, other) and/or How to add Multiple SUBTITLES [/b]
v.1.2


A simple guide how to add, remove, or swap any single, dual or multiple audio tracks with or without subtitles in AVI files.


Once upon a time I have noticed big surprise in my friends eyes when they suddenly discovered that some of my backup dvdrips in MPEG-4 format have dual and triple audio tracks within, and so I decided to write this short and simple guide, because almost every standalone divx/dvd player on the market supports multiaudio anyway.




TOOLS NEEDED:

AVI-Mux GUI
http://www.alexander-noe.com/video/amg/AVI-Mux_GUI-1.17.7.zip
or:
DL: http://www.megaupload.com/?d=8YYBJMSTl

Morgan Stream Switcher (not neccessary, for playback issues - see below)
http://www.morgan-multimedia.com/download/mmswitch.exe


Level of knowledge required: n00b, brainless, etc ;)

want to test i have video and audio for your guy :

tập 01 biệt luyến bội bạc no việt audio (chinese )

http://www.megaupload.com/?d=DIX7F20J

việt audio :

DL: http://www.megaupload.com/?d=DQ2F4IBR



1.
Download http://www.alexander-noe.com/video/amg/AVI-Mux_GUI-1.17.7.zip if you dont have it yet, and run it (it doesnt require any installation).
Load your avi file (with or without any audio) in AVI-Mux GUI (http://www.videohelp.com/tools?tool=AVIMux_GUI) by simply drag'n'drop it there (#1)
In my example file I loaded has only English original audio, and Im going to add English Commentary audio as a secondary audio. Someone else may want to use i.e. dubbed audio track in his localized language... or add both. Its your choice ;)

2.
Once youve loaded the file, highlight it by clicking on it, then click on "generate data source from files". It will show you what video and audio streams your file has, see #2

http://www.videohelp.com/forum/images/guides/266194/screen02.png


3.
Load the external audio track (and/or subtitles) what you wish to add to your movie (in my example it is MP3 rip of Commentary Track) see #3.
Addendum:
If youre adding multiple audio tracks with multiple subtitles - see picture #3B (in addendum, at the end of this guide - below). Picture #3c shows all the multiplexed subtitle options within finalized AVI file (on a computer, using plain Windows Media Player (http://www.videohelp.com/tools?tool=Windows_Media_Player) 6.4 and ffdshow (http://www.videohelp.com/tools?tool=ffdshow) filter). Please note that not all dvd/divx standalone players are able to select and/or display subtitles that are multiplexed 'inside' the AVI file.

For adding only subtitles, or multiple audio and multiple subtitles, follow next steps the same way as I explained when adding just second audio track.

http://www.videohelp.com/forum/images/guides/266194/screen03.png


Make sure your original movie audio track is set as Default audio (#4), unless you want to change it. 'Default' audio track It means this audio track will play on every software or hardware divx/dvd-player that is *not* capable of playing other audio tracks, and there are plenty of them out there. So if I would have set as a 'default' the commentary track that Im adding in my example, then it wouldnt be right on such players, right? ;)
You can also set Language properties/names for each of the audio tracks (#5) for all those players that are able to distinguish and select more than one audio track.

Finally hit 'start' (#6) and select where to save your newly created dual audio file and under what name.

to check
your guy can play file on VLC
Thats all.


http://www.videohelp.com/forum/images/guides/266194/screen04.png


If you load your newly created multi-audio AVI file in a GSpot (http://www.videohelp.com/tools?tool=GSpot), it will show properties for all of your audio tracks selectable there:

http://www.videohelp.com/forum/images/guides/266194/screen07.png.

laodai
09-02-2008, 02:11 AM
PLAYBACK ISSUES

Standalone divx/dvd player should have no problem with such files, and you would select audio tracks the same way as you do with standard DVD-Video discs on your player (usually hit the button "Audio" on your remote ;) ).

But there is one tricky part of playing such files on a PC with software players.
I do know many of them have problem with secondary audio tracks within AVI container (yet all of them will have no problem playing such AVI files at all, they will just play them with the 'default' audio track only).
Since it is not the scope of this guide how to make secondary audio playable on your PC and every software player out there (I dont watch movies on any computers, so please forgive me) I will just write how to make them playable with most popular player on PC - Windows Media Player (http://www.videohelp.com/tools?tool=Windows_Media_Player) which is built-in into every Windows since Windows 95:

Simply install Morgan Media Switcher - available for free (link above).

It works on every WMP (http://www.videohelp.com/tools?tool=Windows_Media_Player) from version 6.4 and up, and I just have tested version 0.99 with WMP6.4 on my Windows 2000 machine.

http://www.videohelp.com/forum/images/guides/266194/screen09.jpg

In a red frame you can see the way names of your Audio Tracks normally will appear.
However if you want their names to be more specific (like it is in my example - "Audio Track 1" appear as "English", and "Audio Track 2" appear as "Commentary Track") you need to open your Notepad, and create new text file (usually it is autonamed as "New Text Document").
Open it and type:

[MSS]
Audio_1=English
Audio_2=Commentary Track

(as in my example, you may need to type i.e. Francaise and Whatever instead of English and Commentary Track).
Save the file, then rename it to exact same name as your movie file is, and change the file's extension from .txt to .mss (so Morgan Stream Switcher could see it).
As in my example, since previously I saved my dual audio movie as:

Repulsion.Dual.Audio.DVDrip.DivX5.avi

therefore I renamed this New Text Document.txt file to:

Repulsion.Dual.Audio.DVDrip.DivX5.mss


If you can't see the .txt extension of your file it means your Windows hide extensions by default, you need to enable it first, otherwise the .txt extension will still be there and you will be creating something like "Repulsion.Dual.Audio.DVDrip.DivX5.mss.txt" without seeing the ending .txt part of filename (as it would have been in my example).

Enjoy =)





__________________________________________________

EDIT:

Friend of mine sent me angry email:

...your guide is fine, except the major flaw - it doesnt work. I did everything exactly ... (according to my guide) ... and the added audio track is not in synch with the video

After very short investigation I found out that the second audio track came from PAL version (25fps) of the movie, and it was muxed (added) to NTSC version (23.976fps) of the same movie...
I thought it is obvious that both audio tracks *must* come from same version of the video (be it PAL or NTSC). Because of the different frame rate playback between PAL and NTSC very same movie - assuming both PAL and NTSC were made from identical reel copies - they will have slightly different duration. And very often movies released on DVD in America and rest of the world come from entirely different versions, differently edited and cut...
We can adjust 'skew' of the audio and 'expand' it, or 'shrink' it, in order to adjust it to different video framerate. There are few tools available for this task, but such subject is beyond the purpose of this simple guide.

So - please make sure all of your audio tracks are from the same video format source before you send me some angry email or post ;)






Addendum

Adding multiple subtitles
Screen #3b:
http://www.videohelp.com/forum/images/guides/266194/screen03b.jpg

Multiple subtitle options as seen on a computer (using WMP (http://www.videohelp.com/tools?tool=Windows_Media_Player))
Screen #3c:
http://www.videohelp.com/forum/images/guides/266194/screen03c.jpg

mitomcua
09-02-2008, 10:17 PM
This is very helpful.
Thanks LD

godblessyou
09-02-2008, 10:56 PM
thank you very much LD