Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd January 2005, 15:37   #21  |  Link
Socio
Registered User
 
Join Date: May 2004
Posts: 288
Well what ever pruned did it works well!

Soulhunter,

The hacked LimitedSharpen script works great!

I tried it out using Zoomplayer+ffdshow-avisynth in real time and got noticeable image improvement with only about an average 5% increase in CPU usage.

Here are some pic's ( I know not the exact same frame but you can get the idea):

Normal



LimitedSharpen @ LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40



LimitedSharpen2 @ LimitedSharpen2(ss_x=1.0,ss_y=1.0,Smode=4,strength=40,aSharpS=1)



LimitedSharpen @ aSharp(0.4,0,0.LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40



LimitedSharpen2 with hacked version of IIP


Last edited by Socio; 4th January 2005 at 16:20.
Socio is offline   Reply With Quote
Old 2nd January 2005, 16:47   #22  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Ok, I asked pruned for the exact changes...

- Chroma to luma warper

- Improved stability

- Improved precision

- Other small fixes


@ Leak

Seems he wont release the source!


Bye
__________________

Visit my IRC channel

Last edited by Soulhunter; 4th May 2006 at 03:04.
Soulhunter is offline   Reply With Quote
Old 2nd January 2005, 18:10   #23  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,391
Shall I calm down the hype a little?

Regarding usage within LimitedSharpen:
LimitedSharpen(strength=150) gives practically the same result than LimitedSharpen2(), except for some of the minor warping effects (obviously) - only that the original function runs 2%~3% faster, at least on the machine I tested it on (Celeron2600). Honestly, I see hardly an improvement.

Regarding the plain combo:
Generally, aSharp oversharps just like any other sharpener does. The genious trick here is that it's only used with such low settings that no visible oversharpening occurs with usual input. So it could have been any other sharpener as well, it's not like this was the "magic combo" ... except perhaps for some aSharp specific things like the block adaptive stuff - but I think those are disabled anyways with the suggested settings (are they? I don't know aSharp that good )
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)
Didée is offline   Reply With Quote
Old 2nd January 2005, 18:17   #24  |  Link
Socio
Registered User
 
Join Date: May 2004
Posts: 288
Problem;

After watching a DVD a bit using the new LimitedSharpen2 I noticed that some edges are askew and develop a life of their own. Vertical edges tend to have strange spiraling lines that move along those edges from bottom to top. Horizontal edges have jagged lines that move as well.

The lower I set "aSharpS=" the less predominant the anomalies become however this also reduces the aSharp sharpening enhancement to the point of a no gain for no anomalies.

I have no such problems with the Original LimitedSharpen so it must have something to do with either the new script or the dll's themselves.

Last edited by Socio; 2nd January 2005 at 18:20.
Socio is offline   Reply With Quote
Old 2nd January 2005, 18:29   #25  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
@ Socio

Do you get this effect also with the original combo?

Code:
aSharp(0.5,0,0).aWarpsharp(3,1,bm=3,cm=0,thresh=0.99)

Bye
__________________

Visit my IRC channel

Last edited by Soulhunter; 4th May 2006 at 03:07.
Soulhunter is offline   Reply With Quote
Old 2nd January 2005, 19:14   #26  |  Link
Socio
Registered User
 
Join Date: May 2004
Posts: 288
Here is a pic of the strange edges (they move or are animated during playback) I get using LimitedSharpen2, the image has been re-sized to easier to see the anomalies. (just look at the back of the chair)

Normal



LimitedSharpen2


Last edited by Socio; 2nd January 2005 at 23:36.
Socio is offline   Reply With Quote
Old 2nd January 2005, 19:56   #27  |  Link
Socio
Registered User
 
Join Date: May 2004
Posts: 288
Quote:
Originally posted by Soulhunter
@ Socio

Do you get this effect also with the original combo ???
Code:
aSharp(0.5,0,0).aWarpsharp(3,1,bm=3,cm=0,thresh=0.99)
Maybe its possible to replace aSharp with something else (maybe even with LS) !?!


Bye
I have not tried just the combo yet but have found just the opposite of replacing aSharp with LS. I tried using the new aSharp before LS and get excellent results no anomalies, looks like this;

aSharp(0.4,0,0)
LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40


If I tried the same thing with aWarpsharp and I get the edge anomalies so it appears it is aWarpsharp that is causing my problems not aSharp. So perhaps pruned needs to turn something down a bit in that aWarpsharp.dll.

I am going to post a fourth pick with the above settings in my previous post with the other three pic's
Socio is offline   Reply With Quote
Old 2nd January 2005, 21:17   #28  |  Link
Leak
ffdshow/AviSynth wrangler
 
Leak's Avatar
 
Join Date: Feb 2003
Location: Austria
Posts: 2,441
Quote:
Originally posted by Soulhunter
@ Leak

Seems he wont release the source !!!
Well, I at least had to try...

np: Gescom - Megamix (ISS:SA)
Leak is offline   Reply With Quote
Old 2nd January 2005, 21:30   #29  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Quote:
Originally posted by Socio

If I tried the same thing with aWarpsharp and I get the edge anomalies so it appears it is aWarpsharp that is causing my problems not aSharp.
Have you used aWarpSharp before or after LimitedSharpen?

And, are this artefacts already in the source?

Maybe aWarpSharp just amplified them...


Bye
__________________

Visit my IRC channel

Last edited by Soulhunter; 4th May 2006 at 03:08.
Soulhunter is offline   Reply With Quote
Old 2nd January 2005, 22:38   #30  |  Link
Socio
Registered User
 
Join Date: May 2004
Posts: 288
Quote:
Originally posted by Soulhunter
Have you used aWarpSharp before or after LimitedSharpen ???

Both

And, are this artefacts already in the source ???

No

Maybe aWarpSharp just amplified them...

No, it is for sure the aWarpSharp.dll though;

I tried the combo with the same results I will mess with the settings some more maybe turn them down some to see if it effects it.

Bye
Socio is offline   Reply With Quote
Old 2nd January 2005, 23:14   #31  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
@ Socio

Could you maybe post the source frame of the pic above?


Bye
__________________

Visit my IRC channel

Last edited by Soulhunter; 4th May 2006 at 03:08.
Soulhunter is offline   Reply With Quote
Old 2nd January 2005, 23:37   #32  |  Link
Socio
Registered User
 
Join Date: May 2004
Posts: 288
Quote:
Originally posted by Soulhunter
@ Socio

Could you maybe post the source frame of the pic above ???


Bye
Done, I put it in the post with the other pic for easier comparison.
Socio is offline   Reply With Quote
Old 3rd January 2005, 03:36   #33  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Quote:
Originally posted by Socio

Done, I put it in the post with the other pic for easier comparison.
Hmm, for some reason Im not able to reproduce your result...

Here is the source frame + Limitedsharpen2(ss_x=1,ss_y=1,aSharpS=2)


Bye
__________________

Visit my IRC channel

Last edited by Soulhunter; 4th May 2006 at 03:08.
Soulhunter is offline   Reply With Quote
Old 3rd January 2005, 15:57   #34  |  Link
Socio
Registered User
 
Join Date: May 2004
Posts: 288
Wow!
Your pic looks real good, yet when I try the exact same settings I get the bad edges I even get them using aWarpsharp by it self.

Obviously something is interfering with aWarpsharp do not know if it is my video drivers, perhaps another dll in my plugin folder is causing a conflict I will have to do some more investigating.

Thanks
Socio is offline   Reply With Quote
Old 3rd January 2005, 22:33   #35  |  Link
Socio
Registered User
 
Join Date: May 2004
Posts: 288
I figured it out;

I changed the thresh to 0.5 and BM to 2 and no more edges problems. I edited the Limitedsharpen2 script to refelect those changes and it works great.
Socio is offline   Reply With Quote
Old 4th January 2005, 16:26   #36  |  Link
Socio
Registered User
 
Join Date: May 2004
Posts: 288
I added another Yoda pic using LimitedSharpen2 and my hacked version of IIP\LimitedSharpen combo which I removed the LimitedSharpen part.
Socio is offline   Reply With Quote
Old 4th January 2005, 17:09   #37  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,391
hack!hack!hack!hack!

Quote:
Originally posted by Socio
my hacked version of IIP\LimitedSharpen combo which I removed the LimitedSharpen part.
Well, congratulations for "hacking" the script, where you simply could have called iiP with "Xstren=0" ...

(In future, I will make all my scripts sans parameters, and say "if you wanna adjust anything, please hack the script yourself." - Fine with me: that's less work. *much* less ...)

BTW, your latest picture reminds me a little of LS-EX, which (hopefully) should run faster than iiP, once it's fully finished. Currently, both are roughly on par.
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)
Didée is offline   Reply With Quote
Old 4th January 2005, 18:04   #38  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Added a parameter to change aWarpSharp's treshold... ^^


Bye
__________________

Visit my IRC channel

Last edited by Soulhunter; 4th May 2006 at 03:09.
Soulhunter is offline   Reply With Quote
Old 4th January 2005, 23:33   #39  |  Link
Socio
Registered User
 
Join Date: May 2004
Posts: 288
Re: hack!hack!hack!hack!

Quote:
Originally posted by Didée
Well, congratulations for "hacking" the script, where you simply could have called iiP with "Xstren=0" ...
I spent half a day doing trial and error trying to remove LimitedSharpen from IIP and all I had to do was change one parameter to 0 to turn it off. Talk about not seeing the forest for the trees!

Last edited by Socio; 5th January 2005 at 00:01.
Socio is offline   Reply With Quote
Old 5th January 2005, 08:59   #40  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,391
Hah, I found an even faster method than this aSharp().aWarpsharp() combo !!!

Try the following:

sharpen(0.2)

W00T!

***

But seriously. A method to *really* do a minimal version of LS was pointed out by kassandro, uses his RemoveGrain filter set, and was named ModerateSharpen():
Code:
#  a function by kassandro.
# (just made "repmode" a parameter / Didée)

function ModerateSharpen(clip input, float amount, int "repmode")
{
	repmode = default(repmode,1)
	sharpened = Sharpen(input, amount)
	return Repair(sharpened, input, mode=repmode)
}
This one should run above realtime without any problems. Practicable "repmode"s are 1 & 2. Maximal "amount" is 1.0, but one should use less, because of the aliasing problem.
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)

Last edited by Didée; 5th January 2005 at 09:07.
Didée is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:26.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.