Log in

View Full Version : SoftSharpen 8.2 - avisynth script


Pages : 1 [2]

leon1789
27th October 2009, 11:35
hello,
thanks for your comments.

Honestly I don't understand what your are trying to do...

...I'm trying to improve my script.

1. You compare your script which denoise+sharpen to LSFmod which only sharpen... It's not the same goal!

(...without speaking about the detection of movement in SS, etc.)


2. You are trying to make your scripts as close as LSFmod... So 2 filters with the same result, what's the interest?

False, sorry, I'm not trying that (and the result is not the same, fortunately...)


4. Look at the screenshot 2: less detail at alien's face,

Yes, that is very visible: alien's face and button in the foreground are better with LSFmod.


screenshot 3: more halos on the tree and less detail on the rouf, etc...

Yes, "little" halos, but I don't see for the rouf.


Where is the improvement?

Where do I have say SS is improving LSFMod ?

LaTo
28th October 2009, 13:36
(...without speaking about the detection of movement in SS, etc.)

Which is more or less the same goal as soothe/keep but slower...

In MCTemporalDenoise I have already used your approach but vectors were already calculated for others tasks...


Where do I have say SS is improving LSFMod ?
I haven't say this... But, your army of screenshots on LSFmod's thread suggest that it is the case :rolleyes:

Didée
28th October 2009, 14:33
> Which is more or less the same goal as soothe/keep but slower...

More or less, but not quite. Soothe/keep will achieve static-only sharpening, but it will not achieve motion-only blurring. For that, Soothe's operation needs to be inverted: blur the source, get the difference, then restore the temporal common of it.

This way is as easy as the current Soothe() is ... for me, the reason I never mentioned it is that I considered it a too primitive operation.
Moreover, Kassandro already has been there many years ago, with TemporalRepair(), part of the RemoveGrain package.

We're talking about an old hat ...

LaTo
28th October 2009, 20:57
> Which is more or less the same goal as soothe/keep but slower...

More or less, but not quite. Soothe/keep will achieve static-only sharpening, but it will not achieve motion-only blurring. For that, Soothe's operation needs to be inverted: blur the source, get the difference, then restore the temporal common of it.

Yes, naturally.


This way is as easy as the current Soothe() is ... for me, the reason I never mentioned it is that I considered it a too primitive operation.
Moreover, Kassandro already has been there many years ago, with TemporalRepair(), part of the RemoveGrain package.

We're talking about an old hat ...
Sure, but using MVTools only to build a motion mask... I think that is a bit *too much* in this context :)

adrianmak
1st November 2009, 14:55
I got scripting error. there is no function named "MSuper"

which supporting filters provide this function ?

XhmikosR
1st November 2009, 14:58
MVTools v2 (http://avisynth.org.ru/mvtools/mvtools2.html).

Gargalash
15th December 2009, 20:35
Hello leon,
I've found your script to be interesting since the beginning but I just tried it for the first time a moment ago.

I've hit an "error". What I get, unless I use show=true, is what could be described as the green channel of the image. I've looked for this error in the discussion but didn't find anything. Any clue? Thanks!

Gargalash
17th December 2009, 20:59
I tried again on another computer with a lossless avi clip and a dvd source (.d2v from vobs). This time I get a completely green image, expect for 2 top and bottom 2px rows.

Here is my script:
SetMemoryMax(1024)
LoadPlugin("C:\Program Files\AviSynth 2.57\plugins\QTSource.dll")
Import("C:\Program Files\AviSynth 2.57\plugins\Mondegraineux.avs")
LoadPlugin("C:\Program Files\AviSynth 2.57\plugins\MT.dll")
Import("C:\Program Files\AviSynth 2.57\plugins\Antialiasing.avs")
LoadPlugin("C:\Program Files\AviSynth 2.57\plugins\SangNom.dll")
LoadPlugin("C:\Program Files\AviSynth 2.57\plugins\MaskTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.57\plugins\gradfun2db.dll")
LoadPlugin("C:\Program Files\AviSynth 2.57\plugins\RemoveGrain.dll")
LoadCPlugin("C:\Program Files\AviSynth 2.57\plugins\yadif.dll")
Import("C:\Program Files\AviSynth 2.57\plugins\DeHaloAlpha.avsi")
Import("C:\Program Files\AviSynth 2.57\plugins\SoftSharpen.avsi")
LoadPlugin("C:\Program Files\AviSynth 2.57\plugins\mvtools2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.57\plugins\asharp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.57\plugins\MSharpen.dll")
LoadPlugin("C:\Program Files\AviSynth 2.57\plugins\Deen.dll")

SetMTMode(2, 2)


AVISource("video.avi")


Yadif(mode=0, order=0)


SoftSharpen()
And here is an image http://img130.imageshack.us/img130/7596/greenxv.jpg

Thanks for your help!

leon1789
21st December 2009, 20:19
Hello Gargalash,

it is difficult to help you without more details.
Are you using the latest version of softsharpen ? I think so.
Can you post a very little video in order to try to see the bug ?

Didée
21st December 2009, 21:48
If I may poke in the blue ...

Perhaps there is a bug in the script when old MaskTools V1.x are used?
And/or: perhaps Gargalesh is using some funky version of MaskTools v1.x ...
And/or: perhaps old MaskTools are not compatible with SetMTMode(). (<- quite likely!)


Suggestion: do not use "masktools.dll" at all. Get MaskTools v2.0 (http://manao4.free.fr/masktools-v2.0a36.zip), and use "mt_masktools-25.dll"

Also, try upgrading from Avisynth 2.5.7 to the actual version, Avisynth v2.5.8.

leon1789
22nd December 2009, 08:26
Oh yes, good suggestion from Didée! :)

Gargalash
28th December 2009, 19:49
Thanks for coming back on this!

I just got back from vacation, I will apply your suggestion asap and get back to you with the results.

leon1789
29th December 2009, 20:47
okey :)

