Log in

View Full Version : Audio synch issue in AutoGKnot 2.20?


deathadder
11th January 2006, 04:07
I was using AutoGKnot quite successfully for a while but this last week three different encoding done shows Audio Synch issue. I was wondering if anyone can point me to how I can fix this.

Here is an example log file out of AutoGknot as a reference.

Thanks in advance.


[1/7/2006 11:37:03 PM] AutoGK 2.20
[1/7/2006 11:37:03 PM] OS: WinXP (5.1.2600).2
[1/7/2006 11:37:03 PM] Job started.
[1/7/2006 11:37:03 PM] Input file: d:\film_s2d2\VTS_01_0.IFO
[1/7/2006 11:37:03 PM] Output file: d:\film_s2d2\film_s2d2.avi
[1/7/2006 11:37:03 PM] Output codec: XviD
[1/7/2006 11:37:03 PM] Audio 1: English AC3 2ch
[1/7/2006 11:37:03 PM] Subtitles: none
[1/7/2006 11:37:03 PM] Format: .AVI
[1/7/2006 11:37:03 PM] Target size: 4300Mb
[1/7/2006 11:37:03 PM] Custom resolution settings: fixed width of 720 pixels
[1/7/2006 11:37:03 PM] Custom audio settings: VBR MP3 with average bitrate: 128Kbps
[1/7/2006 11:37:03 PM] Started encoding.
[1/7/2006 11:37:03 PM] Demuxing and indexing.
[1/7/2006 11:39:35 PM] Processing file: d:\film_s2d2\VTS_01_1.VOB
[1/7/2006 11:39:35 PM] Processing file: d:\film_s2d2\VTS_01_2.VOB
[1/7/2006 11:39:35 PM] Processing file: d:\film_s2d2\VTS_01_3.VOB
[1/7/2006 11:39:35 PM] Processing file: d:\film_s2d2\VTS_01_4.VOB
[1/7/2006 11:39:35 PM] Processing file: d:\film_s2d2\VTS_01_5.VOB
[1/7/2006 11:39:35 PM] Processing file: d:\film_s2d2\VTS_01_6.VOB
[1/7/2006 11:39:35 PM] Processing file: d:\film_s2d2\VTS_01_7.VOB
[1/7/2006 11:39:35 PM] Source resolution: 720x480
[1/7/2006 11:39:35 PM] Found NTSC source.
[1/7/2006 11:39:35 PM] Source aspect ratio: 16:9
[1/7/2006 11:39:35 PM] Color correction enabled.
[1/7/2006 11:39:35 PM] Analyzing source.
[1/7/2006 11:46:50 PM] Source has percentage of interlacing in motion areas: 37.15
[1/7/2006 11:46:50 PM] Source has percentage of telecined patterns: 98.68
[1/7/2006 11:46:50 PM] Source has percentage of progressive patterns: 1.05
[1/7/2006 11:46:50 PM] Source has percentage of interlaced patterns: 0.27
[1/7/2006 11:46:50 PM] Source is considered to be FILM.
[1/7/2006 11:46:50 PM] Output will contain 244776 frames
[1/7/2006 11:46:50 PM] Decoding audio.
[1/7/2006 11:49:16 PM] Normalizing audio.
[1/7/2006 11:51:26 PM] Encoding audio.
[1/8/2006 12:03:06 AM] Audio1 size: 156,881,256 bytes (149.61 Mb)
[1/8/2006 12:03:06 AM] Overhead: 9,790,976 bytes (9.34 Mb)
[1/8/2006 12:03:06 AM] Video size: 4,342,204,568 bytes (4141.05 Mb)
[1/8/2006 12:03:06 AM] Running compressibility test.
[1/8/2006 12:03:07 AM] Writing the following script to d:\film_s2d2\agk_tmp\film_s2d2_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")

movie = mpeg2source("d:\film_s2d2\agk_tmp\smallville_s2d2.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.18518518518519
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 < 1.25) ? 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
Telecide(movie,order=1,guide=1,post=2).Decimate(mode=0)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,top

add=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
ColorMatrix("Rec.709->Rec.601",mmx=true,hints=false)
SelectRangeEvery(300,15)
===========================================================
[1/8/2006 12:16:23 AM] Duration was: 13 minutes 16 seconds
[1/8/2006 12:16:23 AM] Speed was: 15.37 fps.
[1/8/2006 12:16:23 AM] Compressibility percentage is: 151.08
[1/8/2006 12:16:23 AM] Switching b-frames off
[1/8/2006 12:16:23 AM] Chosen resolution is: 720x416 ( AR: 1.73 )
[1/8/2006 12:16:23 AM] Predicted comptest value is: 113.01
[1/8/2006 12:16:23 AM] Running first pass.
[1/8/2006 12:16:23 AM] Writing the following script to d:\film_s2d2\agk_tmp\smallville_s2d2_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")

movie = mpeg2source("d:\film_s2d2\agk_tmp\film_s2d2.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.18518518518519
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 < 1.25) ? 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
Telecide(movie,order=1,guide=1,post=2).Decimate(mode=0)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,top

