Log in

View Full Version : Help with a simple AVIsynth script


elendil15900
1st July 2009, 04:21
ive been using this guide (http://www.doom9.org/mpg/avistretching.htm) to write my avisynth scripts for QuEnc.

so far, its been working perfectly...until i got to an avi file that is 528 x 400.

The first line I put Avisource("file location")
The second line is the bicubic resize, this is where the problem begins. With the other files I would divide 640 by the first number in the pixel size...so in this case (640/528)

Then I would multiply the resulting number by the second number in the pixel size...so (1.212121212*400)
So my bicubic resize line becomes (640,484,0.0.5)

When I get to the AddBorders part, I normally do 480 minus the second number in the bicubic resize line, but if I do that I get a negative number.

Can anyone help me make this script?

AviSource("file location")
BicubicResize(720,X,0,0.5)
AddBorders(0,X,0,X)

the file is 528x400

Guest
1st July 2009, 04:54
What is the AVI file and where did you get it?