View Full Version : Second audio track plays too fast
InfoCynic
25th November 2002, 16:40
Never had this problem before...
Trying to create an AVI with 2 audio tracks, one normal english @ abr 128 mp3 and one commentary @ mono 80 mp3. Mux using Nandub. Playback using ZoomPlayer 2.9 or WMP 6.4. The first audio track plays normally, the second plays at double speed. Both MP3s play normally in Winamp. Updated Morgan's Stream Switcher to .97 but that didn't help. Filter graph is File Source -> AVI Splitter -> { MPEG Layer 3 Decoder -> MSS, MPEG Layer 3 Decoder 0003 -> MSS, FFDShow -> Video Renderer}, MSS -> Default DirectSound Device.
Using on-board audio on Soyo K7V Dragon+ (C-Media).
I've done this with AC3 and Mp3 and it's been fine. Any ideas?
DJ Bobo
25th November 2002, 18:29
Use BSPlayer.
Download it here: http://www.bsplayer.org/
InfoCynic
25th November 2002, 20:31
I prefer ZP, thanks. Better for TV-Out applications. ZP has worked fine before. I could try a 2.8 version or the 3.0 beta, but I'm almost sure that's not the problem. I mean, the media player has little to do with the actual playback, that's all controlled by the filter graph...
Alestrix
25th November 2002, 22:57
Originally posted by InfoCynic
I prefer ZP, thanks. Better for TV-Out applications. ZP has worked fine before. I could try a 2.8 version or the 3.0 beta, but I'm almost sure that's not the problem. I mean, the media player has little to do with the actual playback, that's all controlled by the filter graph...
I had similar problems w/ NanDub, in my case 't was about 22k05Hz stereo mp3 streams.
If the mono mp3 is CBR, you can add a WAV header to it (I use a tool called wavemp3.exe, but don't remember where I got it from) and then NanDub should recognise (sp?) the correct channel configuration.
If this doesn't work, use tha wav-header-added mp3 and mux it in the video with VirtualDub first, then add the abr stream as second audio with NanDub.
I did it this way with a few movies (before using vorbis and ogm) and since I also added .bsi-files (BSPlayer-configs) it automatically started with the second stream on those movies.
Hope it helps
Alex
DJ Bobo
25th November 2002, 23:07
Well, if you don't want to use BSPlayer, then one solution remains:
Uninstall the Morgan Stream Switcher. This one doesn't like mono mp3s on the second track.
If you don't know how to, this is how you do it:
search for "mmswitch.ax"
go to the directory where you found it, make a new text file there, type "c:\windows\system\regsvr32 /u mmswitch.ax" in it, save it as a *.bat file, double click on that bat file
You're done!
AFAIK, ZP has a multi-audio engine incorporated, so it won't be a big deal.
InfoCynic
25th November 2002, 23:16
Well, I did try BSPlayer for kicks, and it did work right, to my surprise. I'm not willing to switch tho.
I uninstall MMSwitch, and now I can't play the second track at all in ZP - when I switch to it, I get silence. I posted on the inmatrix forums too, maybe somebody there knows.
Both mp3s are abr and 48000Hz, forced that high during encoding to avoid possible problems with downsampling. I could try redoing the mono mp3 as stereo... although I'd want to go up to at least 96 then and lose more space for the video...
Any other ideas?
Alestrix
25th November 2002, 23:27
Originally posted by DJ Bobo
search for "mmswitch.ax"
go to the directory where you found it, make a new text file there, type "c:\windows\system\regsvr32 /u mmswitch.ax" in it, save it as a *.bat file, double click on that bat file
You're done!
AFAIK, ZP has a multi-audio engine incorporated, so it won't be a big deal.
Why the hassle of a batchfile?
Just search as DJBobo wrote, then do a Start->Run and type
regsvr32 /u
then just drag the found mmswitch.ax behind the 'regsvr /u' and hit OK.
'bout multiple streams in ZoomPlayer: I don't use it, but I'm sure ZP is capable of handling multiple audiostreams even without the Morgan Streamswitcher. Maybe a "set to defaults" (if ZP has something like that) might help.
- Alex
InfoCynic
25th November 2002, 23:37
I'm already familiar with using regsrv32 for filter registration and unregistration, and ZP actually makes it even easier, with a dialog to take care of the most common filters. Maybe you're cross-posting here, lag on the forums is a little high, but I did say I uninstalled MSS already. ZP *can* handle multiple audio streams natively, they show up as "DirectSound Device" and "DirectSound Device 0003," but like I said, when I actually switch to the second track, I get silence.
Alestrix
26th November 2002, 00:00
In that case I can only think of NanDub having the same problems with mono files as with lower-samplingrate files (actually I have to correct myself: I didn't use 22k05Hz but 24kHz). Try the method of 24kHz or 32kHz samplingrate (especially with 32kHz the sound is still VERY good if you set the bandpass around 15kHz in lame) and encode it at 80kbps CBR. I know reading this must feel horrible, but I tried it and it sounded very good (and with the reduced data due to mono I'm sure it will be an almost "HiFi mono stream":)). Then add a wave header, mux it into AVI with VDub or AviMux and add the ABR-mp3 with NanDub.
BTW: I don't think reducing the video bitrate by 16kbps will have that much of an impact on picture quality, but my 32kHz stereo 96kbps-CBR-mp3s sounded very good and in any case more than good enough for it beeing only the secondary (in may case dubbed) audio stream.
But if you want to use as many bits as possible, why not give OGM and XCD a shot? A very good sounding 100kbps primary and 60kbps secondary audio stream in a 795MB OggMedia file leave plenty of room for video bitrate...
Just my thoughts before going to bed now ;)
g'd night
- Alex
Edit: just grammar and typos
InfoCynic
26th November 2002, 03:19
OGM and XCD are cool but I usually prefer time-proven methods. OGM certainly offers advantages for mutliple audio tracks, but that's not the point here.
I tried yet again, with a stereo abr 80 @ 48, stereo abr 80 @ 32, and stereo cbr 80 @ 32. They all still display the same behavior - no sound at all when I switch tracks in ZP. Switching back to the first track works fine.
damjang
26th November 2002, 17:07
I have the same problem (audio too fast) with two vbr mp3 muxed with nandub. If the two file are the same frequency (eg. 44.1kHz) all work ok, but if one is in 44.1k an the other in 32k the second is not good. My workaround is to have all audio in the same frequencies.
damjang
Alestrix
26th November 2002, 19:03
InfoCynic,
What if you reinstall Morgan? Or is there a set-defaults option in ZP? I can't think of anything that causes this strange behaviour. Maybe some other (audio)DSF you have installed?
- Alex
InfoCynic
26th November 2002, 23:01
Turns out to be an audio driver problem. Spent a long time trying to fix those and finally got them working right. Once those had been fixed, ZP works fine without MSS installed.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.