Log in

View Full Version : Audio Sync Problem


xzibit3180
21st November 2003, 22:10
I've been trying to encode the Friends DVD for the longest time. It's is like my 10th time doing it and I always get the same thing. The audio plays fine at the begginnig but then towars the middle to the end, it be becomes out of sync. You start to hear the audio before the lips. I am using ogg track, field interlace filter, & IVTC. Please let me know if I am doing something wrong.


11/20/2003 4:17:15 PM: Job "SPR " started.

o DivX5-First Pass: D:\DVD\Projects\FriendsSeason4CD1_VTS_01_PGC1\FRIENDSSEASON4CD1.avs
o DivX5 - Pass 2: D:\DVD\Projects\FriendsSeason4CD1_VTS_01_PGC1\FRIENDSSEASON4CD1.avs
x Mux Audio (disabled).
End of Job 1 (SPR ).
_______________________________________________________________________________________________________________________

Gordian Knot -
Encoding Job Data:

Type: EncD5_All
Number: 1
Name: SPR
Platform: WinXP (5.1.2600).2

Files:
VirtualDubModExe: C:\Program Files\Gordian Knot\VirtualDubMod\VirtualDubMod.exe
NandubExe: C:\Program Files\Gordian Knot\Nandub\Nandub.exe
AviFinal: D:\DVD\Projects\FriendsSeason4CD1_VTS_01_PGC1\FRIENDSSEASON4CD1_1.avi
AviMovie: D:\DVD\Projects\FriendsSeason4CD1_VTS_01_PGC1\FRIENDSSEASON4CD1_1_Movie.avi
AviCredits: D:\DVD\Projects\FriendsSeason4CD1_VTS_01_PGC1\FRIENDSSEASON4CD1_1_Credits.avi
MovieFS: D:\DVD\Projects\FriendsSeason4CD1_VTS_01_PGC1\FRIENDSSEASON4CD1.avs
CreditsFS:
Log : D:\DVD\Projects\FriendsSeason4CD1_VTS_01_PGC1\FRIENDSSEASON4CD1_1.log
Stats: D:\DVD\Projects\FriendsSeason4CD1_VTS_01_PGC1\FRIENDSSEASON4CD1_1.stats
Ecf :

Options:
Quality/DRF: 0
CreditsStart: 142848
UseEcf: 0
CreditsIVTC: 1
CreditsAppend: 0
DeleteInterm.: 0
EnforceBitrate: 0
AntiShit: 0

Calculator:
VideoSize: 731431 kbyte.
Audio1Size: 81090 kbyte.
Audio2Size: 0 kbyte.
Overhead: 15859 kbyte.
AviSize: 828380 kbyte (808 mbyte).
FilesSize: 2083 kbyte.
TotalSize: 830464 kbyte (811 mbyte).
Interleaving: vbrmp3
Bitrate: 714 k(=1000)Bits/s
Frames: 251737
FPS: 29.970
Duration: 220:0
Quality: 0.158 bits/(pixel*frame).
CompCheck3: 0.000 bits/(pixel*frame).
CompCheck5: 1.062 bits/(pixel*frame).
Resolution: 448 x 336

Audio 1:
none.

Audio 2:
none.

4:17:15 PM: Re-Calculating Frame Count.
4:17:15 PM: FrameRate was 29.970 fps
4:17:15 PM: FrameRate now is 23.976 fps
4:17:15 PM: IVTC: 201398 Frames.
4:17:15 PM: Audio 1, calc: 81090 kb
4:17:15 PM: Audio 1, disabled, no recalc. - you probably want to add this track later.

Adding this script to C:\Program Files\Gordian Knot\VirtualDubMod\LastJob.vcf :

// $job "DivX5-First Pass"
// $input "D:\DVD\Projects\FriendsSeason4CD1_VTS_01_PGC1\FRIENDSSEASON4CD1.avs"
// $output "D:\DVD\Projects\FriendsSeason4CD1_VTS_01_PGC1\FRIENDSSEASON4CD1_1.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\DVD\\Projects\\FriendsSeason4CD1_VTS_01_PGC1\\FRIENDSSEASON4CD1.avs",0,0);
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x78766964,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\DVD\\Projects\\FriendsSeason4CD1_VTS_01_PGC1\\FRIENDSSEASON4CD1_1.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

4:17:15 PM: Started DivX5-First Pass: D:\DVD\Projects\FriendsSeason4CD1_VTS_01_PGC1\FRIENDSSEASON4CD1.avs
7:40:14 PM: Finished DivX5-First Pass: Duration: 3 hours, 22 minutes, 58 seconds.
7:40:14 PM: Trying to open Log-file.
7:40:14 PM: Success: Log-file open.
7:40:14 PM: Encoded: 251737 Frames.
7:40:14 PM: Speed: 20.670 Frames per Second.
7:40:14 PM: WARNING: Number of counted frames differs from settings!
7:40:14 PM: WARNING: Settings: 201398
7:40:14 PM: WARNING: Counted: 251737
7:40:14 PM: WARNING: Difference: 50339
7:40:14 PM: Correcting Bitrate...
7:40:14 PM: Original Bitrate = 717 k(=1000)Bits/s
7:40:14 PM: Now encoding at 570 k(=1000)Bits/s

