Hi all! Im looking for a resizer that is going to be used to resize 1440x1080 to 1920x1080. I thought that maybe EDIUpsizer or EEDI2 could be well suited for this. As long as it gives nice result (minimal halo, blur and such) the renderingtime is not a problem.
Any suggestions?
maybe EEDI2 to double the size, and use limitedsharpen to downsize it from there to 1920x1080 using a very light sharpening (or heavy, depending on your source).
it'll be quite slow
thanks Mug Funky
I use Limited_sharpen which is my favourite sharpener but is it possible to sharpen more horizontally than vertically to acheive a correct sharpen?
actually, just looking at your input size, it'd probably look fine with just a lanczosresize...
there's a hacked limitedsharpen that allows separate horizontal and vertical sharpening, but it's kinda not the prettiest script out there... you can find it in the limitedsharpen thread, towards the end.
I downloaded Lanczos3 and gets an error message saying: C:\Program\AviSynth 2.5\plugins\resize\lanczos3.dll is not an Avisynth 2.5 plugin
anyone knows why?
my script:
import(quot;C:\Program\AviSynth 2.5\plugins\mvbob.avsquot;)
import(quot;C:\Program\AviSynth 2.5\plugins\L_S\LimitedSharpen_mod\limitedsharpen_mod.avsquot;)
loadplugin(quot;C:\Program\AviSynth 2.5\plugins\dgmpgdec145\dgdecode.dllquot;)
loadPlugin(quot;C:\Program\AviSynth 2.5\plugins\resize\lanczos3.dllquot;)
loadplugin(quot;C:\Program\AviSynth 2.5\plugins\mvtools.dllquot;)
loadplugin(quot;C:\Program\AviSynth 2.5\plugins\L_S\masktoolsv_20a7\mt_masktools.dllquot;)
mpeg2source(quot;C:\HD.d2vquot;)
mvbob()
Lanczos3Resize(3000,1080)
Lanczos3Resize(1920,1080)
LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=4,strength=150,soft=34)EDIT: is Lanczos5 the newest and better than lanczos3?
I believe Lanczos4 is the newest and is built into AVISynth. Also in the latest AVISynth you can use just LanczosResize then adjust the taps as much as you want for sharpness.
Thanks Backwoods
It seems my v. of Avisynth (2.56) has Lanczos3 built-in but how can I put this in a particular order? I tried to just put Lanczos3Resize(3000,1080) then
Lanczos3Resize(1920,1080) and deleted the loadplugin line, this didnt work though...
I use Lanczos4Resize with that version of avisynth just fine, no need to load any plug-ins.
btw wouldn't:
Lanczos3Resize(3000,1080) then Lanczos3Resize(1920,1080)
just stretch the image? how do you keep it the same aspect ratio?P.S. none of your plugins need to be loaded in that script of yours, since they are all in avisynth plug-in directory.
The thing is lexor, the image is 1440x1080 anamorphic squeeze. So the size should either be 1920x1080 or 1440x810 to get the normal aspect ratio. Thats why I wanna resize it to 1920x1080 (rather upressing than downressing for best cinematic-compatibility).
I followed MugFunky's advice to use Lanczosresize and then add limitedsharpen but how do i put limitedsharpen last?
Code:
mpeg2source(quot;C:\HD.d2vquot;)
mvbob()
LimitedSharpen(dest_x=1920,dest_y=1080,ss_x=1.0,ss_y=1.0,Smode=4,strength=150,soft=34)
You can try this.
That worked too, thanks!
Although Lanczosresizer gives a sharper image and less jaggies, its even faster too.
[EDIT:] BTW, why doesn't my script work when I write:
loadplugin(quot;C:\Program\VirtualDub\plugins\lanczos3.dllquot;)
Lanczos3resize(1920,1080)
an error pops up: quot;Theres no function called Lanczos3resizequot; or quot;lanczos3.dll is not an avisynth pluginquot;
This script works however: Lanczosresize(1920,1080)
Lanczos3.dll might be a AVISynth 2.0 plugin. It really is not worth loading since LanczosResize is Lanczos3.
From the AVISynth documentation:
LanczosResize / Lanczos4Resize
LanczosResize is an alternative to BicubicResize with high values of c about 0.6 ... 0.75 which produces quite strong sharpening.
It usually offers better quality (fewer artifacts) and a sharp image.
Lanczos4Resize (added in v2.55) is closely related to LanczosResize (correct name: Lanczos3Resize). The latter uses 2*3=6 lobes and the former 2*4=8 lobes to do the resizing. The result is that Lanczos4Resize produces sharper images. Especially usefull when upsizing a clip.
Interpolation Tap Size (taps parameter)
quot;For upsampling (making the image larger), the filter is sized such that the entire equation falls across 4 input samples, making it a 4-tap filter. It doesn't matter how big the output image is going to be - it's still just 4 taps. For downsampling (making the image smaller), the equation is sized so it will fall across 4 *destination* samples, which obviously are spaced at wider intervals than the source samples. So for downsampling by a factor of 2 (making the image half as big), the filter covers 2*4=8 input samples, and thus 8 taps. For 3x downsampling, you need 3*4=12 taps, and so forth.
Thus the total number of taps you need for downsampling is the downsampling ratio times the number of lobes (thus Tx downsampling and LanczoskResize results in T*2*k taps). And practically, one needs to round that up to the next even integer. For upsampling, it's always 4 taps.quot; Source: [avsforum post].
Lanczos4Resize is a short hand for LanczosResize(taps=4).
edit mod: replaced code with quote tags for readability.
Someday we might see B-spline or S-spline resizers in avisynth, or maybe fractal resizers. They may be slow but for doubling (or quadrupling) resolution nothing else comes close. (Without any of the halos that lanczos' first negative tap creates.) That'll be the day...
They may be slow but for doubling (or quadrupling) resolution nothing else comes close.
Except of motion compensated temporal super resolution |