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 November 2017, 09:49   #1  |  Link
silverwing
Registered User
 
Join Date: Nov 2017
Location: Russia, Nizhny Novgorod
Posts: 8
Is there a WYSIWYG tool for a SmoothCurve?

Hi, All!
There is such an avisynth-plugin for adjusting YUV color space - SmoothCurve,
part of SmoothAdjust plug-in written by LaTo.
I tried using the YUV Curve tool (Edius, see screenshot),
I set the control points, then I transfer them in the form of coordinates in SmoothCurve.
But this is not very convenient, because YUV Curve by Edius does not allow fine-tuning
to correct the spoiled color (for example, the daytime sky has a purple hue,
but not grayish or bluish) - too small a scale for adjusting Y, U, V channels.
Is there a convenient WYSIWYG tool for SmoothCurve in nature?
Thank you for attention.
(Sorry for my bad English)

Last edited by silverwing; 22nd November 2017 at 12:33. Reason: Too large screenshot
silverwing is offline   Reply With Quote
Old 22nd November 2017, 10:01   #2  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,161
No idea about Smoothcurve, LaTo sources are closed and so not easy to create any kind of grapher.

Perhaps of use:-
https://forum.doom9.org/showthread.p...ight=Coloryuv2





https://forum.doom9.org/showthread.p...light=rgbadapt
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but are any of them infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 22nd November 2017, 10:22   #3  |  Link
silverwing
Registered User
 
Join Date: Nov 2017
Location: Russia, Nizhny Novgorod
Posts: 8
Quote:
Originally Posted by StainlessS View Post
No idea about Smoothcurve, LaTo sources are closed and so not easy to create any kind of grapher.

Perhaps of use:-
https://forum.doom9.org/showthread.p...ight=Coloryuv2
Thanks for the answer! Nice work! :-)

Last edited by silverwing; 22nd November 2017 at 10:51.
silverwing is offline   Reply With Quote
Old 22nd November 2017, 10:57   #4  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,161
Graffers and toys
http://www.mediafire.com/file/5hdnos...ers%26Toys.zip

ColorYUV2 Graffer v1.0b (Bottom of page)
http://www.mediafire.com/file/wq4f9y...b_21120614.zip

See MediaFire in sig below this post for dll, or below
http://www.mediafire.com/file/875czv...l_20120529.zip


RGBAdapt:
http://www.mediafire.com/file/bo4afg...3-20150617.zip

Sorry, non as yet available for 64 bit.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but are any of them infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 22nd November 2017, 11:24   #5  |  Link
silverwing
Registered User
 
Join Date: Nov 2017
Location: Russia, Nizhny Novgorod
Posts: 8
Quote:
Originally Posted by StainlessS View Post
Sorry, non as yet available for 64 bit.
Thank you for the links!
I had to guess where to find the links. Apparently the Russian winter is so affecting my brain.
I'll try to compile ColorYUV2 to 64-bit, thanks for the source code.
And such question - what version of Visual Basic did you use for COLORYUV2_GRAF.exe? When I run the program, there is an error "ComDlg32.ocx file is missing or invalid".
Apparently, I will have to install (my Windows 8.1 64-bit system) Visual Basic Runtime.

