PDA

View Full Version : Help with OggMachine and audio delays


Nupraptor
12th February 2004, 07:56
I'm sure this has come up before, but I tried searching and couldn't find anything useful.

I'm trying to create and .ogm file from an ogg and avi file. I eliminated the delay in the audio when I created the Ogg file with OggMachine (delay checked, set to -66ms). When I mux the Ogg file and the encoded avi with OggMux, I set the delay as 0ms, since I corrected it with OggMachine. Yet when I watch the resulting .ogm file, the audio is playing ahead of the video. It appears that the delay setting in OggMachine didn't work.

I've experimented with different delays in OggMux just to see if I can correct this, including 0ms, 66ms and -66ms. None of them seem to sync up properly. I also tried re-encoding the Ogg file without a delay setting and using OggMux to correct it, to no avail.

I'm pretty baffled. Could someone please tell me what I'm doing wrong, or suggest another way to eliminate the delay?

jggimi
12th February 2004, 14:50
Hello, Nupraptor, and welcome to Doom9's forum.

I've not used OggMachine, but I have used VirtualDubMod (http://prdownloads.sourceforge.net/virtualdubmod/VirtualDubMod_1_5_10_1_All_inclusive.zip?download) to create .ogm files from .avi video and .ogg audio.

It's actually pretty easy, even if you're not familiar with VdubMod: Open the .avi file (File...Open)
Set the video to "Direct Stream Copy" (Video...Direct Stream Copy)
Add the Ogg audio stream (Streams...Streams list...Add)
To adjust delay if needed, right click on the audio stream and click on Interleaving... in the popup menu
Close the streams window
File...Save As, and choose Ogg Media File.

Hiro2k
12th February 2004, 15:03
Originally posted by Nupraptor
Yet when I watch the resulting .ogm file, the audio is playing ahead of the video.

Is your delay the same throughout the movie or does it get further apart as the movie continues? Also is it out of sync from the begining or does it gradually go out of sync? If it's the same delay throughout the whole movie, then there is some value that you can use to correct it. It can easily be done in VdubMod, just change the delay and play back a small clip to see if it works. Try to use a scene where something breaks, like a glass shattering, someone making a splash. It's easier to sync those up than with words and someones mouth.