PDA

View Full Version : AutoGK audio sync problem


neo squidward
28th November 2005, 19:18
I've been using AutoGK for quite a while now, but recently I've been having various problems with audio being substantially out of sync. On the Madagascar Penguins Christmas Caper it was well over a second. The log file for this is below. I've checked the vobs and the sound plays in sync on these, so does anyone have any idea why this sync problem happens and how I can avoid it?

[28/11/2005 15:52:00] AutoGK 1.96
[28/11/2005 15:52:00] OS: WinXP (5.1.2600).2
[28/11/2005 15:52:00] Job started.
[28/11/2005 15:52:00] Input dir: 0af3a073a0e6244d370351f042fbb53decbe72c3\VIDEO_TS
[28/11/2005 15:52:00] Output file: 7ecc5c40b89f9c76583c223e1e58117c41e10622\VIDEO_TS.avi
[28/11/2005 15:52:00] Audio: English
[28/11/2005 15:52:00] Subtitles: none
[28/11/2005 15:52:00] Codec: XviD
[28/11/2005 15:52:00] Target quality: 75%
[28/11/2005 15:52:00] Custom audio settings: AC3
[28/11/2005 15:52:00] Started encoding.
[28/11/2005 15:52:00] Demuxing and indexing.
[28/11/2005 15:52:51] Processing file: 8915d8890e2f143c5eb63c1eeb7e938f03b6fa46\VTS_08_1.VOB
[28/11/2005 15:52:51] Source aspect ratio: 16:9
[28/11/2005 15:52:51] Source resolution: 720x576
[28/11/2005 15:52:51] Found PAL source.
[28/11/2005 15:52:51] Analyzing source.
[28/11/2005 15:58:57] Source has percentage of interlacing in motion areas: 100.00
[28/11/2005 15:58:57] Source is considered to be interlaced.
[28/11/2005 15:58:57] Output will contain 17601 frames
[28/11/2005 15:58:57] Running single pass encoding.
[28/11/2005 15:58:57] Writing the following script to d79b2239763c03772c0aa54ac976d572fef739f7\VIDEO_TS_movie.avs
===========================================================
LoadPlugin("148827b4456fef988c0fcad2cafd2b16f96ffa8e\DGDecode.dll")
LoadPlugin("707acb1e724a610ec2f8cb065a549ee1b5c334a9\autocrop.dll")
LoadPlugin("707acb1e724a610ec2f8cb065a549ee1b5c334a9\RemoveGrain.dll")
LoadPlugin("707acb1e724a610ec2f8cb065a549ee1b5c334a9\kerneldeint.dll")

movie = mpeg2source("d79b2239763c03772c0aa54ac976d572fef739f7\VIDEO_TS.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.42222222222222
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
out_width = 720
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
KernelDeInt(movie,order=0,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
===========================================================
[28/11/2005 16:17:08] Duration was: 18 minutes 11 seconds
[28/11/2005 16:17:08] Speed was: 16.13 fps.
[28/11/2005 16:17:08] Job finished. Total time: 25 minutes 8 seconds

CWR03
28th November 2005, 22:28
You can easily adjust the skew - open the video with NanDub, then click Audio > Interleaving... and enter a value in the Delay audio track by ____ ms. Use a - to advance, just a number to delay. Click Ok, then click Video > Direct Stream Copy, then save with a new filename. With the movie Magagascar I needed a value of 1850. If that doesn't work it'll be a matter of trial and error.

Backflip
30th November 2005, 02:17
Thanks for this tip. How did you find the delay, trial and error? Looks good to me, thanks CWR03 :)

edit - Interesting, getting interleaving errors in MPlayer (the very beginning of the video plays slowly), though it is in sync. Once I've split the files I have 1st CD - 64ms / preload=32ms, 2nd CD - 63 / preload=64ms (my settings were 64/64ms). This seems peculiar to me. I guess putting in a delay of 1850ms really affects things a lot.

File plays fine in FFDShow, but I'd prefer it play well in MPlayer too.

Any way to correct this?

edit - nevermind, there is something obviously wrong between MPUI and the MPlayer build I'm using. I just use keep on using MPUI because it's the best Windows GUI for MPlayer I've come across.

bananacreamandpeca
13th December 2005, 21:36
You can easily adjust the skew - open the video with NanDub, then click Audio > Interleaving... and enter a value in the Delay audio track by ____ ms. Use a - to advance, just a number to delay. Click Ok, then click Video > Direct Stream Copy, then save with a new filename. With the movie Magagascar I needed a value of 1850. If that doesn't work it'll be a matter of trial and error.

I have the same problem with agk as the TS.

How do you resync the audio to the video with virtualdubmod?

thanks

Nrmf
14th December 2005, 03:09
i had bad auto sync problems using the new beta divx player but when going back to version 6 all was fine.

bananacreamandpeca
15th December 2005, 19:38
How do you adjust the audio to the video
with virtualdubmod ?

CWR03
15th December 2005, 22:05
How do you adjust the audio to the video with virtualdubmod ?I don't think you can, which is why I said to do it with NanDub.

setarip_old
15th December 2005, 22:45
How do you adjust the audio to the video
with virtualdubmod ?
A) If the difference between audio and video is constant throughout the video:

