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 22nd December 2005, 18:50   #381  |  Link
Socio
Registered User
 
Join Date: May 2004
Posts: 288
I found a glitch in the new LS script on this line:

\ : Smode==2 ? sharpen(float(strengthH)/100.0,float(strengthV)/100.0)

I changed strengthH to just strength and it seems to work just great.

Didee to you recommend keeping the "strengthV" setting the same as the "strength" setting i.e

LimitedSharpen(ss_x=1.2,ss_y=1.2,Smode=2,strength=40,strengthV=40)
Socio is offline   Reply With Quote
Old 23rd December 2005, 14:01   #382  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,391
Ah, indeed. Thanks for spotting it, Socio. The previous link now points to a corrected version.

Unless specified otherwise, "strengthV" defaults to the setting for "strength", i.e. normal symmetrical sharpening. The scenarios for asymmetrical sharpening are those mentioned by Mug Funky: mostly for analog sources, perhaps for anamorphic sources, or perhaps when blowing non-anamorphic up to anamorphic. For VHS sources, Smode=0 with radius=1.5~3.0 and radiusV=~1.0 could be a good way ... except for if horizontal oversharpening is already present, but that's another story.


Then, in reverse chronological order:


@ Mug Funky:
You meant Smode=3, didn't you? Yes, this one could be made working asymmetric, too. But that indeed requires MaskTools 2.0 ... it could be done with 1.5.x also, but would be rather slow. Plus, for that Smode it would (will) most likely be horizontal-only and vertical-only sharpening. Producing a weightened version for that one is not trivial, and probably not worth the effort.


@ Chainmax:
Soothe will not be implanted into LimitedSharpen. Applying Soothe is easy enough, isn't it.
Something with integrated Soothing is in the works ... but it's not LimitedSharpen.


@ foxyshadis:
Thanks for the service.
Seems like I'll have to revise the documentation anyways, so let's wait for that.


@ Clouded:
To whom do you apologize - to me?? Wrong address, as I live in the glass house - making announcements, then let people wait 'til they're blue in the face ...
However, if some of the "support" filters could work on chroma too, it would help indeed. (Top ranking: the "difference" filters.)


@ Isochroma:
Fine if you like LimitedSharpen, but no way to accord me money for it.


***

Happy Xmas everyone - have a good time.

***
__________________
- 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 1st January 2006, 21:30   #383  |  Link
JarrettH
Registered User
 
Join Date: Aug 2004
Location: Canada
Posts: 860
Noob entering =p

I'm having some trouble with it. I know I set it up correctly, and results may vary based on signal quality, etc. When I view using GAM the image looks very pastel like, almost cartoonish at medium distance. Up close everything is COMPLETELY smoothed, at medium distance it's cartoonish looking like I said and very aliased as if I were viewing some low quality movie in full screen.

I'll post shots later, werk time =p
JarrettH is offline   Reply With Quote
Old 2nd January 2006, 06:29   #384  |  Link
JarrettH
Registered User
 
Join Date: Aug 2004
Location: Canada
Posts: 860
is resizing really necessary when i'm following the tv limited sharpen guide?
JarrettH is offline   Reply With Quote
Old 2nd January 2006, 13:09   #385  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,391
JarretH:
Please post the parameters you're calling LimitedSharpen with. Also before/after screenshots could help.

Posterization and aliasing is likely to happen with ultra-high values for "strength", or generally when "strength" is set too high for the chosen supersampling factor. If you're using no supersampling (ss_x=1.0 & ss_y=1.0), then aliasing will show up with much lower strength settings already. When no supersampling is used, Smode=4 might be better suited than the others, because of its non-linear response.
The "soft" parameter will help on all Smodes to prevent or reduce the introduction of aliasing and posterization.
__________________
- 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 2006, 19:11   #386  |  Link
JarrettH
Registered User
 
Join Date: Aug 2004
Location: Canada
Posts: 860
Hey Didee

Are you referring to this?

Quote:
Import("C:\Program Files\AviSynth 2.5\plugins\Soothe.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")

SetMTMode(2)
mergeluma( removegrain(4,-1), 0.75 )
dull = last
sharp = dull.LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=4,strength=100,soft=33)
mergeluma( removegrain(2,-1), 0.25 )

Soothe( sharp, dull, 20 )
I hope it's correct...I was just trying to follow some of the advanced options

Is there a way I can check if it's hyperthreading? I didn't see two processes using half/half cpu. I'm still tweaking what I like. Been doing some tests on foodtv

I could never figure out how to take captures with GAM.
JarrettH is offline   Reply With Quote
Old 2nd January 2006, 19:30   #387  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
Using a tool like process explorer (from sysinternals) you can check the cpu usage of each thread; there should be two threads that each take ~50%.
foxyshadis is offline   Reply With Quote
Old 2nd January 2006, 19:31   #388  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,391
Could be caused by RemoveGrain. Especially the first one (merge 75% of RG mode4) for my taste is too strong. Comment out both the lines with MergeLuma(RemoveGrain(..)..), and see if it looks better then.

Note: I had suggested those MergeLuma(Removegrain...) thingies to Socio for realtime processing because this works very fast. For "real" processing, I'd rather recommend SPresso. Takes somewhat more processing power, but it's more efficient, doing less harm.
__________________
- 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 2006, 20:57   #389  |  Link
JarrettH
Registered User
 
Join Date: Aug 2004
Location: Canada
Posts: 860
Quote:
Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen2.avs")

SetMTMode(2)
LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=50,overshoot=7)
I copied that from the tv guide. Is LimitedSharpen2.avs a typo? It should just be LimitedSharpen.avs right? I still don't see two processes anyway.
JarrettH is offline   Reply With Quote
Old 2nd January 2006, 21:13   #390  |  Link
JarrettH
Registered User
 