Last edited by silverwing; 22nd November 2017 at 11:28.
silverwing is offline   Reply With Quote
Old 22nd November 2017, 11:41   #6  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,161
The vBasic programs are compiled with VS 6(98) VB.
Graffers&Toys.zip contains the ComDlg32.ocx, but missing from ColorYUV2_Graf_v1-0b_21120614.zip
[thought is might now be standard post XP OS (I'm on XP)].
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but are any of them infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 22nd November 2017, 11:47   #7  |  Link
Groucho2004
 
Join Date: Mar 2006
Posts: 3,546
This may help.
Groucho2004 is offline   Reply With Quote
Old 22nd November 2017, 12:02   #8  |  Link
silverwing
Registered User
 
Join Date: Nov 2017
Location: Russia, Nizhny Novgorod
Posts: 8
Quote:
Originally Posted by StainlessS View Post
The vBasic programs are compiled with VS 6(98) VB.
Thanks again!
I found a link to VB Runtime (maybe someone will come in handy).
OK. The program started without errors. Does it work only with BMP? Do I need to cut a bitmap from the video?

Groucho2004, maybe you compile ColorYUV2 to 64-bit? You make good ICL DLLs, I often use them.

Last edited by silverwing; 22nd November 2017 at 12:15.
silverwing is offline   Reply With Quote
Old 22nd November 2017, 12:15   #9  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,161
ConvertToRGB32/24(Matrix=whatever), Pick a frame, save frame as BitMap.
Choose Matrix=whatever in ColorYUV2 1.0 beta.
Other graffers require rec601.
I never got around to figuring out how to open AVI in VB (just a beginner).

Cheers Grouchy, Ill bung that page in my VB folder for future ref.

EDIT: Someone may have done a ColorYUV2 slider thing in AvsPMod (I dont use it).

EDIT: Think Bernardd may have done slider thing for RgbAdapt in this thread:- https://forum.doom9.org/showthread.php?t=174411

NOTE for anyone else, Graffers and toys also contains Graffer for builtin RgbAdjust and Levels.
The UK Lottery Picker/Checker exe's in Graffers & Toys, are now useless, they upped it from 49 balls to 59 balls, some time ago.
(was 13.7M:1 @ 49 balls for jackpot, god knows what it is now)
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but are any of them infinitely bigger ???

Last edited by StainlessS; 22nd November 2017 at 12:59.
StainlessS is offline   Reply With Quote
Old 22nd November 2017, 12:36   #10  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,161
Quick test,with defaults.
Code:
ImageSource("YUV_Curve_tool1.jpg",end=0)
Crop(155,0,426,-472)
A=GamMac
StackVertical(Last,A)


GamMac:- https://forum.doom9.org/showthread.p...ghlight=Gammac
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but are any of them infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 22nd November 2017, 13:04   #11  |  Link
silverwing
Registered User
 
Join Date: Nov 2017
Location: Russia, Nizhny Novgorod
Posts: 8
Quote:
Originally Posted by StainlessS View Post
I tried GamMac.
I find it inconvenient because it requires a double conversion - ConvertToRGB and ConvertToYV12, which means the loss of color detail on old video sources with distorted color (DVD).
Why do I say that? Because I'm paranoid and therefore I try not to use resize source material, but only OverCrop or UnderCrop with mod8.

By the way, what would you advise from the least simple? Maybe overlay mask to unpurple daytime sky and people's faces? Of course in YUV-colorspace.

Last edited by silverwing; 22nd November 2017 at 13:11.
silverwing is offline   Reply With Quote
Old 22nd November 2017, 13:17   #12  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,161
I'm no expert (crap really) at color correction, and would find it preferable to arrive at reasonable result even if it required double colorspace conversion,
than to arrive at less than reasonable result with no colorspace conversion.

Also, if problem arose in RGB colorspace, then that is quite probably the best format to correct in (no idea if this is the case here).

EDIT: By the way, think Groucho2004 did a 64 bit version GamMac in his Groucho Avisynth Stuff thread.

EDIT:
Quote:
no idea if this is the case here
The fact that above GamMac test works quite well might suggest that the problem did originally occur in RGB space.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but are any of them infinitely bigger ???

Last edited by StainlessS; 22nd November 2017 at 15:51.
StainlessS is offline   Reply With Quote
Old 22nd November 2017, 13:31   #13  |  Link
silverwing
Registered User
 
Join Date: Nov 2017
Location: Russia, Nizhny Novgorod
Posts: 8
Thank you very much again. I will think, I will try. But first I'll try your program.
silverwing is offline   Reply With Quote
Old 22nd November 2017, 14:05   #14  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,161
GamMac self adjusts at every frame, so if problem changeable in nature then not such a bad thing, (like when indoors compared with image above).
At least give it a try before you decide.

EDIT: If trying GamMac, and YUV histogram partially outside of 16->235 TV Levels, then use Matrix="PC.601" or "PC.709", GamMac should correct either without problem.
NOTE, default OMin=5, OMax=250, to give a little head/foot room for [EDIT: further] manual edit, set 0,255 if further edit not required.

EDIT: I did start a YUV version of GamMac quite some time ago, results were promising, got to get back to it one day when I have time.
Would likely be a completely separate plug, as args likely a lot different.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but are any of them infinitely bigger ???

Last edited by StainlessS; 22nd November 2017 at 15:56.
StainlessS is offline   Reply With Quote
Old 22nd November 2017, 16:08   #15  |  Link
silverwing
Registered User
 
Join Date: Nov 2017
Location: Russia, Nizhny Novgorod
Posts: 8
StainlessS, thanks for the exhaustive answer. With pleasure I will treat you to my fruit wine (hand made).

P.S. GamMac very-very slow even on my fast workstation, given that it is necessary to build structures:
Quote:
AssumeTFF().SeparateFields()
O = SelectOdd().ConvertToRGB24().GamMac(Show=false).ConvertToYV12()
E = SelectEven().ConvertToRGB24().GamMac(Show=false).ConvertToYV12()
Interleave(O, E)
Weave()
silverwing is offline   Reply With Quote
Old 22nd November 2017, 16:55   #16  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,161
What !!!, you calling me a 'fruit'. We have rules about such accusations against member on site, you naughty boy/girl

Suggest maybe
Code:
# GamMac handles pixels individially, interlacing does not really matter, unless alternate field alters histogram drastically.
AssumeTFF().ConvertToRGB24(Interlaced=True) # Matrix=Whatever
GamMac(Show=false) # + other args
Return ConvertToYV12(Interlaced=True) # Matrix=Whatever
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but are any of them infinitely bigger ???

Last edited by StainlessS; 22nd November 2017 at 17:13.
StainlessS is offline   Reply With Quote
Old 22nd November 2017, 19:51   #17  |  Link
Groucho2004
 
Join Date: Mar 2006
Posts: 3,546
Quote:
Originally Posted by silverwing View Post
Groucho2004, maybe you compile ColorYUV2 to 64-bit?
I added it to my Avisynth Stuff.
Groucho2004 is offline   Reply With Quote
Old 22nd November 2017, 23:25   #18  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,161
Mucho Grassy Ass my Hispanic Friend, we loves you

EDIT: @ G2K4

EDIT: OK, forgot, bit pissed, I meant Germanic friend.

EDIT: Something like,:- es tut mir leit.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but are any of them infinitely bigger ???

Last edited by StainlessS; 22nd November 2017 at 23:31.
StainlessS is offline   Reply With Quote
Old 22nd November 2017, 23:35   #19  |  Link
silverwing
Registered User
 
Join Date: Nov 2017
Location: Russia, Nizhny Novgorod
Posts: 8
Quote:
Originally Posted by Groucho2004 View Post
I added it to my Avisynth Stuff.
Thank you!
Quote:
Originally Posted by StainlessS View Post
What !!!, you calling me a 'fruit'. We have rules about such accusations against member on site, you naughty boy/girl
Forgive my bad English, I just wanted to offer you my own wine if you are in Russia.
As for the GamMac, I'll try, thanks!
silverwing is offline   Reply With Quote
Old 22nd November 2017, 23:45   #20  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,161
No Really, forgive my bad English. I have nothing to forgive, I'm was just jesting.

And a very warm welcome to the forum, please enjoy your stay.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but are any of them infinitely bigger ???
StainlessS is offline   Reply With Quote
Reply

Tags
avisynth, smoothcurve, wysiwyg

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 00:54.


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