Log in

View Full Version : Quick Audio Offset question.


Hacksaw
11th November 2004, 16:54
I have been using dgmpgdec (1012) for a couple of months now and seem to have developed an audio synch issue when making VCDs. Here is what I am doing:

1. myTheatre to capture mpeg2 transport stream.
2. DGIndex to create a .d2v, .avs, and audio (.mpa or .ac3).
3. Besweet to convert audio to wav.
3. VirtualDub to filter video and edit video/audio.
4. Frameserv into TMPGEnc Pro.

When DGIndex generates the audio file I get an audio offset listed in ms (for example, "audio MPA T01 DELAY 130ms.wav"). Does this mean that I need to add a 130 ms delay into the audio when encoding, or has DGIndex added a 130ms delay?

How accurate is this delay? I have found that if I run DGIndex on the transport stream file more than once (using different start and end points) I get a different offset values.

When I make divx encode and remux the .mp3 audio using NanDub I do not seem to have issues with audio sync (although I seem to have relatively small audio offsets on the files I have encoded).

Thank you for the help.

Hacksaw.

Cyberia
11th November 2004, 19:28
When DGIndex generates the audio file I get an audio offset listed in ms (for example, "audio MPA T01 DELAY 130ms.wav"). Does this mean that I need to add a 130 ms delay into the audio when encoding, or has DGIndex added a 130ms delay?
It means you need to add a 130ms offset to the audio when muxing. The delay is NOT added automatically.

How accurate is this delay? I have found that if I run DGIndex on the transport stream file more than once (using different start and end points) I get a different offset values.
Should be very accurate, unless you can disprove it :) The reason different start and end points change the delay is this... The Delay is literally the difference between the start of the video data and the start of the audio data. When you select different start frames, you change the relationship between when the audio and video begin.

When I make divx encode and remux the .mp3 audio using NanDub I do not seem to have issues with audio sync (although I seem to have relatively small audio offsets on the files I have encoded).
A small offset like about 130ms? (slightly over a eighth of a second)
The delay is just an offset. This sounds like an MPEG encoding issue somehow.

Hacksaw
11th November 2004, 20:03
Thanks Cyberia for all your help.