I wonder if perhaps you're still confused about how the various ColorYUV parameters work.
The cont_u and cont_v values are stretching the chroma around its centre point, according to the formula
out = in + (in-128)*cont/256
So cont_v=200 doesn't add 200 to V, it increases the V component of the saturation by about 80% (200/256).
Similarly, cont_u=100 increases the saturation U component by about 40%.
Of course, this could still push chroma beyond the limit, but here the saturation was low to begin with, so no problem.
Also, note that adding opt="coring" will limit all output values to 'TV' range (16-235 for luma, 16-240 for chroma), although this does not guarantee that the combined YUV values corrrespond to valid RGB values.
http://avisynth.org/mediawiki/ColorYUV
+ Reply to Thread
Results 31 to 36 of 36
-
-
I think the mediawiki description of "cont" is what's confusing. The html states: "cont (contrast) is also multiplier for the value, and it stretches the signal out from the center. That means that if the contrast is set to 0, it preserves the values as they are. When the contrast is 256 all values are multiplied by 2 (twice as bright)." [Italics mine].
At first that led me to believe that cont extends from the center upward. That led me down the wrong path, I see. It actually stretches in both directions, which is what most RGB filters do when they increase saturation. So negative contrast should bring extremes back again, closer to center.
The wiki also adds: "Although it is possible, it doesn't make sense to apply this setting to the luma of the signal." Hmm. It might not make sense, but I see scripts doing it all the time and it seems to have the desired effects.
I have one problem piece of video where little of this behavior seems to apply. But that's another story.Last edited by sanlyn; 21st Mar 2014 at 06:09.
-
That's right. A negative cont_u and/or cont_v reduces saturation.
The wiki also adds: "Although it is possible, it doesn't make sense to apply this setting to the luma of the signal." Hmm. It might not make sense, but I see scripts doing it all the time and it seems to have the desired effects.
In fact, 'cont' is redundant in the sense that its effects can always be achieved by a suitable combination of 'gain' and 'off' (set gain=cont and off=cont/2, as can be seen from the formula in post#26, which I have just edited to correct an error I spotted). However, it's more useful for chroma as it corresponds directly to adjusting saturation.Last edited by Gavino; 24th Nov 2011 at 07:35. Reason: cont equivalent to gain+off
-
You know, I think I've been working too long with my "problem video" from another thread -- so long, I had to stop and re-learn what jagabo and Gavino are saying here. What you describe is more or less what I've been doing with other captures. I think my "other" video is just a piece of bad mastering (or bad capturing) that makes ColorYUV refuse to respond as advertised (?); not even RGB in After Effects could make it behave. But in this cartoon video, the "usual" way worked for me.
Last edited by sanlyn; 21st Mar 2014 at 06:10.
-
Gain and contrast in ColorYUV are essentially the same thing. They both multiply the signal. But gain multiples around a baseline of 0, contrast multiplies around a baseline of 128. Since there can't be any values below 0, gain only increases values. But if video could have values below 0 they would decrease (become more negative).
So increasing the contrast of of the luma signal results in darks getting darker and lights getting lighter. Increasing the contrast of the chroma signal increases color saturation. Increasing the gain of the luma results in all pixels getting brighter (except 0 which stays at 0). Increasing the gain of the chroma signals results in some weird color shift that I can't really fathom. Basically, positive values push toward purple, negative push toward green.
WRGB ramps:
cont_u/v=50:
cont_u/v=-50:
Last edited by jagabo; 24th Nov 2011 at 08:29.
-
Similar Threads
-
Best capturing method from VHS to digital format with highest quality?
By jbloggs in forum Newbie / General discussionsReplies: 10Last Post: 14th Nov 2015, 03:36 -
Improving quality of VHS movies
By kantacki in forum RestorationReplies: 1Last Post: 30th Dec 2011, 17:38 -
Improving old VHS ¿What to expect?
By Marto2008 in forum RestorationReplies: 20Last Post: 5th May 2010, 13:13 -
How go i get the same vhs quality when capturing and converting to dvd?
By Whuntmore in forum MacReplies: 43Last Post: 28th Feb 2010, 05:30 -
Improve 15 year old VHS quality when capturing
By diegolaz in forum Capturing and VCRReplies: 6Last Post: 12th Jul 2009, 14:17