PDA

View Full Version : Problems with SharpResize


Chainmax
1st February 2004, 23:21
I'm currently making a high resolution rip from my"Lion King" DVD. Here's the avs I'm using:

LoadPlugin("C:\MPEG-4\Herramientas\Avisynth filters\aWarpSharp.dll")
LoadPlugin("C:\MPEG-4\Herramientas\Avisynth filters\WarpSharp.dll")
Import("C:\MPEG-4\Herramientas\Avisynth filters\SharpTools-v0.3.avs")
mpeg2source("C:\MPEG-4\LionKing\ReyLeon.d2v")
Telecide(order=0,guide=1,post=1,hints=true)
KernelDeint(order=0,sharp=true)
Decimate(cycle=5,mode=2,quality=3)
Undot()
Sharpresize(1008,608)

I tried this with the warpsharp DLL in mf's homepage and the new version (supposedly more stable) that was posted here a while ago. I also tried autoloading everything (using the new warpsharp DLL) but avisynth (v2.54) keeps reporting an access violation error every time. What's going on?

K-Dash
1st February 2004, 23:47
try this res (1024x608) instead.

Chainmax
2nd February 2004, 01:14
Would that make a difference? 1008 is also a MOD16 width, plus 1008/608 is nearer to 1.66 (the source's aspect ratio) than 1024/608 is.

mf
2nd February 2004, 12:47
I presume your source is MOD4 and YV12. Other than that, I see no problems. How are other versions of AVISynth?

Chainmax
2nd February 2004, 17:26
Well, it is a commercial DVD, so I assume as well that it is YV12 and MOD4. I'll try the latest avisynth CVS release and report back.

Chainmax
2nd February 2004, 17:55
No luck. The latest avisynth CVS also reports an access violation error. I even removed my v2.0x plugins folder and the oldplugins avsi (it does require to unzip msvcr70.zip in the system folder, right?). I'm going to try an older stable version.

Wilbert
2nd February 2004, 17:59
If you are using the latest warpsharp package, you need msvcr71.zip. See AviSynth faq.

Chainmax
2nd February 2004, 18:12
As I already said, I used both the latest warpsharp DLL linked somewhere in here and the one that mf has in his website. I'll try installing msvcr71.zip.

Chainmax
2nd February 2004, 18:38
Ok, I copied both files in 71.cab to the windows system folder. Using Avisynth v2.55, I get the following error message:

Avisynth open failure:
Evaluate: Unrecognized exception!
(SSTov, line 37)
(C:\MPEG4\LionKing\LionKing.avs, line 6)

The script being now:

mpeg2source("C:\MPEG-4\LionKing\ReyLeon.d2v")
Telecide(order=0,guide=1,post=1,hints=true)
KernelDeint(order=0,sharp=true)
Decimate(cycle=5,mode=2,quality=3)
Undot()
Sharpresize(1008,608)

It seems to be a problem with sharptools now :confused:.

mf
2nd February 2004, 20:15
and 2.5.1, 2.5.3 (and 2.5.4)? I have not yet upgraded to 2.5.4 and ever since 2.5.1 CVS I've had no problems with SharpTools. If you continue to experience problems, this should work too:

sinput = last
stywidth = 1008
styheight = 608
stcwidth = stywidth/2
stcheight = styheight/2
sinput.GreyScale()
sy = last
sinput.UToY()
su = last
sinput.VToY()
sv = last
sy.LanczosResize(stywidth*4, styheight*4)
XSharpen(255, 255)
LanczosResize(stywidth, styheight)
sy2 = last
su.LanczosResize(stcwidth*4, stcheight*4)
XSharpen(255, 255)
LanczosResize(stcwidth, stcheight)
su2 = last
sv.LanczosResize(stcwidth*4, stcheight*4)
XSharpen(255, 255)
LanczosResize(stcwidth, stcheight)
sv2 = last
YToUV(sy2, su2, sv2)

Chainmax
2nd February 2004, 21:09
So, the new script would be

mpeg2source("C:\MPEG-4\LionKing\ReyLeon.d2v")
Telecide(order=0,guide=1,post=1,hints=true)
KernelDeint(order=0,sharp=true)
Decimate(cycle=5,mode=2,quality=3)
Undot()
sinput = last
stywidth = 1008
styheight = 608
stcwidth = stywidth/2
stcheight = styheight/2
sinput.GreyScale()
sy = last
sinput.UToY()
su = last
sinput.VToY()
sv = last
sy.LanczosResize(stywidth*4, styheight*4)
XSharpen(255, 255)
LanczosResize(stywidth, styheight)
sy2 = last
su.LanczosResize(stcwidth*4, stcheight*4)
XSharpen(255, 255)
LanczosResize(stcwidth, stcheight)
su2 = last
sv.LanczosResize(stcwidth*4, stcheight*4)
XSharpen(255, 255)
LanczosResize(stcwidth, stcheight)
sv2 = last
YToUV(sy2, su2, sv2)

right? I'll try it and report back.

Chainmax
3rd February 2004, 00:28
I keep getting an avisynth error message, only without the "(SSTOV, line 37)" line and this time the error is at line 21 of the script. So, there's something wrong with:

su.LanczosResize(stcwidth*4, stcheight*4)

scharfis_brain
3rd February 2004, 02:06
try to set a higher memoryvalue for avisynth

setmemorymax(160)

at the top of your script.

you can also choose a higher value (in Megabytes) depending on your system's RAM.

Chainmax
3rd February 2004, 17:58
I'll try setmemorymax(128) since unfortunately 128Mbytes is all I have right now (I lost the other 128Mbytes I had, long story :()

Chainmax
3rd February 2004, 23:35
No luck, I get the same error message. Would replacing the following lines:

sy.LanczosResize(stywidth*4, styheight*4)
su.LanczosResize(stcwidth*4, stcheight*4)
sv.LanczosResize(stcwidth*4, stcheight*4)


with the following ones:

sy.LanczosResize(stywidth*3, styheight*3)
su.LanczosResize(stcwidth*3, stcheight*3)
sv.LanczosResize(stcwidth*3, stcheight*3)

be of any help? If I'm not mistaken, what this would do is use a 3x image for supersampling instead of a 4x one, thus reducing memory requirements. Am I right?

mf
3rd February 2004, 23:59
Yes, it would kill detail and edge smoothness too, but yes.

Chainmax
4th February 2004, 17:46
Ok, then. I guess I'll just have to wait until I receive the missing memory :(.