Log in

View Full Version : Audio sync while doing avi2dvd


Dm32
5th February 2006, 10:14
I run a modified avisynth script to do an avi. If I run the original script i get:

AVISOURCE: could not decompress frame 0

so i run this modified script:

[AVISYNTH_SimpleResize]
0=Import(!RoBaConditional.avs)
1=LoadPlugin(!SimpleResize.dll)
2=ConvertToYUY2().SimpleResize(^TargetWidth,^TargetHeight)
!SimpleResize.dll=C:\DVD2SVCD\Avisynth2.5 Plugins\SimpleResize\SimpleResize.dll
3=AddBorders(^BorderLeft,^BorderTop,^BorderRight,^BorderBottom)
!RoBaConditional.avs=C:\DVD2SVCD\Tylo\RoBaConditional.avs


[AVISYNTH_LanczosResize]
0=Import(!RoBaConditional.avs)
1=LanczosResize(^TargetWidth,^TargetHeight)
2=AddBorders(^BorderLeft,^BorderTop,^BorderRight,^BorderBottom)
!RoBaConditional.avs=C:\DVD2SVCD\Tylo\RoBaConditional.avs

[AVISYNTH_BilinearResize]
0=Import(!RoBaConditional.avs)
1=BilinearResize(^TargetWidth,^TargetHeight)
2=AddBorders(^BorderLeft,^BorderTop,^BorderRight,^BorderBottom)
!RoBaConditional.avs=C:\DVD2SVCD\Tylo\RoBaConditional.avs

[Global]
AVIReader=AVISource(!filename,audio=false)
MPEG2Reader=MPEG2Source(!filename)
MPEG1Reader=DirectShowSource(!filename)

[AVISYNTH_BicubicResize]
0=Import(!RoBaConditional.avs)
1=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
2=AddBorders(^BorderLeft,^BorderTop,^BorderRight,^BorderBottom)
!RoBaConditional.avs=C:\DVD2SVCD\Tylo\RoBaConditional.avs
^b_value=0.0
^c_value=0.6


The problem is that the resultant DVD output has the audio lag behind the action.

What can I do?

I attempt to run vdub and enter -3500 ms audio delay, but the I think because of the huge -3500 avi2dvd will not run.

Nick
5th February 2006, 12:41
Isn't the avisynth.ini file you've posted the original? I can't see any modification.

I'm guessing you changed the AVI reader to Directshowsource. Very occasionally this causes sync issues.

If so, what codec was used to create the AVI? Perhaps installing the latest codec version will allow you go back to Avisource.