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 > General > Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th September 2013, 22:21   #1  |  Link
CarlPig
Registered User
 
Join Date: Aug 2012
Posts: 74
Avisynth Levels And Color Adjusting

Hello.

How do I learn easiest basic things about adjusting the levels and colors?
CarlPig is offline   Reply With Quote
Old 19th September 2013, 04:53   #2  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,377
* AvsPmod is especially good for experimenting with filter settings.
* So are StainLessS's 'graffer' toys
* Use the Histogram filter to check levels.
* Use StackHorizontal to compare before & after.

Last edited by raffriff42; 19th September 2013 at 05:01.
raffriff42 is offline   Reply With Quote
Old 1st October 2013, 18:13   #3  |  Link
CarlPig
Registered User
 
Join Date: Aug 2012
Posts: 74
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.
CarlPig is offline   Reply With Quote
Old 1st October 2013, 19:51   #4  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,240
Quote:
Originally Posted by CarlPig View Post
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:

Quote:
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.

Last edited by manono; 1st October 2013 at 19:55.
manono is offline   Reply With Quote
Old 1st October 2013, 20:05   #5  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,377
Here's another way. This gives you a slightly cooler look (more blue, less red)
ColorYUV(off_u = 3.0, off_v = -3.0)
U is kinda Blue vs. Green
V is kinda Red vs. Green

avisynth.nl/Histogram

+3, -3 would move the middle (U) peak to the right, and the bottom (V) peak to the left

Last edited by raffriff42; 1st October 2013 at 20:08.
raffriff42 is offline   Reply With Quote
Old 1st October 2013, 21:41   #6  |  Link
CarlPig
Registered User
 
Join Date: Aug 2012
Posts: 74
Thanks i will check it out tomorrow.
CarlPig is offline   Reply With Quote
Old 1st October 2013, 23:45   #7  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,171
Have a look at the StartHue and EndHue parameters of Tweak
Code:
... # 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.
Code:
... # 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.
IanB is offline   Reply With Quote
Old 2nd October 2013, 21:38   #8  |  Link
CarlPig
Registered User
 
Join Date: Aug 2012
Posts: 74
I have now tried some things today, and i will try a little more tomorrow within i ask again.
CarlPig is offline   Reply With Quote
Old 5th October 2013, 23:45   #9  |  Link
CarlPig
Registered User
 
Join Date: Aug 2012
Posts: 74
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
CarlPig is offline   Reply With Quote
Old 6th October 2013, 00:00   #10  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,171
Start with this, adjust values to suit your source :-
Code:
... # 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.
IanB is offline   Reply With Quote
Old 6th October 2013, 23:00   #11  |  Link
CarlPig
Registered User
 
Join Date: Aug 2012
Posts: 74
Thanks i think i get the result i want.
CarlPig 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 20:10.


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