add=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
ColorMatrix("Rec.709->Rec.601",mmx=true,hints=false)
===========================================================
[1/8/2006 2:43:23 AM] Duration was: 2 hours 26 minutes 59 seconds
[1/8/2006 2:43:23 AM] Speed was: 27.75 fps.
[1/8/2006 2:43:24 AM] Expected quality of first pass size: 104.93
[1/8/2006 2:43:24 AM] Trying to adjust settings.
[1/8/2006 2:43:24 AM] No adjustment is possible
[1/8/2006 2:43:24 AM] Warning: final AVI will likely be undersized.
[1/8/2006 2:43:24 AM] Running second pass.
[1/8/2006 6:15:34 AM] Duration was: 3 hours 32 minutes 9 seconds
[1/8/2006 6:15:34 AM] Speed was: 19.23 fps.
[1/8/2006 6:15:34 AM] Job finished. Total time: 6 hours 38 minutes 30 seconds

laserfan
11th January 2006, 17:46
Hmmm, wondering why your Target Size is set so high?

Anyway, wondering what playback method you are using; maybe you should try CBR MP3 as some players have trouble w/VBR.

niann
11th January 2006, 21:55
[1/7/2006 11:46:50 PM] Source has percentage of interlacing in motion areas: 37.15
[1/7/2006 11:46:50 PM] Source has percentage of telecined patterns: 98.68
[1/7/2006 11:46:50 PM] Source has percentage of progressive patterns: 1.05
[1/7/2006 11:46:50 PM] Source has percentage of interlaced patterns: 0.27
[1/7/2006 11:46:50 PM] Source is considered to be FILM.

It looks like this is not FILM footage, but NTSC Footage that needs to be IVTC'd. Did you try the Force IVTC option in the hidden options of AutoGK?

Cheers!
-Niann

deathadder
12th January 2006, 05:07
Hmmm, wondering why your Target Size is set so high?

Anyway, wondering what playback method you are using; maybe you should try CBR MP3 as some players have trouble w/VBR.

I am using ffdshow and MS media player. ..

Thx,

Deathadder

deathadder
12th January 2006, 05:08
It looks like this is not FILM footage, but NTSC Footage that needs to be IVTC'd. Did you try the Force IVTC option in the hidden options of AutoGK?

Cheers!
-Niann


No I did not. I will try it (using CTRL F9).

:thanks:

Deathadder

deathadder
13th January 2006, 04:33
No I did not. I will try it (using CTRL F9).

:thanks:

Deathadder

I tried using force ivtc and there was no change.

Thx

Random007
13th January 2006, 09:00
The dreaded sync problem is a common theme with quite a few threads and posts.

Older versions of DVDfabDecryptor had some problems with some disks re audio sync. The latest version (check the DVD news home page) should have fixed this but I haven't had the chance to test it. :(

Further rumours suggest the updated version of LAME is to blame (seems unlikely). Lastly you could try running FixVTS (in DVD mode) and maybe VOBblanker over your ripped files prior to encoding to ensure the DVD structure is correct.

Cheers

niann
13th January 2006, 21:20
What movie are you trying to backup?

Cheers!

deathadder
14th January 2006, 21:20
I do not think anything is wrong with the source. I tried nero digital and it worked fine. Though I do not like nero digital..

Stan78
20th January 2006, 17:26
I was having the same problem with 2.20. Like, every other avi I made had the audio out of synch on it. Try getting the latest AutoGK. I'm using 2.26 now and so far no problems. I think there is some issue with 2.20. I tried everything else. It wasn't the source files that were bad. They'd work with everything else otherwise.

It's easy to fix your audio on the ones you already have, if you still have them. You can do it in Virtualdub. That's what I did. Open the avi in Vdub and click on the Audio button at the top. Select Interleaving and where it says "Delay audio track", put in positive or negative values, depending on if the audio is early or late. 1000 is equal to + 1 second, and -1000 is equal to - 1 second. Try some value, select OK. Then again under the audio tab make sure "direct stream copy" is selected. Do the same for the Video with making sure "direct steam copy" is selected. Then under File tab, select "save as avi"

It's really easy and quick and then you don't have to re-encode. You should probably make sure you don't overwrite the original avi when you do this, because you'll likely not get it perfect the first time. You can fix your bad ones this way, but I'd uninstall 2.20 and try the latest version.
G-luck

kristijan08
21st January 2006, 05:43
see my post for a solution!

http://forum.doom9.org/showthread.php?t=106091

this is a technique i just worked out and so far have had 100% success

deathadder
21st January 2006, 20:53
Thanks Stan78 and Kristijan08. I will try both solutions.

Deathadder,

deathadder
26th January 2006, 03:34
Thanks Stan78 and Kristijan08. I will try both solutions.

Deathadder,


I tried the new version of AutoGK (v2.26) after uninstalling v2.20. This did not solve the problem.

I also tried fixing the sync issue in Vdub. I could not fix this because the audio offset did not seem to be linear. That is if one synched the audio and video close to the begining of the clip it was still off towards the end.

Anyhow I am going to try the dvdshrink solution next.

Just giving you feedback.

Thanks,

R

kie
29th January 2006, 16:32
I have the exact same problem.

The most confusing thing is that the delay is not linear throughout the avi file.
The source is fine.

I've had this on about 10 out of the last 15 encodes I've done.
The source is usually a avi file (e.g. TV-rip) that I'm reencoding to a smaller size for viewing on my portable viewer.

CWR03
29th January 2006, 19:44
Audio synch is a common problem when encoding from TV captures because many cards rely on the CPU clock for timing, which isn't accurate enough. It's not a problem with AutoGK at all. The only way you're likely to get a good encode is to use another capture software other than the one supplied by the device manufacturer - capturing directly with VirtualDubMod should work.

kie
29th January 2006, 22:57
But the TV encode are synced fine until I try to convert them with autogk...

CWR03
30th January 2006, 09:00
So do mine - whatever keeps them synched in their original format is lost in the conversion.