Resize 1080p to 720p?

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
User avatar
Micio2
Joined: Thu Apr 15, 2010 1:40 pm
Org Profile

Re: Resize 1080p to 720p?

Post by Micio2 » Wed Nov 24, 2010 12:52 pm

ngsilver wrote:... use an avisynth script and spline36resize(1280,720) the video so you now have 720p...
As long as he just need to scale down less than half the original size, isn't it better spline16resize?

I think 8 samples too much for scale down only to 2/3 of full size, it maybe using spline36resize will lead to less sharpness than spline16resize. But I think hardly someone can notice the difference viewing the resulting video: the two videos needs be compared frame by frame :rofl:

This makes me to think run some test.... never scaled 1080 to 720 :oops: (scaling 1080 to 320, more often, and spline36resize works like a charm :D )

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: Resize 1080p to 720p?

Post by Mister Hatt » Thu Nov 25, 2010 5:46 am

No? Spline36 is the best to use, unless you don't have any idea what the numbers do, in which case use whatever looks nicer to you when you write it.

User avatar
Venodium
Joined: Mon Nov 09, 2009 3:34 pm
Org Profile

Re: Resize 1080p to 720p?

Post by Venodium » Thu Nov 25, 2010 1:24 pm

I just went with the vDubMod Filter "Resize" which works pretty well and is easy :lol:
Thanks everyone

User avatar
Micio2
Joined: Thu Apr 15, 2010 1:40 pm
Org Profile

Re: Resize 1080p to 720p?

Post by Micio2 » Fri Nov 26, 2010 5:01 pm

Mister Hatt wrote:No? Spline36 is the best to use, unless you don't have any idea what the numbers do, in which case use whatever looks nicer to you when you write it.
I ran some tests about:

original image, I choose something hard to scale down and keep sharp:
Image

Then, I have resized the image to 171x171, that is the same rate when you scale down from 1080p to 720p, using Spline16, here the result:
Image

and finally, I resized the original source using Spline36:
Image

What a wonder! I can't tell any difference between the two resized images (but see the huge difference from source: light circles are totally misplaced!), and Spline16 taken 3 times less cpu to resize. This maybe can save the day if your pc is not high end and you wanna encode 2 hours of HD video there.

Personally, maybe because I also studied the math behind all of this, I was expecting Spline36 performing worse than Spline16, because it was taking more samples than really needed to scale an image down to 67% of original size. That was the purpose of my first post.

At the end, just to avoid confusion about what filter is "the best" about resize, truth is that doesn't exists the best filter. Any filter has his own good and bad things, it is your experience and knowledge of what you are doing, to let you choose the correct filter for your resize purpose.

Wanna go ahead the cubics? Here some hints.

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: Resize 1080p to 720p?

Post by mirkosp » Fri Nov 26, 2010 5:05 pm

Tip: anime resize looks differently than what a test image like the one above would, since the colouring and lines are different in kind. The effectiveness of resizing algorithms varies with the content, too...
Image

TheRyuu
Joined: Wed May 19, 2010 5:33 pm
Org Profile

Re: Resize 1080p to 720p?

Post by TheRyuu » Sun Nov 28, 2010 1:29 am

Micio2 wrote:
ngsilver wrote:... use an avisynth script and spline36resize(1280,720) the video so you now have 720p...
As long as he just need to scale down less than half the original size, isn't it better spline16resize?

I think 8 samples too much for scale down only to 2/3 of full size, it maybe using spline36resize will lead to less sharpness than spline16resize. But I think hardly someone can notice the difference viewing the resulting video: the two videos needs be compared frame by frame :rofl:

This makes me to think run some test.... never scaled 1080 to 720 :oops: (scaling 1080 to 320, more often, and spline36resize works like a charm :D )
Even though spline36 is a "sharp" re-sizer, it won't cause artifacts when downsizing. If anything spline36 will have a better "interpreted" image than spline16. Spline is better than Lanczos at downsizing (lanczos will causing ringing, blackman re-size (in avisynth) attempts to correct this). I've never heard of anything like using spline16 when you only need to scale down to less than half the original size which makes me think that's some made up thing.

Bicubic is also acceptable when downsizing (more speed). Side effect of downsizing with bicubic is some AA. It probably won't be as sharp as spline36.

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: Resize 1080p to 720p?

Post by Mister Hatt » Tue Dec 21, 2010 8:49 pm

Also, regardless of how good you are at math, if the function's programming itself is broken (spline16 and spline64) then it will NOT do a better job. This has been fixed in avs2.6 but I don't think most people here are using that yet.

Re math, yes, I also know how it works, and while not a math student, I have written my own resizers and fully understand the sampling systems used. When you are downscaling, you do not want to blur it, or you lose more data regardless. Hence why more iterations are appropriate. Upscaling however you will want more accurate sampling, and so going higher is advised. Not that upscaling is ever advised.

Additionally, seems you really DON'T understand the numbers in these filters. The tap number is for iterations, not samples. Spline16 is 4 taps, spline36 is 6, spline64 is 8, etc. IIRC they all use the same sample size and then depending on number of taps, shift the sample points for the next iteration. That is how they build the number of samples up. I don't recall why the tapcount is squared for the names though.*

*might in fact be wrong as I haven't read up on this in a while, but AFAIK that is the reason for it.

User avatar
fuzzypuff258
Joined: Wed Aug 25, 2004 9:51 am
Location: Earth
Org Profile

Re: Resize 1080p to 720p?

Post by fuzzypuff258 » Thu Feb 24, 2011 1:24 am

Good info to know, thanks!
Spoiler :
call me anna karenina

Locked

Return to “AviSynth Help”