Log in

View Full Version : 2 Question Reguard FitCD's Script. Some Of The Lines Im Not Sure Of.


Master Yoda
7th December 2006, 16:26
OK, i justed check out FitCD to get the correct resize for xvid -> dvd but theres a couple of question i have reguarding the some of the lines in the avisynth script it creates.

The first is with LanczosResize which i have used before but i have only put in the hight and width i wish to resize to. In the script FitCD gave it has (688,352,0,1,640,270) what are the last 4 sets of numbers please ??

FitCD also adds #Trim(0,139738).FadeOut(150) to the bottom, now i know what trim is but what is the fadeout for ?? to be honest i dont see why FitCD adds this line in.

I was going to check avisynth site but its not working.

Thanks

foxyshadis
7th December 2006, 17:37
You should have a copy of the documentation in your avisynth folder as well.

The last 4 parameters are the cropping. It works as if you had called crop() with those parameters before the resize.

And the last line appears to be a comment, so it would have no effect unless you uncomment it. Maybe it only does if you enable some option. FadeOut, well, fades the video to black for x frames, which is an effect some like.

Master Yoda
7th December 2006, 17:47
Forgot about the avisynth folder, just had a look but what i was looking at does'nt really explain too well. Im guessing the cropping is needed to retain the correct AR, at the mo i have

LanczosResize(720,368,0,1,640,270)
AddBorders(0,56,0,56)

The original is 640x272 so i can see it crops down to 270, but may i ask as to what the two numbers in the middle do?? the 0,1 as i dont see what they have cropped.

Fadeout... mmmmm should have really guessed that.

Thanks

foxyshadis
7th December 2006, 17:52
It's crop(left,top,width,height) or crop(left,top,-right,-bottom), so it's just taking 1 off the top and bottom there.

Master Yoda
7th December 2006, 18:06
I see why i did'nt get it first, i though it would look like this to crop 1 from top and 1 from bottom (0,1,0,1).

Thanks for the info.