PDA

View Full Version : Demux VBR MP3 from AVI


InfoCynic
23rd February 2002, 05:57
I have a dual-language AVI made before I knew of the wonder that is MicroDVD, so the file contains two audio streams and was intended for use with Graphs or Morgan Stream Switcher. At least MSS still works, but I'd like to setup a MicroDVD INI file to use a external file for the audio, so I need to get the secondary stream out of the AVI.

So far I tried using Graphedit

File Source (Async) -> AVI Splitter -> Dump to MP3

and the output file is horribly desynced from the movie,

and Nandub:

Audio -> No Audio, Secondary Audio -> AVI Audio, Direct Stream Copy, Save WAV

which gives an error "No audio source." If both audio streams are enabled, it crashes when you start the save operation.

and also using Nandub to create a new AVI using Direct Stream copy on the Video and 2nd audio with primary audio set to None results in a mute AVI (it seems that Nandub completely ignores your setting for secondary audio if primary is on none).

My only last idea is to use a big ugly-looking Graph to remove the undesired MP3 stream and then try the Nandub method, but I'm afraid that any use of Graphedit will corrupt the VBR MP3 to the point where it will no longer sync with the movie, and I'm not sure I know how to make such a Graph anyway.

Doom9
23rd February 2002, 12:37
I was under the impression mdvdp could handle 2 audio streams in one avi if you create the necessary graphs (I believe they are the same as in my dual audio guide) to play the respective track.

InfoCynic
23rd February 2002, 17:41
You're right, it can, but there's some sort of odd bug with GraphEdit and DirectX 8.1 that causes it to look for for files in C:\ if your remove the paths from the graph. This came up a couple times in the subtitle forum. http://forum.doom9.org/showthread.php?s=&threadid=14977

I tried making a graph to simply remove one stream from the AVI, but I cannot connect the Stream 2 output pin from AVI Splitter into any input Stream pin on AVI Mux. The video went across just fine. I suspect this is because AVI and MP3 never really got along that well, it's just that tools like Vdub/Nandub use a workaround to make them cooperate.

So is there a way to demux VBR MP3?