Log in

View Full Version : Installing LimitedSharpenFaster ... so it works


steptoe
4th July 2006, 16:57
I have never successfully managed to get this to work correctly, it always moans something is wrong

Can somebody please explain exactly how to install and what is needed to get LimitedSharpenFaster to run


I've tried reading the Wiki subject on LimitedSharpen, I've installed what it says is required, I've tried searching on here, but it still moans and refuses to run corrrectly

I know its something simple but its doing my head in whats wrong. I've installed all filters as needed, just installed exactly what it says in my plugins and removed everything else in case of a clash

My filter list is very simple, I've even broken it down bit by bit to see where it fails, LimitedSharpen function all the time


LoadPlugin("E:\Video Related\AviSynth\plugins\Colormatrix.dll")
ColorMatrix(mode="Rec.601->Rec.709",hints=true)
LimitedSharpenFaster(ss_x=1.0,ss_y=1.0,Smode=4,strength=120)



Thats it, if I can convince LimitedSharpen to run, then I can start adding the other filters I use now and then, but there is no point getting an invloved filter list until I can get the simple things running first

I've tried renaming the LimitedSharpenFaster function to .avs and importing it, I've tried renaming it to .avsi so it loads automatically, I've tried loading all required plugins using LoadPlugin

But still it refuses to work

Now the nearest I can get is the function moaning that there is no function called "mt_edge"

I've installed the latest masktools 2.0a30, and v1.0 of RemoveGrain, which I use and works fine. I've tried installing MT.dll as I read somewhere about this being required. Nope, still fails


I just want to get LimitedSharpen to work correctly, it has to be something stupid I've missed ... it really is doing my head in as I want to see what difference I can make to my results. The previews I've seen are very impressive


This filter list is set to work with DVD-RB Pro and AviSynth 2.5.5, which other filters I've used work perfectly .. EG RemoveGrain v1.0 and a few others, just not this function for some strange reason

Thanks for any advice

Daodan
4th July 2006, 17:07
Why 2.5.5? Many things I use require 2.5.6. And you may want to try an older version of masktools 2 (the one ending with 26 for example). I remember I adapted some function to masktools 2 and it didn't work with a newer version than that (this may have something to do with my sripting skills though :P).

steptoe
4th July 2006, 17:17
Fixed !!

I thought I'd try installing AviSynth 2.5.6 as I remember I had that running previously, but saw 2.5.7, so gave that a try and it worked straight away

DVD-RB Pro has been tried and tested with 2.5.5, as everything you need comes in its own installer, but 2.5.6 has been shown to work as well and there are those using it with no problems though

Obviously a few filters I've had problems with in the past need at least 2.5.6 to work

I'll give it a go over a couple of encodes and see what happens, but at least now I know what the problem was


Something simple as I thought

