Log in

View Full Version : Help, AVI audio stream out of sync!


fellaw
7th January 2003, 02:49
I didn't know where to put that in this forum, though it's audio related. I thought it would make sense here.

I've got an AVI, the sound is far to quiet(68 dB, according to MP3Gain). The normal way would be:

1. save the audio stream as WAV, Direct stream copy in VDub
2. use CDex or similar to strip the WAV to MP3
3. amplify it with MP3Gain, as it's lossless
4. us CDex again to add the WAV header
5. Mux the avi with that new wav(in VDub or AVImux)

But there's one problem:
As soon as I got the stripped MP3, there are 12 seconds missing! Anyway, I continued. The result was an AVI file which stayed in sync for lets say 10 minutes. But then the difference between the audio and video stream increased steadly. It was about 10 seconds at the end!!

First I thought, it might be a corrupt MP3 stream. So I used BeSplit instead of CDex. Didn't help either. There's still this async.

Is there a DirectShow filter which could increase the volume like MP3Gain does? I know, there's this TFM filter. But it does peak amplify, that isn't as good as the MP3Gain method.

The AVI is DivX ;-) 3.11 VBR 133min, the MP3 stream is 96Kbps 44 KHz CBR.

I can't encode neither the audio nor the whole AVI again, the source is gone ;)
And I don't want to decode and recompress the audio. I'm not even sure if that would save the sync, too.

Any suggestions?

P.S.:
Is there a way to fix this increasing async generally? I've got some MPG(1&2)s which also have this problem. And I don't have the source of them anymore, too.

alexnoe
7th January 2003, 12:20
Use AVI-Mux GUI to increase the framerate very slightly (i.e. to make the video be played a bit faster, so that it is as long as the audio stream). You don't need to remux the file, you can to this in the information-dialog of AVI-Mux GUI.

fellaw
7th January 2003, 13:09
I'm not sure if this would help. As I wrote, the difference between audio and video isn't the same over the whole avi. It increases steadily. Changing the framerate is a constant change, nevertheless it would differ sometime.
But I'll give that a try.

seewen
7th January 2003, 16:43
Changing framerate is not constant change.. It's a "progrssive" chang.

A constant change would be : Changing the Audio Delay in Vdub(mod), for example.

But if the de-synch increase during the movie, you have to change the framerate ( AND MAYBE change the Delay too. If their's already a de-synch at the beginning of the movie).

fellaw
8th January 2003, 10:38
I've tested it, the fps change worked.

It's not perfect, especially when I might want to convert that avi to vcd someday. But there are enough tuts out how to fix that in Tmpgenc. Is there any fps changer for wavs which works flawlessly? I know besweet can do that. But it re-encodes the wav/mp3, that's not good.