logo Sign In

limitedsharpen() with avisynth

Author
Time
hi i was wondering if any one could explain how to use this filter with avisynth to sharpen the video on my trilogy captures i have done my first dvd and it sounds great and looks good to it is just a little soft and i would like to sharpen the video a little bit.
thanks for any help
dark jedi
Author
Time
Open notepad, and type the following:
AviSource("c:\capture\filename.avi")
LimitedSharpen()
Save this text file with the extension AVS, i.e. filename.avs

If Avisynth is installed, you should be able to open this AVS file in VirtualDub, TMPGEnc, etc.

Obviously this is just a very simple example to get you started.

Guidelines for post content and general behaviour: read announcement here

Max. allowable image sizes in signatures: reminder here

Author
Time
Mother, correct me if I'm wrong, but I don't believe it's quite that simple to set up. LimitedSharpen() is not an internal AviSynth filter, so you have to load it somehow. Go to this site: http://forum.doom9.org/showthread.php?s=&threadid=84196&perpage=20&pagenumber=1 and paste the code from the 3rd post into a blank text file and save it with the extension .avsi and put it in Avisynth's plugin directory. You also need something called masktools for LimitedSharpen() to function, so download that and load it in your script like any other external plugin. THEN you can call the LimitedSharpen() function.
Author
Time
Originally posted by: fusionaddict
Punctuation is your friend.


LOL... this made me think of Speed Racer! Read the post, as written, while looking at this picture:

http://www.gonascargo.com/images/speed-racer.jpg
" hi i was wondering if any one could explain how to use this filter with avisynth to sharpen the video on my trilogy captures i have done my first dvd and it sounds great and looks good to it is just a little soft and i would like to sharpen the video a little bit.
thanks for any help"
Author
Time
Originally posted by: drjimmy526
Mother, correct me if I'm wrong, but I don't believe it's quite that simple to set up. LimitedSharpen() is not an internal AviSynth filter, so you have to load it somehow. Go to this site: http://forum.doom9.org/showthread.php?s=&threadid=84196&perpage=20&pagenumber=1 and paste the code from the 3rd post into a blank text file and save it with the extension .avsi and put it in Avisynth's plugin directory. You also need something called masktools for LimitedSharpen() to function, so download that and load it in your script like any other external plugin. THEN you can call the LimitedSharpen() function.
Yes, you're correct. I assumed he'd already saved the function as an avsi file, but I forgot that you needed masktools. Download it from here and place the dll in C:\Program Files\AviSynth 2.5\plugins.

Guidelines for post content and general behaviour: read announcement here

Max. allowable image sizes in signatures: reminder here

Author
Time
sorry guys for the run on sentence,well i have the .avsi file already in the avisynth plugins folder,and now i just dl'd masktools and put the file in the programs folder and copied the dll to the avisynth plugins folder like instructed.
what do i write in my script(and where do i put it once written?) just to sharpen my avi files from my star wars trilogy laserdiscs,like i said in another post they look ok and sound great but if i can sharpen them a bit i will be 100% happy.
this stuff is tricky,i can convert my ld's to dvd and author dvd's (somewhat)but cannot figure out this darn filter.
i assume that this will sharpen the image while i am triming it with virtualdub then saving the new avi file?(or am i all wrong?)
soon as i get this figured out i will share this stuff with you guys here the ld's i have are:
the very first star wars trilogy(fullscreen)first ones to come out i bought right away,dont look to good compared to the later ones
Faces star wars trilogy THX widescreen
star wars trilogy definitive collection
and the first release special collection star wars trilogy
well these are the sets i have,someone here recommended just downloading them but i really dont like bit torrent,it is really slow and it ALWAYS seems to hang at 50-75%
also i signed up at myspleen and on the first day i got a couple of torrent files now for some reason i cant login there anymore.(so thats my luck with torrents)
thanks for all the assistance guys

dark jedi
Author
Time
I personally dn't use limitedsharpen anymore. I've found using blinddehalo3 and unfilter delivers a nicer looking result and is less of a resource hog too.

don't get me wrong, it's good, but to make it time effective you need a bit of oomph behind it to make it work well. it does a lot of resizing and supersampling you see.

I generally got good results with this

LimitedSharpen(ss_x=1.5,ss_y=1.5,Smode=3,overshoot=3,special=true,strength=125)

more strength than that produced some nasty artifacting.

go to this threaddoom 9 forum limitedsharpen thread

and it spells out what you need as regards dll's

When a woman says yes, she means no - when she says maybe, she means no.

http://www.auky37.dsl.pipex.com/falconlogo_web.jpg
Author
Time
thanks guys for all the help,i have spent hours downloading everything you guys mentioned.here is my script please tell me what i am doing wrong cannot get it to work at all
Import("C:\Program Files\AviSynth2\plugins\limitedsharpen.avsi")
LoadPlugin("C:\Program Files\AviSynth2\plugins\MaskTools\MaskTools.dll")
LoadPlugin("C:\Program Files\AviSynth2\plugins\warpsharp.dll")
AviSource("c:\capture\Hunter\Hunter 1.avi")
LimitedSharpen()