Load the file into VirtualDub, VirtualDubMod, or NanDub.
Set BOTH "Video"(VirtualDub, VirtualDubMod and NanDub) and "Audio" (VirtualDub and NanDub - VirtualDubMOD>"Streams>"Stream list") to "Direct Stream Copy".
From the "Audio" dropdown menu, select "Interleaving" (For VirtualDubMOD, rightclick on the listed audiostream and then select "Interleaving")
Under "Audio skew correction", set an appropriate number of milliseconds (positive or negative) in the box labelled "Delay audio track by"
Save with a new filename

B) If the difference increases as the movie plays:

From under the "Video" dropdown menu, select "Framerate" - and select "Change so video and audio durations match"
Save with a new filename

Let us know of your success ;>}

CWR03
16th December 2005, 07:07
Ah, thanks setarip_old, I could never find Interleaving in VirtualDubMod.

setarip_old
16th December 2005, 07:32
@CWR03

There's always something new for each of us to learn ;>}
Now, if I could only figure out how to use the "Extract .AC3" function in MPEG Mediator Special Edition...

bananacreamandpeca
23rd December 2005, 23:14
I used virtualdubmod to try correct the out of sync-audio.
I did what you said and used an audio correction of 4125ms (it think),
and used direct stream copy
This is what vdm did next, i ran out of hd-space because of the saving!
It used 17GB space when saving! icanceled the saving and deleted the 17GB file

Why in the .. is this??

jggimi
24th December 2005, 00:11
you need to set Video....Direct Stream Copy, otherwise, you will create uncompressed video.

See Doom9 Vdub and Vdubmod procedures guides.

loyalty_anchored
20th June 2007, 01:53
does anyone have an explanation for this issue? and is there a specific ripping method that will avoid the user to have to play with interleaving in Vdub?

CWR03
20th June 2007, 10:17
does anyone have an explanation for this issue?
Yes, it's the advanced copy protection (such as ARccOS or RipGuard) everyone's been talking about.
and is there a specific ripping method that will avoid the user to have to play with interleaving in Vdub?
Lots of them - look under the Decrypting sub-forum.

loyalty_anchored
20th June 2007, 14:57
thank you for your reply CRW03! i do believe there are some cases that are not related to copy protection, for example, T2 extreem has two main titles, one is a little bit longer then the first.

when choosing the longer title, the encode is off synch for approximately the first half of the movie, then at one point it falls back into place, but if you encode the first title there are no such issues.

i believe this might be due to the way the DVD was authored to include the extra scenes when playing back the "includes deletes scenes version" ... i am not sure if my post was very clear, but i will definitely look under the forum you recommended and do some homework before i say anymore!

thank you.

CWR03
20th June 2007, 22:01
i do believe there are some cases that are not related to copy protection, for example, T2 extreem has two main titles, one is a little bit longer then the first.
In that instance, all that is needed is to pre-rip the movie with DVD Decrypter in IFO mode. I would never use AutoGK to rip directly from the disk.

loyalty_anchored
21st June 2007, 00:54
i must have not explained myself well, i would never do that either, i use DVDFab to rip usually in full disk mode to the HD before encoding with AutoGK. but no worries i need to do more research on the topic anyways.

thanks!