View Full Version : DGIndex audio demux leads to an out of sync between video and audio
ChrisR34000
13th March 2008, 18:03
Hello!
I've decrypted a DVD with DVDDecrypter and then I've ran DGIndex to demux the audio to AC3. The video was then encoded with x264 and when I wanted to remux audio and video, I get an out of sync in the last third of the movie.
When DGIndex demuxed the audio, it gave me a
"field order transition" error and asked me to correct it. I pressed yes.
I've tried the remuxing also without correcting the error like the DGIndex manual says, but to no avail.
I've uploaded the timestamps here:
http://www.2shared.com/file/2981306/f891480e/VTS_01_1timestamps.html
and here
http://rapidshare.com/files/99262278/VTS_01_1.timestamps.rar.html
Choose the mirror which fits you best.
Couldn't attach them, because they are 10 MB in packed form.
I attached however the Fix file created by DGIndex.
I am very thankful for you help.
Best regards,
Chris
Guest
13th March 2008, 20:19
What is the title and region of the DVD?
Are you sure you didn't rip multiple angles at once?
If you do not repair the transitions, what happens? "To no avail" doesn't tell me anything.
Do not repair the transitions. Then, what is the video length reported for the script in VirtualDub? What is the audio length reported when you load the AC3 into Media Player Classic?
ChrisR34000
13th March 2008, 21:28
What is the title and region of the DVD?
Are you sure you didn't rip multiple angles at once?
If you do not repair the transitions, what happens? "To no avail" doesn't tell me anything.
Do not repair the transitions. Then, what is the video length reported for the script in VirtualDub? What is the audio length reported when you load the AC3 into Media Player Classic?
The title is "Battle Royal" and the region is R2.
Multiple Angles Processing is disabled in DVDDecrypter.
Repairing or not repairing the transitions yields the same result: out of sync.
The following results are for the unrepaired version:
VirtualDub says the video length is: 182669 frames (2:01:46.76)
The audio length reported by Media Player Classic is 2:01:33
Thanks for your answer neuron2.
What can I try to fix this?
Chris
Edit: Why is the audio 13 seconds shorter than the video file?
Guest
13th March 2008, 21:55
What field operation did you use in DGIndex?
Also, please post the script that you fed into MeGUI.
How did you mux the audio and video? What are their lengths before muxing?
ChrisR34000
13th March 2008, 22:30
What field operation did you use in DGIndex?
Also, please post the script that you fed into MeGUI.
How did you mux the audio and video? What are their lengths before muxing?
Hi!
Field operation: Honor Pulldown Flags
# Set DAR in encoder to 8711 : 5000. The following line is for automatic signalling
global MeGUI_darx = 8711
global MeGUI_dary = 5000
DGDecode_mpeg2source("C:\Documents and Settings\Chris\Desktop\New Folder\DVD2\2.d2v",info=3)
ColorMatrix(hints=true,interlaced=true)
Load_Stdcall_Plugin("C:\Program Files\megui\tools\yadif\yadif.dll")
Yadif(order=0)
crop( 20, 0, -12, 0)
#resize
Undot() # Minimal Noise
I mux them with the Mkv Muxer from MeGui
The lengths before muxing are:
Audio: 2:01:33
Video: 2:01:46.76
Chris
Guest
13th March 2008, 23:35
Please describe the nature of the AV sync loss. E.g., does it happen suddenly and then stay off by the same amount? How far off is it? The more details you give the better.
What happens if you do a simple encode into XVid with VirtualDub?
ChrisR34000
14th March 2008, 01:31
Please describe the nature of the AV sync loss. E.g., does it happen suddenly and then stay off by the same amount? How far off is it? The more details you give the better.
What happens if you do a simple encode into XVid with VirtualDub?
Hi!
For about one hour there is perfect sync. Then the audio is delayed for about 2-3 seconds. The delay remains until the end of the movie and is somewhat constant, as I can notice.
I will try to encode with Xvid and tell you the result.
Edit: I use DGIndex 1.5.0 beta 10
Should I switch to 1.5.0 RC3?
Guest
14th March 2008, 01:52
For about one hour there is perfect sync. Then the audio is delayed for about 2-3 seconds. The delay remains until the end of the movie and is somewhat constant, as I can notice. It's quite possible that there is a timestamp discontinuity involved. DGMPGDec determines the delay once at the very beginning of the stream. Discontinuities would have no effect for a player playing the MPEG2 stream because it presents audio and video using the timestamps. But when you demux to elementary streams, you lose the timestamps. You may have to just apply a manual correction at that point in the stream.
I will try to encode with Xvid and tell you the result. It probably won't make a difference.
Should I switch to 1.5.0 RC3? Yes, but it probably won't make a difference.
I need to add a parsing tool for my timestamps log to print discontinuities. It's not easy now to see them.
ChrisR34000
14th March 2008, 02:57
It's quite possible that there is a timestamp discontinuity involved. DGMPGDec determines the delay once at the very beginning of the stream. Discontinuities would have no effect for a player playing the MPEG2 stream because it presents audio and video using the timestamps. But when you demux to elementary streams, you lose the timestamps. You may have to just apply a manual correction at that point in the stream.
I see. Ahem, I don't know any tool which one can use to delay AC3. What should I get?
Guest
14th March 2008, 04:07
DelayCut
http://jsoto.posunplugged.com/audiotools.htm
But I would do it all in my script with Trim() and DelayAudio().
ChrisR34000
17th March 2008, 02:50
DelayCut
http://jsoto.posunplugged.com/audiotools.htm
But I would do it all in my script with Trim() and DelayAudio().
This is a very nice tool, thanks! Used it to fix the constant audio delay I get when encoding my Alien Quadrilogy boxset.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.