View Full Version : AC3 + mp3 sound in Divx, but the mp3 plays too fast
theReal
12th July 2002, 12:40
I don't know if this belongs to the audio forum, but there's no muxing forum, so I post it here.
I'm trying to encode Con Air with two audio tracks, one 5.1 AC3 384k, the other 112k mp3. I'm using the AC3 audio filters and Morgan Stream Switcher in MediaPlayer for playback. Everything works ok, the Divx 5 file with AC3 sound (first audio track) is playing perfectly, no problems. The other audio is also available and plays perfectly, only the movie speeds up to 27.2 fps instead of 25fps.
Sounds like Con Air was taken over by a bunch of smurfs, if you know what I mean ;)
Any ideas why the movie plays at 27.2fps when I choose the second audio track?
theReal
12th July 2002, 14:03
OK, problem solved...
I'm using BSPlayer from now on. Not only that it plays back Con Air correctly with both language tracks, but it can also use the Intervideo AC3 decoder's 4 speaker and 5.1 options.
Much better - much much better!! I knew BSplayer from some much older releases and they never seemed to work right and were clumsy. Now the newest version is magic! It has all you need.
Wilbert
12th July 2002, 14:48
The other audio is also available and plays perfectly, only the movie speeds up to 27.2 fps instead of 25 fps.
[math magic] 48/44.1 * 25 = 27.21 [/math magic]
Don't ask me why but I have similar problems. I've a terratec DMX6 fire and in the control panel I can change the sampling rate. I forgot the name of the tab (internal device or something like that).
This has to be the same as the sampling rate of an internal device, for example dvd-player. For some reason this appear to have influence on the "play back rate of the video-part" of my videos I play on my harddrive. Do you have that problem also if you play a DivX file only with mp3?
Now I'm very curious, what soundcard do you have?
edit: corrected some typos
Wilbert
16th July 2002, 14:39
and (I'm still curious) ???
theReal
16th July 2002, 14:54
oops, sorry, I forgot to answer.
I never had that problem before, neither with AC3 and Divx, nor with mp3 and Divx. Only the two-track AC3 and mp3 Divx file shows this problem in Mediaplayer 6.4 (not in BSPlayer) and only with the mp3 track.
My soundcard is a Philips PSC706 Acoustic Edge and I'm using Win2K SP2.
I think the problem is somewhere software-related. Media Player can't make full use of the AC3 decoder options while BSPlayer lets me choose from all of the 4-channel, 5.1 channel and SPDIF out options.
So, probably WMP sets something else wrong as well (even it shows 48kHz for the audio track when it plays too fast)
theReal
17th July 2002, 03:03
oh dear, I just found out the file is still having a problem in BSPlayer. First, it seemed to play the mp3 track fine because the audio was in sync and the movie was playing at 25fps. Then, when I watched it for a while, the sound got horribly out of sync. If I fast forwarded to another scene, it was in sync but began slowly to run out of sync again. The problem in BSPlayer is, that it says the audio was 44.1kHz. So, something must have gone wrong in the interleaving process - WMP wants to play the audio at 48kHz, but then it is pitched and the video is running too fast. BSPlayer is running the video at 25fps, but the audio seems to be 44.1kHz at the same time and is running out of sync.
I don't really get it... Maybe it's just very problematic to make an avi file with two audio tracks of which one is AC3 and the other is VBR mp3 (which is a possible problem for avi files anyways).
So, I have given up the idea of having two audio tracks and I just add subtitles to the movie. Maybe I'll try again on another movie with CBR mp3 and AC3 :)
theReal
17th July 2002, 14:17
I just realized that BSPlayer seems to have a problem with VBR mp3 in general. The audio always starts to run out of sync, even with normal divx files with just one audio track.
Wilbert
17th July 2002, 14:22
Have you tried PowerDivX and Zoomplayer?
If I have some time tonight I will make a movie with AC3 and CBR MP3, and report back.
Wilbert
18th July 2002, 14:19
I made a DivX4 with AC3 and MP3 (CBR and 44.1kHz). Both PowerDivX and Zoomplayer (although I didn't try the newest version) crached when opening the file. WMP played the AC3 stream, but when I switched to the MP3 stream (with Morgan Stream switcher) I heard only noise.
Finally bsplayer did his job and stayed in sync. Sorry that I can't help you ...
theReal
18th July 2002, 14:30
PowerDivx "New Generation" doesn't seem to be new enough to like Divx5. It plays Divx 3.11 with CBR mp3, but it crashes on every other file I tried...
I'm just about to try BSplayer with AC3 and CBR mp3, only I still struggle with the conversion because dynamic compression with Besweet (even light DC) seems to result in distorted sound with the German Con Air soundtrack. Well, I guess it wouldn't be fun if it was easy to do ;)
theReal
18th July 2002, 21:51
OK, I finally managed to make a Divx5 file with AC3 and MP3 (CBR, 48kHz) and experienced exactly the same as you did:
"WMP played the AC3 stream, but when I switched to the MP3 stream (with Morgan Stream switcher) I heard only noise.
Finally bsplayer did his job and stayed in sync."
So, now we know that BSplayer only has a little sync problem with ABR and VBR mp3, but manages to play everything else. WMP plays ABR and VBR soundtracks right, but has a problem with two audio streams (at least in different formats, I guess 2xAC3 would be ok?).
And finally, Powerdivx seems to have a big problem in general ;)
Wilbert
19th July 2002, 09:27
Have you tried the following (from Dooms guides):
Step 3: Playback
(...)
If you use Windows Media Player you might like Morgan Stream Switcher. In fact you've already installed it if you have installed the audiofilter pack. If you don't like it you have to open the .bat/.cmd file for your operating system, edit the line that contains mmswitch.ax in it and replace "/s" by "/u", then copy it and paste it in Start - Run, then press OK. Here's a sample line for W2K: regsvr32 /u mmswitch.ax.
But now let's get in with the program. Open Notepad and create file that looks like this:
[MSS]
Audio_1=English (VO)
Audio_2=Français
It must start with the [MSS] line and then Audio_X= . Enter the name of the primary and secondary language in the file. WMP will show you these selections during playback if you right click in the video area and click on languages. But first you will have to save this file under the same name as your AVI. So let's assume that your movie is called matrix.avi, then this file must be called matrix.mss. Don't forget that Windows by default has the known extensions turned off so when you save make sure you select *.* in the filetype field so that you won't get a hidden .txt extension. Now all you have to do is double click on the AVI and when you want to switch the language during the movie right click, go to the language menu and select the track you want.
(...)
Haven't time to try it yet, but what does (VO) mean in "Audio_1=English (VO)"?
theReal
19th July 2002, 15:15
I tried it, but this file doesn't tell WMP to switch the audio codec, it only shows "English (VO)" and "Francais" instead of "Audio 1" and "Audio 2" on the selection menu.
Then, I tried other codecs (maybe they wouldn't try to decode the 2nd audio stream and leave this to an mp3 codec - because that's why there is only noise, WMP assumes the 2nd stream is AC3 as well).
Doesn't work with Ravisent or Cyberlink as well. The Odio Dekoda then only decodes the second audio, the first audio track is vanished from the menu. When the Odio Dekoda is also uninstalled, then the same happens with the default Fraunhofer mp3 codec - the first Audio (AC3) can't be decoded, but the second is running fine.
So, the only solution for WMP to play this file seems to be: install AC3 codec for playback of the first track, uninstall all AC3 codecs for playback of the second track.
I rather use BSPlayer, it's easier than this method :)
P.S.: There's still one thing I don't get - why the hell was WMP able to switch the Audio codec to mp3 when I was trying this with a second audio track in ABR-mp3? I mean it was playing at a false framerate due to problems with ABR/VBR in a dual-audio avi, but at least it got the codec right.
The only difference about the two mp3 is that this one now is CBR, it was also made using Besweet and Lame 3.92.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.