Log in

View Full Version : Problem with editing AviSynth script


SleeK
2nd September 2004, 04:16
Hi,

I am having problem with DVD2SVCD avisynth editing. After editing the script, DVD2SVCD starts Cinema Craft Encoder and it crashes there. If i dont edit the script it works fine. I used Q62 from here (http://forum.doom9.org/showthread.php?s=&threadid=21859) to add my own borders. I started with these settings:

Aspect ratio = Anamorphic
NTSC -> PAL
Resize to SVCD
Multipass VBR (4)
AVI -> SVCD
Avisynth = Edit as part of encoding
Rest of the settings are defaults.

Avisynth Script (before starting):
0=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
1=AddBorders(^BorderLeft,^BorderTop,^BorderRight,^BorderBottom)
^b_value=0.0
^c_value=0.6

My Edited script during encoding:
LoadPlugin("G:\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
AVISource("G:\b.AVI",audio=false)
ConvertToYUY2()
AssumeFPS(25,1,True)
BicubicResize(480,576,0.0,0.6)
SimpleResize(480,332)
AddBorders(0,122,0,122)

Btw my system specs:
P4 2.4 (no HT)
WinXP Pro SP1
Maxtor 120GB HDD

What am i doing wrong here?
Thanks for your help.

Nick
2nd September 2004, 09:18
Hi.
Welcome to the forum!
Not a bad effort for a first post :)

WRT your problem, there is no need to resize twice!
Also, IIRC, you need to load a separate plugin to use SimpleResize and you are not doing so.

Change the Bicubic resize line to
BicubicResize(480,332,0.0,0.6)
and delete the simple resize line.

Report back if it doesn't work.

HTH
Nick

Manngo
2nd September 2004, 09:18
You can easily check. Drag and drop your .avs file to WMP. If it plays OK, the problem is not with Avisynth, but with CCE.

SleeK
2nd September 2004, 11:07
Thank you guys. That fixed the problem :)