PDA

View Full Version : video oversharpened


towerblocks
13th December 2004, 04:01
Hi

I currently have a video that is oversharpened,Can anyone recommend some good avisynth filters to unsharpen the video.

Thanks.

Zarxrax
13th December 2004, 04:57
How about this: http://forum.doom9.org/showthread.php?s=&threadid=74003
Which was listed 3 posts below this topic :rolleyes:

towerblocks
13th December 2004, 08:54
Already tried it,But could'nt get it to work,When opened up in wmp,Came up with this error,Script error MaskedMerge does not have a named argument "useMMX".

Leak
13th December 2004, 10:45
Originally posted by towerblocks
Already tried it,But could'nt get it to work,When opened up in wmp,Came up with this error,Script error MaskedMerge does not have a named argument "useMMX".

Try scrolling down a few posts in that thread - you want this:

http://forum.doom9.org/showthread.php?s=&postid=579853#post579853

The version at the top is waaay old.

Didée
13th December 2004, 10:45
Then you only tried the (old) BlindDeHalo() function on the top of page 1, which syntax refers to a same old version of MaskTools.

Further down on that page, you'll find the new BlindDeHalo2() (http://forum.doom9.org/showthread.php?s=&postid=579853#post579853), wich works better, faster, and is compatible with the latest MaskTools.


edit: "Leak, BOfH" :devil: ;) ;)

towerblocks
13th December 2004, 13:39
Thanks guys got it working,But converting its averaging 7 hours per pass,Which i normaly do 3 pass,So that is gunna take far to long,Anymore faster plugins.

Bogalvator
13th December 2004, 14:03
Perhaps try Unfilter:
www.trbarry.com

Didée
13th December 2004, 14:35
Try the following:

bilinearresize(64,48).bilinearresize(last.width,last.height)

I *guarantee* you that *all* oversharpening will be *completely gone*. And it is pretty fast!

(Read: :rolleyes: ...)

towerblocks
13th December 2004, 15:01
Originally posted by Didée
Try the following:

bilinearresize(64,48).bilinearresize(last.width,last.height)

I *guarantee* you that *all* oversharpening will be *completely gone*. And it is pretty fast!

(Read: :rolleyes: ...)

yeah i try'ed that and it completly blurs the picture out.

Didée
13th December 2004, 15:16
Doesn't matter. You wanted to have it fast.

But seriously ... waitaminute ...

Didée
13th December 2004, 15:29
Try the following for an *approximation* of a general de-sharpen:
[...]
toosharp = last

radius = 3.0
strength = 50

ox=toosharp.width
oy=toosharp.height
fastunsharp=bilinearresize(ox/radius/4*4,oy/radius/4*4).bicubicresize(ox,oy,1.0,.0)
fastunsharp=yv12lutxy(o0,fastunsharp,yexpr="x "+string(100-strength)+" * y "+string(strength)+" * + 100 /",U=2,V=2)

fastunsharp
[...]
play with "radius" until it fits best. "Strength" should be kept in range 40~60 (can be seen as a "percentage" - 100 is the maximum, but o'course way too strong)

edit - forgot the radius, corrected.

Kagura
13th December 2004, 19:58
input = last
unfilter(-50,-50)
yv12lutXY(input, last, Yexpr = "y x < y x ?")


Faster? You bet. Better? Dunno.

ObiKenobi
13th December 2004, 23:59
You could also try using HQDering (http://mf.creations.nl/avs/functions/HQDering-v0.1.avs) which works good as well and is pretty fast.

Kagura
14th December 2004, 05:33
Fast hqdering is not. Strong hqdering is not. Aliases hqdering produces.

ObiKenobi
14th December 2004, 06:01
Originally posted by Kagura
Fast hqdering is not. Strong hqdering is not. Aliases hqdering produces.

I get around 7-10fps using HQDering in my scripts so it's fast enough for me. Also, I don't get any aliasing artifacts from it either but I don't set it too high. If your source has strong haloing HQDering will definitely not help you and for that you will need BlindDeHalo, or like me I use a combination of them both (HQDering eliminates some of the dark halos that BlindDeHalo may not totally get rid of).

Kagura
14th December 2004, 19:19
I was just referring to the speed of hqdering versus the snippet of code I pasted. Anyway, blinddehalo(1or2) generates those dark halos because it is blind and can't do a perfect job at reducing contrast around edges, nor can any dehaloer really. The "dark halos" just mark where the contrast reduction ended and how it failed to match the nearby pixels in luma values.

Now combining hqdering and blinddehalo(1or2) results in a huge speed drop.

BTW, the aliasing I was referring to is most visible on anime clips, arguably host to some of the worst haloing possible. Well, from my tests, blinddehalo works better on analog footage, where there are no hard lines to mark where haloing usually occurs. The unfilter snippet I posted seems to work better (with some mods) on anime.