Adding this script to C:\Program Files\Gordian Knot\VirtualDubMod\LastJob.vcf :

// $job "DivX5-Second Pass"
// $input "D:\DVD\Projects\FriendsSeason4CD1_VTS_01_PGC1\FRIENDSSEASON4CD1.avs"
// $output "D:\DVD\Projects\FriendsSeason4CD1_VTS_01_PGC1\FRIENDSSEASON4CD1_1.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\DVD\\Projects\\FriendsSeason4CD1_VTS_01_PGC1\\FRIENDSSEASON4CD1.avs",0,0);
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x78766964,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\DVD\\Projects\\FriendsSeason4CD1_VTS_01_PGC1\\FRIENDSSEASON4CD1_1.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

7:40:14 PM: Started DivX5 - Pass: 2: D:\DVD\Projects\FriendsSeason4CD1_VTS_01_PGC1\FRIENDSSEASON4CD1.avs
2:40:37 AM: Finished DivX5 - Pass: 2: Duration: 7 hours, 0 minutes, 22 seconds.
2:40:37 AM: Speed: 9.981 Frames per Second.

2:40:37 AM: Done.
2:40:37 AM: Movie = D:\DVD\Projects\FriendsSeason4CD1_VTS_01_PGC1\FRIENDSSEASON4CD1_1.avi
Total Encoding Time: 10 hours, 23 minutes, 21 seconds.
11/21/2003 2:40:37 AM: Job "SPR " finished.
________________________________________________

colordog
22nd November 2003, 14:18
I don't understand why you're posting this in the GKnot forum when GKnot doesn't yet support OGG.

Have you tried having GKnot mux VBR MP3 for one of the episodes to see what happens?

xzibit3180
22nd November 2003, 20:05
Sorry to put this in the wrong forum. As to my problem. Yes I do know that Gnot does not support Ogg yet and I've always used either virtualmod or ogg mux for my ogg audio and they still come out the same, desync. Ive also tried just using the VBR MP3 Gnot can do and still no luck. Any other ideas?

len0x
22nd November 2003, 20:12
can you post your AVS file btw ?
I'm not sure I understand this bit: "field interlace filter & IVTC"
what's your source PAL or NTSC ?

jggimi
22nd November 2003, 23:09
Moved to Audio Encoding. If it turns out to be a container related issue, it can be moved again, I suppose.

xzibit3180
23rd November 2003, 08:10
My Source is NTSC. and sorry but I meant to say is I chose field deinterlace filter and IVTC in the AVS where it says in Gordian Knot. I'm not sure if I should of checked that or not but I have done both ways and still the same thing.

Here us My AVS

#
# Created with Gordian Knot
#
# http://gknot.doom9.org
#
# PLUGINS
LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec3.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\undot.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\decomb.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\dgbob.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\Convolution3d.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\FluxSmooth.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\TomsMoComp.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\VSFilter.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\SimpleResize.dll")
#
# SOURCE
mpeg2source("D:\DVD\Projects\FriendsSeason4CD1_VTS_01_PGC1\FRIENDSSEASON4CD1.d2v")
#
# TRIM
#trim(startframe,endframe)
#
# IVTC
Telecide(order=1,guide=1).Decimate()
# or use
#IVTC(44,11,95)
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# CROPPING
crop(12,0,696,476)
#
# DEINTERLACING (1)
#FieldDeinterlace()
#FieldDeinterlace(blend=false)
#TomsMoComp(1,5,1)
#
# DEINTERLACING (2)
#SeparateFields().SelectEven()
# or maybe
#DGBob(order=1,mode=0)
# DEINTERLACING (3) - special requests
#GreedyHMA(1,0,0,0,0,0,0,0)
#Telecide()
#SeparateFields()
#
#
# SUBTITLES
#VobSub("FileName")
#
# RESIZING
LanczosResize(416,320)
#
Undot()
#
# DENOISING: choose one combination (or none)
# 1) little noise
#Temporalsoften(2,3,3,mode=2,scenechange=6)
#mergechroma(blur(1.3))
#FluxSmooth(5,7)
#
# 2) medium noise
#Temporalsoften(3,5,5,mode=2,scenechange=10)
#Convolution3d("moviehq")
#FluxSmooth(7,7)
#
# 3) heavy noise
#Temporalsoften(4,8,8,mode=2,scenechange=10)
#Convolution3d("movielq")
#FluxSmooth(10,15)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
#
# FOOL CCEnc
#empty = BlankClip()
#AudioDub(last,empty)


Thank you for the quick replies

colordog
23rd November 2003, 17:29
You cannot choose field deinterlace AND IVTC at the same time in GKnot - from your AVS, it looks like it's IVTC.

What's the delay on the extracted AC3 file?

The problem might have something to do with the fact that you're converting from 30 to 24 fps with IVTC, although GKnot's (VirtualModDub / Nandub) have never had a problem with that, in my experience.

What happens if you take the movie into Nandub with your VBR MP3 and under Video, select "Frame Rate" and "make video sync with audio"?

xzibit3180
24th November 2003, 00:45
the delay is -66ms

What settings exactly do you recommend?

thanks for your help.