Log in

View Full Version : Ac3 sync problem


Taleg
5th September 2006, 10:47
Ill post this here as well :)

For some strange reason I get a sync issue of about 500 ms when I encode ac3 sound and none when using mp3.

I have tried several different films with the same result.. the Ac3 sound is about 500 ms ahead of the action.

What causes this and how do I fix it ?

CWR03
5th September 2006, 11:01
Ill post this here as well
You might start by re-reading the forum rules (http://forum.doom9.org/forum-rules.htm), particularly 1, 1a and 8. It's also helpful when you supply as much information as you can, such as the titles of problematic films, the software with which you converted the video, and if possible the log file.

You can quite easily correct the audio synch with VirtualDubMod.

Taleg
5th September 2006, 12:26
Ops sorry about that.. did'nt read the rules as good as I should..

I'm creating backups of my film collection..;-)

I know how to correct the error in nandub and VirtualDubMod and since all titles (The Libertine, Inside Man and Manderlay) all have a ca 500 ms error it is easy enough, but I hope to be able to avoid the error.. It is so much easier when it is correct the first time..

I'm using Dvd decrypter to rip the film and Auto gordianKnot 2.27 to encode the films. The error only occurs when I do films with Ac3 sound

I used to do this on my old Pc without any kind of errors, but that hardware died a few weeks ago so now I use my primary PC (the fastest of the lot) (AMD X2 3800+@2250 Mhz, 2 Gb of ram)

I'm going to add a log file as soon as the current batch of films is finnished (only 14 more to go)

Taleg
6th September 2006, 00:47
Here is the log of one of the other films where the sync problem occured.. Rent

I can't find a refferance in the log to the ac3 stream.. is that info in another log ?


[05.09.2006 12:39:53] AutoGK 2.27
[05.09.2006 12:39:53] OS: WinXP (5.1.2600).2
[05.09.2006 12:39:53] Job started.
[05.09.2006 12:39:53] Input file: R:\DVDRip\Rent\VTS_01_0.IFO
[05.09.2006 12:39:53] Output file: R:\DVDRip\Rent.avi
[05.09.2006 12:39:53] Output codec: XviD
[05.09.2006 12:39:53] Audio 1: English AC3 6ch
[05.09.2006 12:39:53] Subtitles: none
[05.09.2006 12:39:53] Format: .AVI
[05.09.2006 12:39:53] Target size: 1399Mb
[05.09.2006 12:39:53] Custom audio settings: Original
[05.09.2006 12:39:53] Started encoding.
[05.09.2006 12:39:53] Demuxing and indexing.
[05.09.2006 12:44:44] Processing file: R:\DVDRip\Rent\VTS_01_1.VOB
[05.09.2006 12:44:44] Processing file: R:\DVDRip\Rent\VTS_01_2.VOB
[05.09.2006 12:44:44] Processing file: R:\DVDRip\Rent\VTS_01_3.VOB
[05.09.2006 12:44:44] Processing file: R:\DVDRip\Rent\VTS_01_4.VOB
[05.09.2006 12:44:44] Processing file: R:\DVDRip\Rent\VTS_01_5.VOB
[05.09.2006 12:44:44] Processing file: R:\DVDRip\Rent\VTS_01_6.VOB
[05.09.2006 12:44:44] Processing file: R:\DVDRip\Rent\VTS_01_7.VOB
[05.09.2006 12:44:44] Source resolution: 720x576
[05.09.2006 12:44:44] Found PAL source.
[05.09.2006 12:44:44] Source aspect ratio: 16:9
[05.09.2006 12:44:44] Color correction enabled.
[05.09.2006 12:44:44] Analyzing source.
[05.09.2006 12:50:01] Source has percentage of interlacing in motion areas: 91,49
[05.09.2006 12:50:01] Source is considered to be interlaced.
[05.09.2006 12:50:01] Output will contain 194214 frames
[05.09.2006 12:50:01] Audio1 size: 372,852,384 bytes (355.58 Mb)
[05.09.2006 12:50:01] Overhead: 1,294,720 bytes (1.23 Mb)
[05.09.2006 12:50:01] Video size: 1,092,810,720 bytes (1042.19 Mb)
[05.09.2006 12:50:01] Running compressibility test.
[05.09.2006 12:50:01] Writing the following script to R:\DVDRip\agk_tmp\Rent_comptest.avs
===========================================================
LoadPlugin("E:\MULTIM~1\Movie\Encoding\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("E:\MULTIM~1\Movie\Encoding\AutoGK\filters\autocrop.dll")
LoadPlugin("E:\MULTIM~1\Movie\Encoding\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("E:\MULTIM~1\Movie\Encoding\AutoGK\filters\RemoveGrainSSE3.dll")
LoadPlugin("E:\MULTIM~1\Movie\Encoding\AutoGK\filters\kerneldeint.dll")

movie = mpeg2source("R:\DVDRip\agk_tmp\Rent.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 < 1.25) ? input_par : (4.0/3.0)
out_width = 704
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)
ColorMatrix("Rec.709->Rec.601",opt=0,hints=false)
SelectRangeEvery(300,15)
===========================================================
[05.09.2006 12:54:35] Duration was: 4 minutes 34 seconds
[05.09.2006 12:54:35] Speed was: 35,41 fps.
[05.09.2006 12:54:35] Compressibility percentage is: 59,91
[05.09.2006 12:54:35] Chosen resolution is: 640x272 ( AR: 2,35 )
[05.09.2006 12:54:35] Predicted comptest value is: 73,66%
[05.09.2006 12:54:35] Running first pass.
[05.09.2006 12:54:35] Writing the following script to R:\DVDRip\agk_tmp\Rent_movie.avs
===========================================================
LoadPlugin("E:\MULTIM~1\Movie\Encoding\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("E:\MULTIM~1\Movie\Encoding\AutoGK\filters\autocrop.dll")
LoadPlugin("E:\MULTIM~1\Movie\Encoding\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("E:\MULTIM~1\Movie\Encoding\AutoGK\filters\RemoveGrainSSE3.dll")
LoadPlugin("E:\MULTIM~1\Movie\Encoding\AutoGK\filters\kerneldeint.dll")

movie = mpeg2source("R:\DVDRip\agk_tmp\Rent.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 < 1.25) ? input_par : (4.0/3.0)
out_width = 640
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)
ColorMatrix("Rec.709->Rec.601",opt=0,hints=false)
===========================================================
[05.09.2006 13:49:11] Duration was: 54 minutes 35 seconds
[05.09.2006 13:49:11] Speed was: 59,29 fps.
[05.09.2006 13:49:11] Expected quality of first pass size: 70,13%
[05.09.2006 13:49:11] Running second pass.
[05.09.2006 14:47:56] Duration was: 58 minutes 44 seconds
[05.09.2006 14:47:56] Speed was: 55,11 fps.
[05.09.2006 14:47:56] Job finished. Total time: 2 hours 8 minutes 2 seconds

The strange thing is that not every ac3 film I have encoded have the same problem, but one movie with mp3 sound did.

The sync error is somewhere around 500 - 700 ms, I can fix the problem in nandub, but It wont be as accurat as a proper rip should be. I can only get it within +-25 ms, a bit annoying but I can live with it.

But I'm still wondering whats causing it, because it was not a problem a couple of weeks ago... or rather before I changed hardware.. could it be something with my xvid codec ?

CWR03
6th September 2006, 06:30
The video codec has nothing to do with audio synch. Try going back to an older version of AutoGK, or try its newest release. If you changed hardware, make sure all drivers for the old hardware are completely removed and that the new ardware has the proper and latest drivers.

Taleg
6th September 2006, 09:05
It's a clean install of windows.. I changed all the hardware..

I'll try the newest bulid of AutogK as soon as the current batch is finnished.. only 4 more to go, so it should be done by the time I come back from work in about 7 hours.

I have not had the same error with another mp3 sound movie yet, so that it is only 1 movie with mp3 sound that has had the same error (500-700ms off).
All but 1 of the Ac3 sound films have had the same problem

Strange...

There's one more Ac3 film in this batch, I made it the last so that I can get a good look at the logs and so forth.. not that I think that this will solve anything ;-(

The rips are close to perfect so theres no prob with the video codec, could a prob with the ac3 codec cause this ?
I personally don't think so, because 1 of the ac3 movies came out as it should, it seems to be caused by some other random cause.

Hm could it be affected by me using the pc at the same time ? (listning to mp3, browsing ect.)

CWR03
6th September 2006, 11:33
could a prob with the ac3 codec cause this ?
As I mentioned in your other post, you're using the original AC3 audio, so there's no encoding of the audio. In this case, the codec is completely irrelevent unless they won't play. The likelihood is still something with your hardware that the version of AutoGK doesn't like.

Taleg
6th September 2006, 17:55
I've installed the beta 2.32 now and i'll try another run with that.. Just can't understand why the error only happens on some movies and not all..

Could it be the Amd X2 cpu I'm using ? That's basicly the main change in the system setup, well that and the mainboard.

Taleg
7th September 2006, 10:21
No change with the 2.32 version.. must be some hardware conflict then.. Argh

It mostly seems to cause the error with all files larger than 1Gb (Ac3), but not on all and since I do most films as 700 mb...

Is there anyone how has an idea about this, because I'm stumped ?