PDA

View Full Version : Help to resize ( noob question )


Cel_Rocha
13th January 2006, 01:43
I'm trying to resize a film from 624x352 to 320x240.
As you can see, the original resolution is 16:9 and the final resolution wanted is 4:3.
I read the sticks of Avisynth Usage (http://forum.doom9.org/forumdisplay.php?f=33) forum and didn't found nothing related w/ resizing. I read the Avisynth.org information about resize (http://www.avisynth.org/Resize) and don't understand nothing. I searched on Avisynth.org wiki (http://www.avisynth.org/mediawiki) and dind't found nothing.
The only thing I was suscefull to do was to resize from 624x352 to 320x180, but i couldn't add the letterbox ( to final resolution be 320x240 ).
test.avs
# Video source
AviSource("C:\capture.avi").BilinearResize(320,180)

# Range to encode
Trim(0, 240)


Note: Someone told me to use BilinearResize, but i don't understand the BilinearResize sintax.

Please help-me ; )

Edited:
In BilinearResize sintax, what is src_left and src_top ?

stickboy
13th January 2006, 06:08
On the avisynth.org page, the "Basic Usage" section has all you need:Basic usage:
...
BilinearResize(clip clip int target_width, int target_height)Therefore all you need is:BilinearResize(320, 240)The optional, extra parameters (such as src_left, src_top, etc.) are used only if you want to crop too.

Incidentally, the avisynth.org page really doesn't explain that those extra parameters are optional. In general, I think the documentation that comes with AviSynth is a better reference, so you should consult that first.

foxyshadis
13th January 2006, 06:12
That's exactly how you use it! Nothing more needed. The extra arguments are there just so you can crop it while resizing, to save a step and enable finer crops. They work exactly like the arguments to the crop function.

Adding black borders is another step, coincidentally enough called "AddBorders". :) You probably want:

AddBorders(0, 30, 0, 30, $000000)