Join Date: Aug 2004
Location: Canada
Posts: 860
I think changing to smode=4 and setting the res to 640x480 solved it. For some reason the res setting was only available using a certain skin theme in GAM.
JarrettH is offline   Reply With Quote
Old 2nd January 2006, 23:09   #391  |  Link
Socio
Registered User
 
Join Date: May 2004
Posts: 288
Quote:
Originally Posted by JarrettH
I copied that from the tv guide. Is LimitedSharpen2.avs a typo? It should just be LimitedSharpen.avs right? I still don't see two processes anyway.
Yes Limitedsharpen2 is a typo, should be just LimitedSharpen.avs
Socio is offline   Reply With Quote
Old 3rd January 2006, 06:00   #392  |  Link
JarrettH
Registered User
 
Join Date: Aug 2004
Location: Canada
Posts: 860
I think I settled on this

Quote:
Import("C:\Program Files\AviSynth 2.5\plugins\Soothe.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")

SetMTMode(2)
mergeluma( removegrain(4,-1), 0.70 )
dull = last
sharp = dull.LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=4,strength=100,soft=33)
mergeluma( removegrain(2,-1), 0.25 )

Soothe( sharp, dull, 20 )
I have to play with pictures properties now. Are there any other methods I might use to increase television quality? I noticed the audio clipped every now and then and the picture isn't quite as fluid. It doesn't look like hyperthreading is functioning when I open the processes.
JarrettH is offline   Reply With Quote
Old 5th January 2006, 00:46   #393  |  Link
Neil Lee
Guest
 
Posts: n/a
Thank you Didée for the great idea of LimitedSharpen !
Since It might become a common tool like sharpen, resize etc..
(and it should) People are gonna use it very often. So instead of
scripting, what about writing a plugin just for speed's shake?
  Reply With Quote
Old 5th January 2006, 01:41   #394  |  Link
Backwoods
ReMember
 
Backwoods's Avatar
 
Join Date: Nov 2003
Posts: 416
Quote:
Originally Posted by Neil Lee
So instead of scripting, what about writing a plugin just because I think there would be a speed increase but we all know it doesn't
Fixed.
Backwoods is offline   Reply With Quote
Old 5th January 2006, 02:59   #395  |  Link
Neil Lee
Guest
 
Posts: n/a
Quote:
Originally Posted by Backwoods
Fixed.
You can try to be a smartASS, but don't forge other's quote
If you think my point is wrong, just say it with you own words.

It's one thing to be sarcastic, another to forge someone's post.

.

Last edited by Neil Lee; 5th January 2006 at 03:03.
  Reply With Quote
Old 5th January 2006, 03:09   #396  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
Clouded already did profiling a few pages back and used it to filterize the slowest and hardest hit luts; his half-and-half variation probably includes 80-90% of the speedup of moving to fully optimized C/asm. A good coder must pick one's battles.

However, I just noticed clouded forgot to modify his script to use MakeDiff/SubtractDiff, so you might give the edited version a whirl. (I'll add the latest mods whenever people think they're stable.) The affected lines are:
Code:
sharpdiff=MakeDiff(tmp,last)
sharpdiff2=mt_lutxy(sharpdiff,sharpdiff.removegrain(19,-1),
 \           "x 128 - abs y 128 - abs > y "+AMNT+" * x "+AMNT2+" * + 100 / x ?")

soft==0 ? last : SubtractDiff(tmp,sharpdiff2)
foxyshadis is offline   Reply With Quote
Old 5th January 2006, 06:39   #397  |  Link
Backwoods
ReMember
 
Backwoods's Avatar
 
Join Date: Nov 2003
Posts: 416
Quote:
Originally Posted by Neil Lee
You can try to be a smartASS, but don't forge other's quote
If you think my point is wrong, just say it with you own words.

It's one thing to be sarcastic, another to forge someone's post.

.
Hey buddy it was a joke. It was brought up before and in other threads where scripts are used. We're all video buddies here, no reason to fly off the handle.
Backwoods is offline   Reply With Quote
Old 5th January 2006, 07:08   #398  |  Link
JarrettH
Registered User
 
Join Date: Aug 2004
Location: Canada
Posts: 860
completely random, but I finally figured out how to frameserve with avisynth to vdub...hooray no more vfapi
JarrettH is offline   Reply With Quote
Old 6th January 2006, 02:06   #399  |  Link
Socio
Registered User
 
Join Date: May 2004
Posts: 288
Quote:
Originally Posted by foxyshadis
Clouded already did profiling a few pages back and used it to filterize the slowest and hardest hit luts; his half-and-half variation probably includes 80-90% of the speedup of moving to fully optimized C/asm. A good coder must pick one's battles.

However, I just noticed clouded forgot to modify his script to use MakeDiff/SubtractDiff, so you might give the edited version a whirl. (I'll add the latest mods whenever people think they're stable.) The affected lines are:
Code:
sharpdiff=MakeDiff(tmp,last)
sharpdiff2=mt_lutxy(sharpdiff,sharpdiff.removegrain(19,-1),
 \           "x 128 - abs y 128 - abs > y "+AMNT+" * x "+AMNT2+" * + 100 / x ?")

soft==0 ? last : SubtractDiff(tmp,sharpdiff2)
I tried the version at your link and I get an error " There is no function named MakeDiff " ?

Last edited by Socio; 6th January 2006 at 02:11.
Socio is offline   Reply With Quote
Old 6th January 2006, 04:34   #400  |  Link
psme
Registered User
 
Join Date: Mar 2005
Posts: 68
The MakeDiff version needs the latest support dll here:

http://people.pwf.cam.ac.uk/mg262/po...t_03Dec05B.dll

regards,

Li On
psme 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:28.


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