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 20th September 2010, 17:49   #61  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Update 2010.09.20

v1.40:
added debugview (see show=true)



A screenshot of SmoothCurve(show=true):


*Click the image to enlarge*

LaTo is offline   Reply With Quote
Old 20th September 2010, 18:15   #62  |  Link
royia
Drazick
 
Join Date: May 2003
Location: Israel
Posts: 139
Does it have "Automatic Mode"?
Something with the effect of "Auto Levels" and Tone Mapping / DRC (Shadows / Highlights in Adobe Photoshop).

Thanks.
royia is offline   Reply With Quote
Old 20th September 2010, 18:25   #63  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Quote:
Originally Posted by royia View Post
Does it have "Automatic Mode"?
Something with the effect of "Auto Levels" and Tone Mapping / DRC (Shadows / Highlights in Adobe Photoshop).

Thanks.
No, but something like this is planned.
LaTo is offline   Reply With Quote
Old 20th September 2010, 18:58   #64  |  Link
royia
Drazick
 
Join Date: May 2003
Location: Israel
Posts: 139
Do you know which Algorithm Adobe uses in Shadows / Highlights?
Might it be a USM Filter with "Shadow / Highlights" masks?
royia is offline   Reply With Quote
Old 20th September 2010, 21:35   #65  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Looks like a great plugin! Would you be willing to release it as open source?
Wilbert is offline   Reply With Quote
Old 21st September 2010, 16:35   #66  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,531
Beautiful ! Many thanks.
Just as a hint, not as complaint:
I happen to have a frame interpolator inserted post Smooth...based on MVTools2.
If show=true and the resulting screen size is 1920x1200 (SmoothCurve & SmoothTweak)
this interpolator will stall somewhere (almost different line everytime) in its MFlowInter part with
Avisynth open failure: Evaluate: unrecognised exception !
1280x1024 (SmoothLevels) is displayed without hickups.

P.S. Was wondering about the difference and SmoothLevels showing version 1.02.
I still happened to have SmoothLevels 1.02.avsi in my plugins folder.
Now I deactivated the 1.02.avsi by renaming.
The call uses 1.40 now and the MFlowInter stall behaviour is the same now
as for the other two Smoothies.

Will try if screenW and screenH would respond as in LSFmod...no they don't.
So the size might be the culprit and it would be a good addition
to have the display size adjustable with show=true.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."

Last edited by Emulgator; 21st September 2010 at 21:39.
Emulgator is offline   Reply With Quote
Old 23rd September 2010, 20:34   #67  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Update 2010.09.24

v1.44:
added screenW & screenH for debugview
fixed a bug in font drawing
cleaned code
LaTo is offline   Reply With Quote
Old 23rd September 2010, 20:35   #68  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Quote:
Originally Posted by Emulgator View Post
Will try if screenW and screenH would respond as in LSFmod...no they don't.
So the size might be the culprit and it would be a good addition
to have the display size adjustable with show=true.
Done in v1.44!

Quote:
Originally Posted by Wilbert View Post
Looks like a great plugin! Would you be willing to release it as open source?
Maybe I don't know, but before I need to complete my todo-list
LaTo is offline   Reply With Quote
Old 23rd September 2010, 23:43   #69  |  Link
Usedocne
lurkster
 
Join Date: Jul 2009
Location: D9|D10
Posts: 123
SmoothAdjust is one of those filters that should be in everyone's plugin folder.

Nice job LaTo.
Usedocne is offline   Reply With Quote
Old 24th September 2010, 00:42   #70  |  Link
royia
Drazick
 
Join Date: May 2003
Location: Israel
Posts: 139
Quote:
Originally Posted by Usedocne View Post
SmoothAdjust is one of those filters that should be in everyone's plugin folder.

Nice job LaTo.
Once it has "Auto Levels" + DRC it will be.
royia is offline   Reply With Quote
Old 24th September 2010, 06:53   #71  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Quote:
Originally Posted by Usedocne View Post
SmoothAdjust is one of those filters that should be in everyone's plugin folder.

Nice job LaTo.
Thanks!


Quote:
Originally Posted by royia View Post
Once it has "Auto Levels" + DRC it will be.
AutoLevels/DRC is difficult to implement into the video domains, simply because you need a efficient algorithm for scene change handling and for uniform scaling between different frames.

