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 23rd April 2014, 00:22   #21  |  Link
Overdrive80
Anime addict
 
Overdrive80's Avatar
 
Join Date: Feb 2009
Location: Spain
Posts: 673
Thanks for you filters, coloryuv2 graffers is great but you can consider to implement the posibility of loading videos, too??
__________________
Intel i7-6700K + Noctua NH-D15 + Z170A XPower G. Titanium + Kingston HyperX Savage DDR4 2x8GB + Radeon RX580 8GB DDR5 + ADATA SX8200 Pro 1 TB + Antec EDG750 80 Plus Gold Mod + Corsair 780T Graphite
Overdrive80 is offline   Reply With Quote
Old 23rd April 2014, 02:02   #22  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Thank you for the nice words, If I knew how to do that, I would, maybe one day I'll figure it out.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 20th May 2014, 19:08   #23  |  Link
Bernardd
Registered User
 
Join Date: Jan 2012
Location: Toulon France
Posts: 249
Hello StainlessS,

Because i am working a RGB picture, when i make manual movies colors corrections, i have tried to write a script for add percentage of red, green and blue layers upon the frames.
Colours says me it easier to use ShowRed, ShowGreen, ShowBlue and Merge the filtered result. (http://forum.doom9.org/showthread.php?p=1680461#post1680461)
Thus i have write this short script, which use AvsPmod users sliders function.
Code:
Avisource .......

LoadPlugin("C:\......\ColorYUV2_25_dll_20120529\ColorYUV2.dll")

[<separator="Red users sliders">]
off_y_red = [<"off_y_red", -256, 256, 0>]
rpow_y_red = [<"rpow_y_red", -256, 256, 0>]
spow_y_red = [<"spow_y_red", -256, 256, 0>]
pord_y_red = [<"pord_y_red", 0, 1, 0>]

[<separator="Green users sliders">]
off_y_green = [<"off_y_green", -256, 256, 0>]
rpow_y_green = [<"rpow_y_green", -256, 256, 0>]
spow_y_green = [<"spow_y_green", -256, 256, 0>]
pord_y_green = [<"pord_y_green", 0, 1, 0>]

[<separator="Blue users sliders">]
off_y_blue = [<"off_y_blue", -256, 256, 0>]
rpow_y_blue = [<"rpow_y_blue", -256, 256, 0>]
spow_y_blue = [<"spow_y_blue", -256, 256, 0>]
pord_y_blue = [<"pord_y_blue", 0, 1, 0>]

#                 based on Colours's script  : http://forum.doom9.org/showthread.php?p=1680461#post1680461                                     #
ConvertToRGB32(matrix="Rec601") # replace with the correct colour matrix if your source has a different one
red = ShowRed("y8")
green = ShowGreen("y8")
blue = ShowBlue("y8")
red_processed = red.ColorYUV2(off_y=off_y_red, rpow_y =rpow_y_red, spow_y =spow_y_red, pord_y = pord_y_red)
green_processed = green.ColorYUV2(off_y=off_y_green, rpow_y =rpow_y_green, spow_y =spow_y_green, pord_y = pord_y_green)
blue_processed = blue.ColorYUV2(off_y=off_y_blue, rpow_y =rpow_y_blue, spow_y =spow_y_blue, pord_y = pord_y_blue)
MergeRGB(red_processed, green_processed, blue_processed)
ConvertToYV12(matrix="Rec601") # use the same matrix as earlier
For you, has this ColorYUV2 use a sense ?

Is it possible to say : off_y put the color layer or the invert color layer on the frame with the same strength on dark and light luma tones (dark below 128, light above 128),
rpow_y put the color layer or the invert color layer strong on dark luma tones and lighter on light luma tones,
spow_y > 0 put the color layer on dark luma tones and the invert color layer on light luma tones and other side for negative values ?

Thanks
Bernardd is offline   Reply With Quote
Old 21st May 2014, 04:18   #24  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Hi Bernardd,
I thought I might be able to make it a little easier for you, so I spent a couple of hours doing RGBAdapt plugin,
just had to rip it out of RT_Stats (used only for Luma) and glued it together with the frame renderer.
Not much tested, but the only likely source of problems would be the LUT creator, and that has been working
fine for some tiime, so I dont expect any problems. Find it here:
http://forum.doom9.org/showthread.php?t=170642

It should not prove too difficult to mod your macro (or whatever they call it in AVSPMod).

EDIT: RGBAdust is quite similar to ColorYUV2, but it also has SPMid args for r/g/b, which affects the flexing or turning point
of the S-Power curve.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

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

Last edited by StainlessS; 21st May 2014 at 22:22.
StainlessS is offline   Reply With Quote
Old 21st May 2014, 19:59   #25  |  Link
Bernardd
Registered User
 
Join Date: Jan 2012
Location: Toulon France
Posts: 249
Hello StainlessS.
Well done !
I am impressed. In your very quick answer, you write a new plugin, but also you anticipate my whole luma range control need with the SPMid args.
Get something that you wish but you have not still wanted, it is marvelous.
This plugin is very efficient. With the graffer, a dummy like me know and understand that he is doing.
A minor bug 0.01 and 0.99 are not allowed for SPMid args. The graffer windows is not autosized, i cannot read the bottom, but it is not necessary in my case.
Thanks.
Bernardd is offline   Reply With Quote
Old 21st May 2014, 22:20   #26  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
A minor bug 0.01 and 0.99 are not allowed for SPMid args
In Graffer or plugin ? (both look OK to me).

I'll squash the dialog box a bit to fit your 768 height.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 21st May 2014, 22:54   #27  |  Link
Bernardd
Registered User
 
Join Date: Jan 2012
Location: Toulon France
Posts: 249
0.01 an 0.99 are not allowed in plugin. I get this error message : RGBAdapt: Invalid R_SPMid(0.01 -> 0.99) {0.010000}
I use AviSynth 2.60A5 (CVS 20130920, ICL10) version.
Bernardd is offline   Reply With Quote
Old 22nd May 2014, 01:02   #28  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Thank you sir, 0.01 comes out as 0.0099999 etc as a float conversion to double, will fix.
I did originally do the graffer thing for 768 display, however I obviously had to move things around
and forgot to put them back, hence the gap between sliders and bottom buttons, and your problem.
Thanks for pointing out the errors of my ways, I'm such a slipshod individual, sorry.
Will fix.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

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

Last edited by StainlessS; 23rd May 2014 at 11:46.
StainlessS is offline   Reply With Quote
Old 22nd May 2014, 18:12   #29  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Bernardd, fixed the float->double conversion prob, fixed Graffer and included in zip.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 22nd May 2014, 19:15   #30  |  Link
Bernardd
Registered User
 
Join Date: Jan 2012
Location: Toulon France
Posts: 249
StainlessS,
All is OK. Thousand thanks.
Bernardd 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:18.


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