Log in

View Full Version : Weird sound offset problem


Vertigo1
12th November 2003, 21:56
Hi,

I have an xvid avi, which I'm trying to convert to mpeg2 to burn as a dvd. I've done this before without problems, but this time I found that the resultant video and audio files had slightly different durations (about 1.7seconds out).

When I mux them together and author a DVD, sure enough the audio is running ahead of the video, but this didn't happen on the original xvid.

On closer inspection of the xvid, I notice that the video actually starts without any sound at all, then the sound cuts in a second or two later, and both then run in sync.

Now when I extract the audio as a WAV using VirtualDub, there is no silence at the start of the file, it cuts straight in, so there must be something in the xvid file which tells it to start playing the video, then start the sound a bit later.

This is a new one on me! If I'm right and there is such a built-in delay/offset, can someone please tell me how I find out exactly what it is, so I can add that much silence to the beginning of the extracted WAV.

If I'm completely wrong about this, then can anyone please help me out here as I'm totally confused.

Many thanks.

Vertigo1
13th November 2003, 20:05
No-one got any ideas on this at all?

I've read that there is a utility for re-syncing audio in xvid files, and I suspect that this is what has been used here. Anyone have any clue what this program might be?

Assault
13th November 2003, 20:22
I think there is a simple solution for your problem. Add silence to your wave so that the length of it and the length of your video are exactly the same. If you have problems to find out the length of your video just use VDub for that.

Assault

Vertigo1
13th November 2003, 20:32
I did think about doing it that way, but there has to be some way of finding out exactly how long this delay is.

Interestingly, there is a section in VDub for delaying the audio, but it says there is no delay!

Assault
13th November 2003, 22:20
If it works that way and I think it will work then that's the exact delay. ;)

Assault

manono
14th November 2003, 11:00
Hi-

Open the .avi in VDubMod and hit Edit-End. Note the exact length of the movie. Open the audio in HeadAC3he and note the exact length of the audio. Subtract one from the other and there's your delay.

Assault
14th November 2003, 14:07
That's exactly the method I proposed. But perhaps the explanation (or my english) was bad. ;)

Assault

manono
14th November 2003, 14:20
OK, sorry Assault. I misunderstood your posts.

Assault
14th November 2003, 14:35
No problem. It wasn't your fault. My formulation wasn't very good. ;)

Assault