If you're so good, do it yourself!
LaTo is offline   Reply With Quote
Old 24th September 2010, 11:02   #72  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,531
Quote:
Quote:
So the size might be the culprit and it would be a good addition
to have the display size adjustable with show=true.
Done in v1.44!
Many thanks, this fixes it !
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Old 24th September 2010, 12:42   #73  |  Link
royia
Drazick
 
Join Date: May 2003
Location: Israel
Posts: 139
Quote:
Originally Posted by LaTo View Post
Thanks!




AutoLevels/DRC is difficult to implement into the video domains, simply because you need a efficient algorithm for scene change handling and for uniform scaling between different frames.

If you're so good, do it yourself!
I didn't say I'm so good.
Just expressed what I think.

I have no knowledge in Programming.
If it helps, I can do it in Matlab.


I would Implement DRC using Bilateral Filter for each Frame. It works great on Still Frames.
Now, you have more knowledge in Video to make a limitation how will successive frames will be different.

You wrote some kind of DRC and Autolevels is planned. I just wrote once it's implemented this will be a must have Plug In for me.

Thank You.

Last edited by royia; 25th September 2010 at 09:49.
royia is offline   Reply With Quote
Old 25th September 2010, 08:44   #74  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Quote:
Originally Posted by royia View Post
I didn't say I'm so good.
Just expressed what I think.

I have no knowledge in Programming.
If it helps, I can do it in Matlab.


I would Implement DRC using Bilateral Filter for each filter. It works great on Still Frames.
Now, you have more knowledge in Video to make a limitation how will successive frames will be different.

You wrote some kind of DRC and Autolevels is planned. I just wrote once it's implemented this will be a must have Plug In for me.

Thank You.
Ok, sorry I misunderstood your previous post.

Bilateral filter is great for photo, but for video it's too slow.
I didn't get a better result than AutoLevels plugin at this time, as I haven't much free time these days this functionnality is a bit postponed.


Apart from this, this is comparison of SmoothLevels and Ylevels with a simple gamma's adjustment:

Source
SmoothLevels
Ylevels

LaTo is offline   Reply With Quote
Old 25th September 2010, 09:48   #75  |  Link
royia
Drazick
 
Join Date: May 2003
Location: Israel
Posts: 139
There are approximations for the Bilateral Filter which are very fast (O(1), others as fast as Gaussian Blur).
So it won't be slower than a decent Noise Reduction filter.
royia is offline   Reply With Quote
Old 26th September 2010, 20:19   #76  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Update 2010.09.26

v1.46:
tweaked smoothing code
removed useless Smode=1 & Smode=2
prepared support for YV16 & YV24 in Avisynth 2.6.x
switched from VS2008 to VS2010
LaTo is offline   Reply With Quote
Old 10th October 2010, 14:28   #77  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Update 2010.10.10

v1.52:
added SSE2 code (Smode=1 is 2x faster & Smode=2 is 3x faster)
added useopt parameter

LaTo is offline   Reply With Quote
Old 10th October 2010, 16:17   #78  |  Link
Usedocne
lurkster
 
Join Date: Jul 2009
Location: D9|D10
Posts: 123
Veeery nice. First nnedi3 gets a speed increase, now this. It's not Christmas yet, ya know.
Usedocne is offline   Reply With Quote
Old 11th October 2010, 16:59   #79  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Someone could test the x64 build? Are SmoothLevels/Curve/Tweak functional?
A speed-test would be useful too (with useopt=true and useopt=false).

LaTo is offline   Reply With Quote
Old 11th October 2010, 19:29   #80  |  Link
Usedocne
lurkster
 
Join Date: Jul 2009
Location: D9|D10
Posts: 123
Quick speed test of SmoothAdjust v1.52 (x86).

10000 frames (720x480i)

Smode=1
0m.59s useopt=true
1m.22s useopt=false

Smode=2
3m.42s useopt=true
9m.20s useopt=false

Code:
DGDecode_mpeg2source("D:\My Videos\VOB\TEST\TEST.d2v")
SmoothLevels(Smode=, useopt=, preset="pc2tv")
Trim(0, 9999)
Usedocne 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 17:32.


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