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 12th October 2012, 11:37   #1  |  Link
THX-UltraII
Registered User
 
Join Date: Aug 2008
Location: the Netherlands
Posts: 850
Good sharpening method for Blu-Ray content

I m looking for something similar like the Darbee Darblet. Is that possible with some kind of sharpening filter/tool an a fast HTPC? I ve heard someone talk about Didee Finesharp but cannot find anything about this. Is this the one I m after or are there any others/better?

My setup:
MPC-HC/LAV Filters/madVR/SVP Frame Interpolation
W7x64
GTX460 with latest NVIDIA driver
Intel i7 2600K, 4gb mem.
THX-UltraII is offline   Reply With Quote
Old 12th October 2012, 11:48   #2  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,106
FineSharp is located here.
Reel.Deel is offline   Reply With Quote
Old 12th October 2012, 12:35   #3  |  Link
THX-UltraII
Registered User
 
Join Date: Aug 2008
Location: the Netherlands
Posts: 850
thanks. I ll post other questions in your official FineSharp thread.
THX-UltraII is offline   Reply With Quote
Old 12th October 2012, 12:46   #4  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,390
Seems that is not quite comparable. FineSharp, as the name somehow suggets, deals mostly with enhancement of fine structures and edges. Darbee seems to implement something like a wide-range Unsharp-Mask with halo protection.
__________________
- 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 12th October 2012, 13:08   #5  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,390
A year or some other back, I fiddled with a multi-scale sampled, (quasi-) median enhancer. Those results were more or less similar to what Darbee is achieving.

A (pretty naive and pretty slow) version is to simply use a wide-range median filter for sharpening.

Code:
# medianblur.dll
# repairSSE2.dll
# mt_masktools-25.dll

imagesource("D:\darbee_6_0_test.png").converttoyv12()

a = last
b = a.medianblur(12,8,8)
c = a.repair(a.repair(a.repair(a.repair(a.repair(a.repair(a.repair(a.repair(b,1),1),1),1),1),1),1),1)
d = mt_lutxy(a,c,"x x y - abs 1.62 2 ^ / 1 1.62 / ^ 1.62 3 ^ * x y - x y - abs 1.62 + / * +",U=3,V=3)

interleave(a,d)

return(last)

==>

(Open in tabs to flip back-n-forth.)
__________________
- 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 12th October 2012, 13:29   #6  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,923
Looks pretty darn good to me! New thread?
Guest is offline   Reply With Quote
Old 12th October 2012, 14:21   #7  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,390
Not yet. This is only a torchlight, in practice things shouldn't be done that simple. A particular problem is chroma handling, which must be done different. It would be needed to isolate a saturation layer, and work on that. When done directly like in this little script, nasty things will happen. Against a green background, a grey line will turn into purple, and such.
And for big framesizes like full-HD, a multiscale version is pretty much recommended. Doing a big-range median on full-HD is anything but funny, speed-wise.
__________________
- 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 12th October 2012, 23:05   #8  |  Link
Overdrive80
Anime addict
 
Overdrive80's Avatar
 
Join Date: Feb 2009
Location: Spain
Posts: 646
Wow, the result is impressive.
__________________
Intel i7-6700K + Noctua NH-D15 + Z170A XPower G. Titanium + Kingston HyperX Savage DDR4 2x8GB + Nvidia GTX750 2GB DDR5 + SSD Vertex 4 256 GB + Antec EDG750 80 Plus Gold Mod + Corsair 780T Graphite
Overdrive80 is offline   Reply With Quote
Old 13th October 2012, 08:23   #9  |  Link
jinkazuya
Registered User
 
Join Date: Jul 2010
Posts: 89
Cool thread...Can't wait for you experts to release some awesome filters for sharpening.
jinkazuya is offline   Reply With Quote
Old 30th October 2012, 12:29   #10  |  Link
THX-UltraII
Registered User
 
Join Date: Aug 2008
Location: the Netherlands
Posts: 850
Didee, you have some screenshots maybe that show what Finesharp does to HD content?
THX-UltraII is offline   Reply With Quote
Old 30th October 2012, 12:51   #11  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,390
A case example was posted here:
http://forum.doom9.org/showthread.php?p=1568963#post1568963
__________________
- 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 30th October 2012, 13:55   #12  |  Link
THX-UltraII
Registered User
 
Join Date: Aug 2008
Location: the Netherlands
Posts: 850
The result looks subtle with no artifacts I can detect. The Darbee Darblet is way more aggresive but a lot of people praise the Darblet for the negative side effects which the Darblet does not seem to have.

