Log in

View Full Version : Avisynth Levels And Color Adjusting


CarlPig
18th September 2013, 22:21
Hello.

How do I learn easiest basic things about adjusting the levels and colors?

raffriff42
19th September 2013, 04:53
* AvsPmod (http://forum.doom9.org/showthread.php?t=153248) is especially good for experimenting with filter settings.
* So are StainLessS's 'graffer' toys (http://forum.doom9.org/showthread.php?p=1633858&highlight=graffers#post1633858)
* Use the Histogram (http://avisynth.nl/index.php/Histogram) filter to check levels.
* Use StackHorizontal (http://avisynth.nl/index.php/StackHorizontal) to compare before & after.

CarlPig
1st October 2013, 18:13
How can i turn down the red color in YV12, I have read that the YV12 is a YUV colorspace.

But i cant figuere out how i can adjust red green blue in Avisynth in YV12.

Please help me on the way.

manono
1st October 2013, 19:51
But i cant figuere out how i can adjust red green blue in Avisynth in YV12.
You can't, really. The 'Hue' portion of Tweak or 'SmoothTweak' (better) in SmoothAdjust can do some of it, but for real work you have to convert to RGB first. You can do the same things as Tweak in ColorYUV.

The Hue2 portion of SmoothTweak can do this:

hue2 [default: 0]
-----------------
-255...0 = shift the hue towards green
0...+255 = shift the hue towards red

Maybe that's as about as much as you can do in YV12.

raffriff42
1st October 2013, 20:05
Here's another way. This gives you a slightly cooler look (more blue, less red)
ColorYUV (http://avisynth.nl/index.php/ColorYUV)(off_u = 3.0, off_v = -3.0)
U is kinda Blue vs. Green
V is kinda Red vs. Green

avisynth.nl/Histogram
http://avisynth.nl/images/Histogram_modelevels.jpg (http://avisynth.nl/index.php/Histogram#Levels_mode)
+3, -3 would move the middle (U) peak to the right, and the bottom (V) peak to the left

CarlPig
1st October 2013, 21:41
Thanks i will check it out tomorrow.

IanB
1st October 2013, 23:45
Have a look at the StartHue and EndHue parameters of Tweak (http://avisynth.nl/index.php/Tweak)... # YUV source
Tweak(Sat=0.9, startHue=80, endHue=135) # De-saturate all "red" pixels to 90%

You may want to treat only high saturation parts of the image.... # YUV source
Tweak(Sat=0.8, startHue=80, endHue=135, minSat=50) # De-saturate >50% saturation "red" pixels to 80%

To help tune startHue, endHue and minSat values set Sat=0.0 to make the selected areas stand out as grey scale. See the Usage and examples: adjusting saturation with the gold bikini girl towards the bottom of the page.

CarlPig
2nd October 2013, 21:38
I have now tried some things today, and i will try a little more tomorrow within i ask again.

CarlPig
5th October 2013, 23:45
I have today tried again to adjusting, but need some help again.

Need help for turn up the colors.

And adjust the colors, so the blue color is more blue and the red color is less red.

Here is 2 MPEG2 samples from DVD in MKV container:
http://www.mediafire.com/?zfmreo2cb17ii53
http://www.mediafire.com/?9bmvxyam80nmzqb

IanB
6th October 2013, 00:00
Start with this, adjust values to suit your source :-... # YUV source
Tweak(Sat=0.8, startHue=80, endHue=135, minSat=25) # De-saturate >25% saturation "red" pixels to 80%
Tweak(Sat=1.3, startHue=325, endHue=15, maxSat=75) # En-saturate <75% saturation "blue" pixels to 130%
Adjust startHue and endHue to better choose what YOU regard/need as "Red" and "Blue".

Adjust minSat to protect low reds, like pinks from disappearing.

Adjust maxSat to protect intense blues from blooming.

CarlPig
6th October 2013, 23:00
Thanks i think i get the result i want.