Gargalash
4th January 2010, 19:51
Hello all,
Happy new year!

I checked things and solved my problem by downloading mt_mvtools2.dll.

Next step: test it and play with the presets and settings :) Thanks for helping out Didée and thanks for writing this leon1789

leon1789
4th January 2010, 23:03
Hello.
Thank you for any feedback of your tests :)

Gargalash
8th January 2010, 20:57
leon1789,
I have a big lack of knowledge in masking and the way you define your area for denoising, bluring and sharpening.

I was wondering, would it be possible to modify the script so that it's using SSSharpen to sharpen? This sharpener is ridiculously slow, but it has been doing wonders for me. I'm wondering if applying it to a certain area could speed it up and help me get a better sharpening.

On another note, I have used you script to denoise and blur clips in an attempt to improve compression (I have not made exhaustive tests yet). What I do is downsize the clip to an iphone revelant size and use a simple Sharpen(0.3) in my script. Then I use SoftSharpen() last in my script and kill the sharpening, this way it denoises mildly, blurs the moving areas and leaves the rest intact. I think it can help for portable .mp4 with target VBR. I noticed it removes some sharpening "noise" from Sharpen().

All my thinking is not based on maths or science, I just use what I know and make logical deductions from it. Any comments on this procedure would be greatly appreciated.

Thanks again for your useful script!

leon1789
11th January 2010, 08:00
Gargalash,

If you want just use SoftSharpen to sharpen, you can try
softsharpen(preset="light",denois=0,denoisT=0,blur=0,derin=0,sharp=20.1)
Of course, sharp=20.1 is an example.
To look some constants, try
softsharpen(preset="light",denois=0,denoisT=0,blur=0,derin=0,sharp=20.1,verbose=true)

Gargalash
12th January 2010, 17:05
Could I be able to modify the script so that the sharpener used is SSSharp() instead of MSharpen?

leon1789
12th January 2010, 19:56
Could I be able to modify the script so that the sharpener used is SSSharp() instead of MSharpen?

Two sharpeners are used in Softsharpen: MSharpen and ASharp.
And unfortunately, I don't know the characteristics of SSSharp...

Gargalash
13th January 2010, 17:02
I understand, thanks for checking.

leon1789
29th January 2010, 21:20
version 7.8

new option Line (integer between 0 and 255) increases dark in lines. Useful especialy for anim.
By default, Line=0 (no process)

leon1789
22nd February 2010, 09:03
imageSource("4src.png")
sharpen(0.5)


...give me same sharpening result, WITHOUT banding.


hello

without banding ! Not easy at all, and the result is "unextraordinary"...

sharpen(0.5) http://img411.imageshack.us/img411/8852/image1yv.png
softsharpen(preset="light",sharp=18.60,deban=2) http://img220.imageshack.us/img220/2354/image2zw.png
softsharpen(preset="light",sharp=18.60,deban=3) http://img191.imageshack.us/img191/5594/image3yj.png

MatLz
22nd February 2010, 12:23
I remember that!
My apologizes: I forgot to convert to yv12 at the end!...so, same results with same banding...:D
Sorry again...

LaTo
22nd February 2010, 12:37
softsharpen(preset="light",sharp=18.60,deban=2)
softsharpen(preset="light",sharp=18.60,deban=3)

I hope this isn't the threshold of GF2db... :eek:

Didée
22nd February 2010, 12:56
@ LaTo: sure, it is. :)


@MatLz & leon
In case of doubt, (i.e. when banding is in the source already), just type

Sharpen(0.5).GradFun2dbMod(2.0)

I mean, there really is no esoteric magic in SoftSharpen to reduce banding. It's just that, Gradfun2db.

MatLz
22nd February 2010, 13:10
I hope this isn't the threshold of GF2db... :eek:

For special effects that is possible!:D
Seriously I use it in the range 1.001 - 2. Never more never less for a 'regular' using.

@Didée
There is no doubt, my output was rgb...so there was no banding...

leon1789
22nd February 2010, 19:06
so, same results with same banding...:D
That's true.


I mean, there really is no esoteric magic in SoftSharpen to reduce banding. It's just that, Gradfun2db.
Yes, that's it, of course :)

Seriously I use it in the range 1.001 - 2. Never more never less for a 'regular' using.
I'm agree with you.


There is no doubt, my output was rgb...so there was no banding...
Can you show your script to produce the output without banding, please ?

MatLz
24th February 2010, 15:10
Can you show your script to produce the output without banding, please ?I already posted it:imagesource("src.png")
sharpen(0.5)I forgot to convert in yv12 like your two functions do.

leon1789
24th February 2010, 20:21
thanks :)

I already posted it:imagesource("src.png")
sharpen(0.5)

With this, I see a picture with banding too.

I forgot to convert in yv12 like your two functions do.
Yes, yv12 increases the banding effect, that's true.

real.finder
9th March 2026, 04:12
the link in op is dead so here The Wayback Machine link https://web.archive.org/web/20151009104651/http://leon1789.perso.sfr.fr/avisynth/SoftSharpen-8.8.zip

or you can use my backup (not update yet) https://github.com/realfinder/UniversalPluginsFolders/raw/refs/heads/master/plugins/SoftSharpen.avsi and https://github.com/realfinder/UniversalPluginsFolders/raw/refs/heads/master/plugins/SoftSharpen.txt and the SoftSharpen command Generater https://htmlpreview.github.io/?https://github.com/realfinder/UniversalPluginsFolders/blob/master/plugins/SoftSharpen%20user%20manual/SoftSharpen.html (In French)