hunter is my 4 year old son i converted from tape to put on dvd
also what is this blindehalo3? i cant find this anywhere i was going to check into this and see if it is easier for me.
maybe if someone would be so kind as to make a script for me just to sharpen my videos and maybe use a denoiser,and tell me where to put it,
i just signed up at doom9 to ask the author himself questions but i cannot post for 5 days(bummer)
thanks again
dark jedi
Author
Time
Originally posted by: dark_jedi
thanks guys for all the help,i have spent hours downloading everything you guys mentioned.here is my script please tell me what i am doing wrong cannot get it to work at all
Import("C:\Program Files\AviSynth2\plugins\limitedsharpen.avsi")
LoadPlugin("C:\Program Files\AviSynth2\plugins\MaskTools\MaskTools.dll")
LoadPlugin("C:\Program Files\AviSynth2\plugins\warpsharp.dll")
AviSource("c:\capture\Hunter\Hunter 1.avi")
LimitedSharpen()
What do you mean by "cannot get it to work at all"? Do you get an error message?

Did you install AviSynth 2.5? (The directory naming above implies you installed 2.0)

You don't need the first line; giving a script an avsi extension means that it is automatically imported.

Guidelines for post content and general behaviour: read announcement here

Max. allowable image sizes in signatures: reminder here

Author
Time
thanks moth3r for the help the zip file said it was version 2.55,i had 2.0 on first then downloaded 2.55 and installed,should i uninstall and start over?
and the error i get is:
import:couldnt open"c:\program files\avisynth2\plugins\limitedsharpen.avsi"
(c:\capture\hunter\movie.avs,line1)
i have seen some of the examples on doom9 website and this filter looks great,cant wait to get it working
thanks again for your help
dark jedi
Author
Time
ok moth3r you were right it was v2.0,well i just corrected it it is now v2.5.
still nogo so i changed the lines a little bit
Import("C:\Program Files\AviSynth 2.5\plugins\limitedsharpen.avsi")----------------------i took this one out per what you said(still no workie)
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools\MaskTools.dll")----------then i took this one out
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\warpsharp.dll")-----------------------and this one out(still no luck,now it says there is no function called limitedsharpen)
AviSource("c:\capture\Hunter\Hunter 1.avi")
LimitedSharpen()
let me know what you think and i will keep trying
thanks again
darkjedi
Author
Time
Try putting the function within your main avs file like this:
AviSource("c:\capture\Hunter\Hunter 1.avi")
LimitedSharpen()

# LimitedSharpen()
#
# A multi-purpose sharpener by Didée
#

function LimitedSharpen( clip clp,
\ float "ss_x", float "ss_y",
...
and so on...

Guidelines for post content and general behaviour: read announcement here

Max. allowable image sizes in signatures: reminder here

Author
Time
thank you very much for the help moth3r, i will try right now and get back to you.
dark jedi

well i just tried it and now i get this error:

AviSynth Open Failure:
MergeLuma:YUV data only(No RGB);Use ConvertToYUY2 or ConvertToYV12

so what do i do now? darn, i didnt think it would be this tricky just to clean up my video on my ld's
I put everything on hold untill i can sharpen the video.I will share this stuff if any one wants or maybe the bonus stuff on the ld's
i also have alot of the 80's cartoon sets and some of the newer stuff like Teen Titans ALL episodes.
dark jedi
Author
Time
ok moth3r i added this other line:
AviSource("c:\capture\Hunter\Hunter1.avi")
ConvertToYUY2()---------------------------------------------------added this,because of the above error is this right?
LimitedSharpen()


# LimitedSharpen()
#
# A multi-purpose sharpener by Didée
#

function LimitedSharpen
etc..............
now it plays in virtualdub but sound is choppy and it like skips but does look better,this is also an old vhs tape video camera that already had a bunch of crap already recorded on it,just trying to clean this up the best i can because this is the ONLY video footage of my 4 year old as a baby.
I assume the video and sound will be alot better on my LD project as opposed to this?
can you look this over see if this is right and what else should i add for the star wars laserdiscs to look as good as i can get them?

thanks for all your time and help
dark jedi
Author
Time
What format/codec are you using to capture? I use YUY2 and huffyuv compression.

It will be choppy on playback, because you've put a slow filter into the video chain. This filter is for encoding, not real-time playback.

A sharpening filter will sharpen the noise as well as the real detail. Therefore you should generally put a denoiser in front of the sharpener. There are many available for avisynth, I use a plugin called dust (PixieDust) but it is very, very slow (takes me 14 hours to do one encode pass on an Athlon XP 2700).

(BTW I notice you are using VirtualDub to trim the video - it may be more convenient to put a Trim command into your Avisynth script.)

Guidelines for post content and general behaviour: read announcement here

Max. allowable image sizes in signatures: reminder here

Author
Time
ok i have huffyuv 220 and dust(where does this dll file go?) but what settings should i add to the script?and should i capture with virtualdub instead of scenalyzer live?i had that huffyuv already installed but how do i know if i am using it or not with scenalyzer?
sorry for rambling but just trying to do everything you mention.
thanks again
dark jedi

hi again do i add this line before the sharpen line as is?
PixieDust([limit=5],[output="RGB/RGB32/RGB24/YUY2"])
Author
Time
I remember it was quite tricky getting dust to work, as it's a filter for Avisynth 2.0 which hasn't been updated for 2.5. I think I used the method described on this page.

Isn't scenalyzer more suited to DV capture? What capture device are you actually using? If it's something like a ADVC-100, then you won't be able to capture with huffyuv.
:: Edit - OK I just looked back at your previous posts, and you indeed using a DV capture device.

Keep in mind that what works for me isn't necessarily best for your situation.

If you get dust installed correctly, just insert a simple
PixieDust()
command before LimitedSharpen().

Guidelines for post content and general behaviour: read announcement here

Max. allowable image sizes in signatures: reminder here