Kaze_no_Hime
21st August 2008, 00:41
I have the same problem. However, I'm currently using Avisynth 2.5.7, and it still doesn't working. Have tryed masktools v1.5.8, and masktools2 2a21, 26 and 30, as well as RemoveGrain 1.0pre/beta and 0.9 stable, also warpsharp(everyrhing that is mentioned here http://avisynth.org/mediawiki/LimitedSharpen)
But it still doesn't working. Can someone help me, please?

Adub
21st August 2008, 04:17
When you say "the same problem", what exactly is the error you are receiving?

Kaze_no_Hime
21st August 2008, 08:21
It says:
"Avisynth open failure:
Script error: there is no function named LimitedSharpenFaster"

The samy goes to LimitedSharpen only.
The command I'm using is: LimitedSharpenFaster()

Oh, and I have LimitedSupport_09Jan06B.dll as well.

steptoe
21st August 2008, 08:39
Try loading the filters and functions manually instead of relying on AviSynth to 'autoload' them.
Just change any .avsi at the end of the functions to .avs otherwise AviSynth will try
to autoload them

I'm using the filters via DVD-RB, but you could try the same as it worked for me. I do this for
all filters now, and it works every time


EG

LoadPlugin("L:\Video\AviSynth\PlugIns\removegrain.dll")
LoadPlugin("L:\Video\AviSynth\PlugIns\mt_masktools.dll")
LoadPlugin("L:\Video\AviSynth\PlugIns\warpsharp.dll")
LoadPlugin("L:\Video\AviSynth\PlugIns\repair.dll")
Import("L:\Video\AviSynth\PlugIns\LimitedSharpenFaster.avs")

LimitedSharpenFaster(Smode=4,strength=18,overshoot=0,wide=false,ss_x=1.3,ss_y=1.3)


I think thats all the filters it needs, so you'll have to check as I use this function with other functions or
filter chains

Make sure you change the location of the avisynth plugin folder to where you have it on your system

I also have functions now in their own folder, with each filter needed for that specific function also in that folder

Yes, it does mean duplicating filters but it also avoids having a huge plugin directory and problems with AviSynth
wanting to autoload a big directory of functions or filters and getting confused and also avoids any problems as
some filters or functions will only work with a specific version of that filter it uses

This also means when I'm trying to get a function to work I know what is wrong or what is missing to prevent
it from running

Kaze_no_Hime
21st August 2008, 11:54
Thanks a lot steptoe. I didn't know it has to import LimitetSharpenFaster.avs in the script.
Now it's working correctly! Thanks again!

Nikos
21st August 2008, 12:49
Rename the LimitedSharpenFaster.avs to LimitedSharpenFaster.avsi for autoloading and increase the strength. The default value is 100.

Kaze_no_Hime
21st August 2008, 13:35
Oh, now another problem:confused:
The filter doesn't do anything, even when I'm changing parameters very high and very low... The first time I loaded it[with that command: LimitedSharpenFaster(Smode=4,strength=18,overshoot=0,wide=false,ss_x=1.3,ss_y=1.3)]
it worked, but just for some seconds, and when I gone further in the preview window on VirtualDubMod, to see more scenes with that options and how they would looks like, the filter crashed. I mean it doesn't give me some error or anything, but the picture turned back as it was form the beginig(as if the filter has never been used), although the filter is loaded...
I tryed to load the script again, still nothing. Changed parameters -still nothing...

Here's the script I'm using:

DGDecode_mpeg2source("H:\for DVD\Demuxed\VideoFile.d2v")
orig = last
tfm(order=1, mode=5, PP=1, field=1, slow=2, mChroma=true, y0=0, y1=0, scthresh=12, micmatching=1, mmsco=true, hint=true, opt=4, cthresh=9, chroma=true, blockx=16, blocky=16, MI=64, metric=0, mthresh=5).Tdeint(mode=0, order=1, field=1, mthreshL=6, mthreshC=6, map=0, type=3, mtnmode=1, sharp=true, hints=true, full=false, clip2=orig, cthresh=7, blockx=16, blocky=16, chroma=false, MI=64, tryWeave=true, AP=32, APType=1, metric=0, slow=2, emtn=orig, opt=4)
saturation_v = 1.1
saturation_u = 1.6
cv = - (1-saturation_v)*256
cu = - (1-saturation_u)*256
ColorYUV(off_y=-25, gain_y=57, cont_u = cu, cont_v = cv, opt="coring")
Tweak(bright=0, cont=1, sat=1.1, hue=7, coring=false)
Loadplugin("H:\Filters\LimitetSharpenFaster\MT_07\MT.dll")
Loadplugin("C:\Program Files\AviSynth 2.5\plugins\warpsharp.dll")
Loadplugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools.dll")
Loadplugin("H:\Filters\LimitetSharpenFaster\masktools-v2.0a26\mt_masktools.dll")
Loadplugin("H:\Filters\LimitetSharpenFaster\RemoveGrain-1.0\RemoveGrain.dll")
Loadplugin("H:\Filters\LimitetSharpenFaster\RemoveGrain-1.0\Repair.dll")
Loadplugin("H:\Filters\LimitetSharpenFaster\RemoveGrain-1.0\RSharpen.dll")
Loadplugin("C:\Program Files\AviSynth 2.5\plugins\LimitedSupport_09Jan06B.dll")
Import(C:\Program Files\AviSynth 2.5\plugins\LimitetSharpenFaster.avs)
LimitedSharpenFaster(Smode=4,strength=18,overshoot=0,wide=false,ss_x=1.3,ss_y=1.3)

Is there some mistake I have made? Or maybe the filters before LimitedSharpenFaster are obstacle for it?

And I want to ask if someone who already managed to seccessfully run LimitedSharpenFaster, to write down the versions of his .dll files - mt_masktools, removegrain, repair, rsharpen etc.

Adub
21st August 2008, 16:59
First of all, you should always have your "LoadPlugin" lines at the very beginning of a script. You can leave LimitedSharpenFaster where it is. Also, through the "Import" line up at the top as well.

Second, why load MT? You never use it.

Third, I don't know what "LimitedSupport" is, but you don't need it.

Kaze_no_Hime
21st August 2008, 19:57
Everything's okay now. Thanks again.

Nikos
21st August 2008, 19:59
Remove the "LimitedSupport" you don't need it. It's a plugin from mg262. Has similar functions with masktools 2.x and maybe conflict with it.
Increase the strength to 150.