Could you help me on my way how to make your script work? I use MPC-HC with madVR renderer and LAV audio and LAV video filter.
THX-UltraII is offline   Reply With Quote
Old 31st October 2012, 07:30   #13  |  Link
fvisagie
Registered User
 
Join Date: Aug 2008
Location: Isle of Man
Posts: 588
Quote:
Originally Posted by Didée View Post
Code:
...
a.repair(a.repair(a.repair(a.repair(a.repair(a.repair(a.repair(a.repair(b,1),1),1),1),1),1),1),1)
...
In case you're still pursuing this, it seems that repair mode 1 tends to introduce border artifacts. This is often visible at normal 100% video size, but can be seen clearly when zooming in the borders. Repair modes 4, 7-9, 13, 14 & 16-18 seem to behave better in this respect.

Kind regards,
Francois
fvisagie is offline   Reply With Quote
Old 31st October 2012, 09:19   #14  |  Link
THX-UltraII
Registered User
 
Join Date: Aug 2008
Location: the Netherlands
Posts: 850
can someone please please help me on my way with a step-by-step guide how to make this script work?

using mpc-hc with madVR renderer and lav audio and video filters.
THX-UltraII is offline   Reply With Quote
Old 31st October 2012, 09:35   #15  |  Link
fvisagie
Registered User
 
Join Date: Aug 2008
Location: Isle of Man
Posts: 588
Quote:
Originally Posted by THX-UltraII View Post
can someone please please help me on my way with a step-by-step guide how to make this script work?

using mpc-hc with madVR renderer and lav audio and video filters.
If you're familiar with Avisynth this script should present no challenge, even I managed! If you're new to Avisynth, there's very little you need to know and it's covered here:

http://avisynth.org/mediawiki/Main_P...h_-_start_here

Enjoy!
fvisagie is offline   Reply With Quote
Old 31st October 2012, 09:59   #16  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,390
Quote:
Originally Posted by fvisagie View Post
it seems that repair mode 1 tends to introduce border artifacts.
...
Repair modes 4, 7-9, 13, 14 & 16-18 seem to behave better in this respect.
Do you have an example where the script produces obvious edge artifacts from repair mode 1? I know that mode 1 can be a bit harsh to edges sometimes, but there are resons why to use it for a proof-of-concept implementation. The "repair(repair(..." chain is used for topological reconstruction. And only mode=1 can do it completely. The point is that a median filter will cut (or "round") the corners of objects, which in this context is an unwanted sideffect. The intention is to remove "small" detail (in respect to the median radius, which is relatively large here), but to NOT cut/round the corners of big continuous areas. Else, you get "glowing corners" on things like squares, fingertips, whatever, and it gets worse the thinner the removed strands are.

Synthetic testcase:



different color combination:


In this example, the correct thing to do is: to do *nothing*. This is achieved only by mode=1, because only this mode can "extend" areas using the full neighborhood. All other modes fail.
__________________
- 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 31st October 2012, 10:02   #17  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,390
@THX_UltraII

Which script are you talking about in fact? About "FineSharp", or about the script posted in this very thread here?

Those are two completely different beasts ...
__________________
- 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 31st October 2012, 11:15   #18  |  Link
THX-UltraII
Registered User
 
Join Date: Aug 2008
Location: the Netherlands
Posts: 850
Quote:
Originally Posted by Didée View Post
@THX_UltraII

Which script are you talking about in fact? About "FineSharp", or about the script posted in this very thread here?

Those are two completely different beasts ...
Dont know if you can advise me which script to use but want a script that makes 1080P Blu-Ray content sharper without visible artifacts from seating distance.

CPU/GPU is no problem here (I7 2600K oced@5Ghz + GTX460 oced)
THX-UltraII is offline   Reply With Quote
Old 31st October 2012, 11:46   #19  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,390
Quote:
Originally Posted by THX-UltraII View Post
CPU/GPU is no problem here (I7 2600K oced@5Ghz + GTX460 oced)
It wouldn't be difficult to produce a small script for which your CPU is 10-times or 20-times too slow to process it in realtime.
__________________
- 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 31st October 2012, 12:27   #20  |  Link
THX-UltraII
Registered User
 
Join Date: Aug 2008
Location: the Netherlands
Posts: 850
Quote:
Originally Posted by Didée View Post
It wouldn't be difficult to produce a small script for which your CPU is 10-times or 20-times too slow to process it in realtime.

Come on Didee, serious now
THX-UltraII 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 06:49.


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