View Full Version : About Resize


Nikos
25th June 2005, 13:52
I know that BicubicResize is better for magnifying and
BilinearResize is better for shrinking.
I want to resize from 640x360 (1:1) to 352x576 (1/2 DVD).
What's the preferable choice.

1.
AVISource("C:\movies\MyMovie.avi)
BicubicResize (640,432,1/3,1/3) # magnify vert. res. only
BilinearResize(352,432) # shrink hor. res. only
AddBorders(0,72,0,72)

2.
AVISource("C:\movies\MyMovie.avi)
BilinearResize(352,432) # shrink hor. res. only
BicubicResize(640,432,1/3,1/3) # magnify vert. res. only
AddBorders(0,72,0,72)

3.
AVISource("C:\movies\MyMovie.avi)
BicubicResize(352,432,1/3,1/3)
AddBorders(0,72,0,72)

4.
AVISource("C:\movies\MyMovie.avi)
BilinearResize(352,432)
AddBorders(0,72,0,72)

Guest
25th June 2005, 13:55
What's the best choice According to forum rule 12, there is no best choice. Please read and follow the forum rules, specifically "Do not ask what's best". Thank you.

You can ask what people prefer, or whether they think something is correct, or could be done better. It sounds picky, but the rule helps to keep flame wars from breaking out.

:readrule:

Nikos
25th June 2005, 14:02
I know the forum rules.
I don't ask a general what is the best.
I want to know if separete resize is right choice.

Manao
25th June 2005, 16:09
I'd resize only once, to avoid any unnecessary blurring. And I rather prefer sharp videos, so i'd go for lanczos. Now, in your case, it's really up to you to choose which one you prefer : i find both bilinear and bicubic(0.33, 0.33) blurry ( the later slightly less ), so i'd advise the later.

But...

But you don't say with what you'll encode your video and on what you plan to watch it. From the resolution you chose, i can guess it's mpeg2 / TV. So in that case, sharpness do not necessarily matters, but compressibility might. In that case, bilinear will be more compressible than bicubic(0.33,0.33).

In any case, the two are very close, and i doubt you'll see a difference.

Nikos
25th June 2005, 16:24
Thank you Manao for your reply.
I encode divX to mpeg2, the res. 352x576 is DVD compatible.
The 1 and 2 choice, resize only once because AviSynth has completely
seperate vertical and horizontal resizers. If input is the same as output on
one axis, that resizer will be skipped.
http://www.avisynth.org/Resize

Manao
25th June 2005, 17:34
Yeah, i forgot that. So you can mix them. However, bicubic will still give sharper results if you downsize, so it's still a tradeoff between sharpness and compressibility, and it's still up to you :)