VideoHelp Forum




+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 33
  1. Click image for larger version

Name:	yellow.png
Views:	561
Size:	1.60 MB
ID:	36902
    Click image for larger version

Name:	yellow2.png
Views:	517
Size:	1.12 MB
ID:	36903

    They're everywhere in this one clip inside this room, in the other footage I have from the camera it's nowhere near as bad as this or I haven't even noticed it, over here it's in your face with yellow spots; everybody looks like they have an infection. I don't know if it's the lighting or something, the camera was dusty...but yeah.

    The script I'm using:

    Code:
    AssumeTFF()
    ConvertToYV12(interlaced=true, matrix="pc.601")
    QTGMC()
    Tweak(hue=0.0, sat=1.6, bright=4, cont=0.9, coring=True, sse=False, startHue=0, endHue=360, maxSat=150, minSat=0, interp=16)
    Spline36Resize(854,480)
    A fix in Avisynth would be preferred, but I can try dabbling in Vdub filters if that'd be better.
    Quote Quote  
  2. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Chroma Noise (could be exacerbated by lower light levels & bad sensitivity in cam & miscalibration in cam) + Chroma upsizing error, are probably the main contributors.

    Scott
    Quote Quote  
  3. Try VirtualDub's Camcorder Color Denoiser filter. It can be called from within AviSynth with:

    Code:
    LoadVirtualDubPlugin("C:\Program files\VirtualDub\plugins\Camcorder_Color_Denoise_sse2.vdf","ccd") 
    ConvertToRGB32()
    ccd(100,1) # threshold (0-100), multithreading (0=off. 1=on)
    ConvertToYV12() # or back to whatever you started with
    Change the path to the plugin if it's elsewhere on your system.
    Quote Quote  
  4. Originally Posted by jagabo View Post
    Try VirtualDub's Camcorder Color Denoiser filter. It can be called from within AviSynth with:

    Code:
    LoadVirtualDubPlugin("C:\Program files\VirtualDub\plugins\Camcorder_Color_Denoise_sse2.vdf","ccd") 
    ConvertToRGB32()
    ccd(100,1) # threshold (0-100), multithreading (0=off. 1=on)
    ConvertToYV12() # or back to whatever you started with
    Change the path to the plugin if it's elsewhere on your system.
    This is working nicely, thanks! I had to download it from here since I didn't have it, but it should be the same thing as what you have. It ended up being ccd.vdf and not the long file name you have, is your version an improved one?

    I also set it to 100 but there is still some lingering yellow spots in some frames. How much is too much, I'm entering 1000 into there and it's still possible. At what point do you end up "damaging" it or ruining it? Is 100 too much, over 100, 300, etc?

    Edit: I also took out my MT Mode .dll, does multithreading still work if I'm not using MT Mode anymore? Should I keep that to 0 off?
    Quote Quote  
  5. For chroma noise, I find that the old VirtualDub CNR2 plugin works pretty well. The values shown here are the starting point that I use for VHS footage.

    Code:
    LoadPlugin("Cnr2.dll")
    Cnr2("oxx",8,16,191,100,255,32,255,false)
    Since you didn't provide a clip, I can't try it out to see what settings might be better.
    Quote Quote  
  6. Originally Posted by johnmeyer View Post
    For chroma noise, I find that the old VirtualDub CNR2 plugin works pretty well. The values shown here are the starting point that I use for VHS footage.

    Code:
    LoadPlugin("Cnr2.dll")
    Cnr2("oxx",8,16,191,100,255,32,255,false)
    Since you didn't provide a clip, I can't try it out to see what settings might be better.
    Would it be a good idea to use this at the same before/after jagoba's filter for a more powerful effect?

    And here is a clip:
    Image Attached Files
    Quote Quote  
  7. You should provide a clip closer to your source. AVC encoding has baked the problem into the video, making it much harder to clean up.

    This is a little better...
    Image Attached Files
    Last edited by jagabo; 6th May 2016 at 22:33.
    Quote Quote  
  8. Originally Posted by jagabo View Post
    You should provide a clip closer to your source. AVC encoding has baked the problem into the video, making it much harder to clean up.
    K, a clip from the actual source is attached down below.

    This is a little better...
    How in the world did you end up doing that? And the colors too? The colors don't pop out as much but the skin tones feel way more accurate.
    Image Attached Files
    Quote Quote  
  9. Try something like this:

    Code:
    Mpeg2Source("yellow.d2v", CPU2="ooooxx", Info=3) 
    SeparateFields()
    
    // white balance
    darks=ColorYUV(off_u=0, off_v=0)
    brights=ColorYUV(off_u=16, off_v=-3)
    Overlay(darks, brights, mask=ColorYUV(cont_y=100, gamma_y=100, off_y=0))
    
    // levels adjustment and increase saturation
    ColorYUV(gain_y=-20, gamma_y=50, off_y=-15, cont_u=50, cont_v=50)
    
    // chroma noise reduction
    LoadVirtualDubPlugin("C:\Program files\VirtualDub\plugins\Camcorder_Color_Denoise_sse2.vdf","ccd") 
    Y = last
    ConvertToRGB32()
    U = ccd(100,0).ccd(100,0).ConvertToYV12().UtoY()
    V = ccd(100,0).ConvertToYV12().VtoY()
    YtoUV(U, V, Y)
    
    Weave()
    QTGMC(preset="fast")
    There is a lot more noise in the U channel than in the V channel. That's why I used ccd twice on U, only once on V. You might be able to call it only once with a higher value but the slider in the VirtualDub filter only goes up to 100. So I thought it would be safer to call it twice rather than using a higher value.

    The video is pretty pale so a little more saturation might be in order.
    Last edited by jagabo; 7th May 2016 at 09:51.
    Quote Quote  
  10. Wow, thank you. Okay, here's what I came up with, let me know if it all looks good please:

    Code:
    AVISource("k:\chreve.avi")
    AssumeTFF()
    ConvertToYV12(interlaced=true, matrix="pc.601")
    SeparateFields()
    darks=ColorYUV(off_u=0, off_v=0)
    brights=ColorYUV(off_u=16, off_v=-3)
    Overlay(darks, brights, mask=ColorYUV(cont_y=100, gamma_y=100, off_y=0))
    ColorYUV(gain_y=-20, gamma_y=50, off_y=-15, cont_u=50, cont_v=50)
    LoadVirtualDubPlugin("C:\Users\CZ\Desktop\Video Capture\VirtualDub-1.10.4\plugins32\ccd.vdf","ccd") 
    Y = last
    ConvertToRGB32()
    U = ccd(100,0).ccd(100,0).ConvertToYV12().UtoY()
    V = ccd(100,0).ConvertToYV12().VtoY()
    YtoUV(U, V, Y)
    Weave()
    QTGMC(preset="fast",Sharpen(0.08, MMX=True))
    Tweak(hue=0.0, sat=1.8, bright=8, cont=1.0, coring=True, sse=False, startHue=0, endHue=360, maxSat=150, minSat=0, interp=16)
    Spline36Resize(854,480)
    Histogram("classic")
    trim(11797,12454)
    Attached are 4 files: one of the regular script, one with the classic histogram, one with the levels histogram and one of me scrolling through it in preview mode with the histogram on. Does everything look fine with these? I'm still trying to figure out how to decipher the colors in the levels one for instance and if if it's good to be just a tad bit close to the edge in the classic view without touching the sides.

    What do you think?
    Image Attached Files
    Quote Quote  
  11. I think you've overdone the saturation.

    With the Histogram() default (really a waveform monitor) you want to keep your video in the black area. You don't want parts of the video you care about extending into the brown areas (super blacks on the left, super brights on the right). Not every shot has to cover the full range. Use your own judgement on what looks right in the picture.

    I prefer a horizontal waveform monitor. You can get that with the third party VideoScope() filter or with the sequence:

    Code:
    TurnRight().Histogram().TurnLeft()
    That will give you a horizontal waveform at the top of the frame.

    The levels view is really a histogram. The top part is the luma channel, the greyscale component of the picture. Again, you want to keep parts of the picture you care about in the black area, out of the super black and super bright areas. Below that are the U and V histograms. A black and white video would have only a peak right at the center. The more saturated the picture is the more the U/V histograms will spread out. You definitely want to keep the U/V histograms out of the bars at the edges. But even those bars are misleading. Many combinations of Y, U, and V are illegal even if all the components are within their individual legal ranges. I wrote a quick (fairly accurate) filter that checks for illegal YUV combinations and highlights them in red (or whatever color you choose):

    https://forum.videohelp.com/threads/360935-Capturing-Correct-Chroma-and-Hue-Levels-From...=1#post2289672

    If you use that filter you'll see that the shirt and face of the boy on the right contain illegal YUV values in your script. Even in my script there were some illegal values where the shirt was overblown.

    Earlier in that thread Gavino posted a more accurate test for illegal YUV combinations but it takes a long time (a minute or two) to load.

    Most devices these days handle illegal YUV combinations fairly gracefully but some older devices would show very wrong colors. For example, the overly bright shoulder might show up as black instead of white.
    Quote Quote  
  12. Thanks.

    If you use that filter you'll see that the shirt and face of the boy on the right contain illegal YUV values in your script. Even in my script there were some illegal values where the shirt was overblown.
    Wasn't able to get the that to work, copied and pasted it in my script, no red appeared for me.

    Do you think I should alter the hue in any way to the left or to the right? It's currently set at 0. Any benefits in doing so, is it better to go one way slightly than to stay at 0?

    I also set the saturation to the clip at 1.2 from the 1.8, file attached. Is this one good and ready to go...or would you still change stuff?

    Edit: Also attached now a new version with,
    Code:
    Tweak(hue=0.0, sat=1.1, bright=8, cont=0.9, coring=True, sse=False, startHue=0, endHue=360, maxSat=150, minSat=0, interp=16)
    chreve-3.mp4 (not sure why it's less MB when it's the same amount of frames)

    And then 4 and 5 are different clips but with this recent tweak as well.
    Image Attached Files
    Last edited by CZbwoi; 8th May 2016 at 02:51.
    Quote Quote  
  13. Originally Posted by CZbwoi View Post
    If you use that filter you'll see that the shirt and face of the boy on the right contain illegal YUV values in your script. Even in my script there were some illegal values where the shirt was overblown.
    Wasn't able to get the that to work, copied and pasted it in my script, no red appeared for me.
    Did you call the function in addition to just adding it to your script? For example, add HighlightBadRGB() at the end of your script. Other possible reasons you didn't see any red was because you already clamped the illegal colors by converting to RGB, or using Tweak (which will clamp some illegal colors).

    Originally Posted by CZbwoi View Post
    Do you think I should alter the hue in any way to the left or to the right?
    I think a hue shift of about 5 to 10 looks more natural -- skin tones are less yellow, more pink. But use your own judgement.
    Last edited by jagabo; 8th May 2016 at 12:11.
    Quote Quote  
  14. Did you call the function in addition to just adding it to your script? For example, add HighlightBadRGB() at the end of your script.
    Ah, no.

    I think a hue shift of about 5 to 10 looks more natural -- skin tones are less yellow, more pink. But use your own judgement.
    Is there a time when you don't do this, or do you tend to always adjust the hue a little bit? Like since we know what this camera delivers, should I always shift the hue slightly to the right even in say, night time scenes in the car or inside of the Sears tower? Since you can see that this camera liked to make everything slightly more yellow. But if a certain clip doesn't prominently feature people's faces or is in the dark, would you still slightly do it based on all the other footage? Like if I add 5 for this set of clips, would it be a good idea/precedent to do the same for all the other footage on this camera, basically even feed it the same script?
    Quote Quote  
  15. It depends on the lighting conditions as well as the auto gain and auto white balance on your camera. There really is no one size fits all adjustment.
    Quote Quote  
  16. Originally Posted by CZbwoi View Post
    I think a hue shift of about 5 to 10 looks more natural -- skin tones are less yellow, more pink. But use your own judgement.
    Is there a time when you don't do this, or do you tend to always adjust the hue a little bit?
    You adjust everything as needed and desired. The original lighting, the camera that shot the video, the settings on the camera, the playback device, the capture device... all those things effect how the video looks. Then there's the issue of how YOU want it to look. Do you want natural daylight colors? The actual colors under which the video was shot? Some other colors to set a mood?
    Quote Quote  
  17. Yeah, but I was just referring to this current camera's footage. Shouldn't it be applied to everything else from it if that yellow look was present here, or was that maybe solely indicative of the lighting?

    I sometimes don't know what I should do. Would you change the hue on this? Both are from the same event, hue set at 0:

    Click image for larger version

Name:	hue.png
Views:	281
Size:	1.04 MB
ID:	36931


    Then these 4 are from night/outside:

    Click image for larger version

Name:	hue2.png
Views:	254
Size:	818.0 KB
ID:	36932
    Click image for larger version

Name:	hue3.png
Views:	281
Size:	885.9 KB
ID:	36933

    And should I add the camcorderdenoise to all the videos from this camcorder since it showed me problems with the indoor footage?

    edit: and I noticed you didn't put the ConvertToYV12() you said to put after the ccd is over in post #3, should I put that in after ccd, "YtoUV(U, V, Y)" or "weave()"?
    Last edited by CZbwoi; 9th May 2016 at 21:37.
    Quote Quote  
  18. I don't think a hue=10 adjustment would be appropriate for most of those shots. The yellow cast on the earlier shot may have been from the lighting conditions. Typically incandescent lights give a yellow/red cast, fluorescent lights a blue/green cast.

    ConvertToYV12() was used on the U= and V= lines.

    Only use filters when you need them.
    Quote Quote  
  19. So it turns out those recent screenshots aren't what they naturally were, I forgot I had added everything you sent me into everything else as I thought it was all part of the CCD effect and wasn't aware this part of your code changed the mood/tone:

    Code:
    darks=ColorYUV(off_u=0, off_v=0)
    brights=ColorYUV(off_u=16, off_v=-3)
    Overlay(darks, brights, mask=ColorYUV(cont_y=100, gamma_y=100, off_y=0))
    ColorYUV(gain_y=-20, gamma_y=50, off_y=-15, cont_u=50, cont_v=50)
    Left is what it is with it out, right is what it is with it in:

    Click image for larger version

Name:	1.png
Views:	271
Size:	1.16 MB
ID:	36961
    Click image for larger version

Name:	2.png
Views:	280
Size:	1.01 MB
ID:	36962
    Click image for larger version

Name:	3.png
Views:	301
Size:	964.1 KB
ID:	36963
    Click image for larger version

Name:	4.png
Views:	235
Size:	1.10 MB
ID:	36964
    Click image for larger version

Name:	5.png
Views:	248
Size:	738.2 KB
ID:	36966
    Click image for larger version

Name:	6.png
Views:	269
Size:	1.08 MB
ID:	36967
    Click image for larger version

Name:	7.png
Views:	264
Size:	1.08 MB
ID:	36968

    On one hand the original looks like it's exhibiting the right colors...on the other hand the right side looks like it's more natural. But I don't know if that's just because your code seemed to make everything cooler and bluer.

    Which brings me back to what you said:

    You adjust everything as needed and desired. The original lighting, the camera that shot the video, the settings on the camera, the playback device, the capture device... all those things effect how the video looks. Then there's the issue of how YOU want it to look. Do you want natural daylight colors? The actual colors under which the video was shot? Some other colors to set a mood?
    That's thing thing, I don't know what I'm supposed to want, do or what is right... Are the actual colors under how these videos were shot...wrong because they go more towards the yellow path? I.e. the crappy camcorder shot it in the wrong, bland colors. Did that piece of the code "fix" and make it more realistic as to how the colors should be? If that's the case, that's what I want. But if not then what should I do...is there another common code for another "natural look?" Do the ones on the right seem more right because they're more on the cool side?

    Then there's the question if this is applicable to the videos filmed with this camera outside in the daylight, in the night, in another type of room...should this be used for daylight scenes too or how do I get the "natural daylight colors"? Is there a resource somewhere with codes like the one you provided for basic camcorder video 'fixes'? Or codes for like "natural daylight colors", "mood colors", etc. Trying to decipher this puzzle is a nightmare when you don't know what half of this means, all I'm doing is copying and pasting what you're giving me but I don't know other variations or what is supposed to be right...like those white clothes and piano in the first picture. On the left they look white...-tan. On the right they still look white...yet pretty blue...but still sort of normal? They both look correct though, that's the mind-numbing part. I'm going mad over here, I must have inserted these codes, taken out, altered, previewed, encoded for hours, erased, over and over 100 times.
    Quote Quote  
  20. You're looking for a technical answer to an aesthetic question. How you think it should look is extremely subjective. Your "before" and "after" pictures above are well within the range of acceptable. Some people may prefer the warmer, some may prefer the cooler -- but neither is wrong. If you look at the color of most Hollywood films these days they are wildly outside the range of "natural."

    Your best option, if you want your colors "correct" is to use a white card and set the white balance on your camera whenever the lighting changes.
    Quote Quote  
  21. If you're looking for more natural colors, in the second image I used

    Code:
    darks=ColorYUV(off_u=2, off_v=1) # dark white balance
    brights=ColorYUV(off_u=15, off_v=-8) # bright white balance
    Overlay(darks, brights, mask=ColorYUV(cont_y=100, gamma_y=50, off_y=0)) # merge the two
    ColorYUV(gain_y=0, gamma_y=0, off_y=-5, cont_u=20, cont_v=20) # a little darker and more saturation
    Click image for larger version

Name:	p2.jpg
Views:	293
Size:	40.7 KB
ID:	36975

    I assumed the woman in the foreground was wearing black and the piano should be white. I think those settings looked acceptable (though a little over saturated?) for the first image too:

    Click image for larger version

Name:	p1.jpg
Views:	271
Size:	30.8 KB
ID:	36976
    Quote Quote  
  22. You're looking for a technical answer to an aesthetic question. How you think it should look is extremely subjective. Your "before" and "after" pictures above are well within the range of acceptable. Some people may prefer the warmer, some may prefer the cooler -- but neither is wrong. If you look at the color of most Hollywood films these days they are wildly outside the range of "natural."
    I get what you're saying, but I'm not looking for a range of accepted Hollywood schemes or tones, I just want the real life exact copy (which is what it looks like jagabo provided).
    Your best option, if you want your colors "correct" is to use a white card and set the white balance on your camera whenever the lighting changes.
    If you mean holding up something white in front of the camcorder's lenses (which is what I think you're saying) then that's implying I'm using this camera for recording currently...these are videos from my uncle's old 2010 camcorder I took out of it, it's not being used for recording anymore (thank God lol).


    If you're looking for more natural colors, in the second image I used

    Code:
    darks=ColorYUV(off_u=2, off_v=1) # dark white balance
    brights=ColorYUV(off_u=15, off_v=-8) # bright white balance
    Overlay(darks, brights, mask=ColorYUV(cont_y=100, gamma_y=50, off_y=0)) # merge the two
    ColorYUV(gain_y=0, gamma_y=0, off_y=-5, cont_u=20, cont_v=20) # a little darker and more saturation
    Okay, yeah, now that looks great and realistic! If I wanted the natural colors in everything else from this camcorder would this be the code to use? Even for say daytime scenes, night time scenes, that first scene this thread started off on about? Since it seems to make the whites actually appear white it's also doing the same for everything else, yeah?

    I think those settings looked acceptable (though a little over saturated?) for the first image too:
    The saturation is set to 1.4 on the tweak in there, still seems like too much? I can provide pics of 1.1 (too dull) to 1.4 if you want since you seem to be spotting something wrong from your initial eye test.
    Last edited by CZbwoi; 11th May 2016 at 02:17.
    Quote Quote  
  23. Originally Posted by CZbwoi View Post
    If you're looking for more natural colors, in the second image I used

    Code:
    darks=ColorYUV(off_u=2, off_v=1) # dark white balance
    brights=ColorYUV(off_u=15, off_v=-8) # bright white balance
    Overlay(darks, brights, mask=ColorYUV(cont_y=100, gamma_y=50, off_y=0)) # merge the two
    ColorYUV(gain_y=0, gamma_y=0, off_y=-5, cont_u=20, cont_v=20) # a little darker and more saturation
    Okay, yeah, now that looks great and realistic! If I wanted the natural colors in everything else from this camcorder would this be the code to use? Even for say daytime scenes, night time scenes...
    No, it's specific to that shot and others like it. It doesn't work well for the outside/night shots.

    Originally Posted by CZbwoi View Post
    Since it seems to make the whites actually appear white it's also doing the same for everything else, yeah?
    It doesn't necessarily mean the colors of everything else is correct. There are many ways the white balance could be off. The method I used to "fix" it may not have been right. Or maybe the piano and the rear walls weren't white. We don't know exactly what color anything is supposed to be -- except maybe a range for the skin tones. That said, overall the colors don't look too unrealistic after the given white balance and minor black level and saturation adjustment.

    Originally Posted by CZbwoi View Post
    I think those settings looked acceptable (though a little over saturated?) for the first image too:
    The saturation is set to 1.4 on the tweak in there, still seems like too much?
    I didn't use Tweak at all. I started with your "before" images and applied the filters I listed. ColorYUV(cont_u=20, cont_v=20) is about the same as Tweak(sat=1.08).
    Quote Quote  
  24. Originally Posted by CZbwoi View Post
    I'm not looking for a range of accepted Hollywood schemes or tones, I just want the real life exact copy (which is what it looks like jagabo provided).
    There is no such thing!

    Every reproduction scheme has its own "look." The best example from the old days are the film emulsions Kodak provided. If you shot something on Kodachrome, it most definitely had a certain look. For many people it captured what they remembered, but in no way would the projected image of that slide look exactly like the original scene. Ektachrome had a completely different look, but many preferred it.

    The last phrase "preferred it" is key to the discussion. As already mentioned color balance is a matter of preference, and it is totally a subjective decision. This is why you will see the phrase "color timing" in lots of movie credits: there is a person whose job it is to match all the colors from different scenes when the film is cut. Each scene must be adjusted separately. And here's the key thing: none of those scenes, in any movie, ever looks like the original scene looked to those who were actually on the set.

    Finally, just to drive home the point further, every device on which you display an image has its own "gamut." When used in this way, that word refers to the ability of any device to display all colors. And here's the dirty little secret, in case you didn't know it: no device can display all the colors of the rainbow. Not even close. For instance, try to get a true representation of "fire engine red." Most displays won't be able to nail it.

    I met Efi Arazi, the founder of EFI imaging. Their business was producing hardware and software to try to approximately match colors as you moved from the capture device to the display device to the printer (or, these days, the device on which the final result will be viewed). Each one has different capabilities of displaying different colors, and not only are none of them capable of displaying all the colors in the rainbow, but each one has different "holes" in its capabilities. What EFI (both the man and the company) did was to provide software that would best map the software capabilities of one part of the reproduction process to the next step, so that the loss from the original capture to the final display was both minimal and acceptable. The EFI software produced an "out of gamut alarm" when a color match you'd achieved on your display would not be viewable on the device downstream that was going to have to display it.

    While the problems are worse when trying to match the original to the gamut of colors a printing press can produce (reflected color has a much narrower gamut than transmitted color), the same problems exist with LCD displays.

    So, in summary, you are chasing a dream if you think you can match real-life color. Yes, you can match what you remember that color to be, but as soon as you realize that is what you are doing, you will then understand that you are making an artistic decision -- your artistic decision -- as to what you think best represents the original color.
    Last edited by johnmeyer; 11th May 2016 at 10:41. Reason: Added link for EFI
    Quote Quote  
  25. No, it's specific to that shot and others like it.
    I used it on the first scene as well with the guitar and the boy and it seems to work well, because it also had a yellow lighting tone. So I guess those 2 shots are like each other..?

    It doesn't work well for the outside/night shots.
    What does work well with daytime/night time shots then, to get natural colors in those instances? If you could provide basic guideline codes you use like this white balance one for indoor shots it'd be great, unless there's an already typed out resource/link somewhere with a set of them you can send my way so I can plug in and play/experiment with a variety of codes. I have a ton of outdoor sequences, ones in the dark, etc. and want natural colors for all of them to the best of it's ability. I'd rather me insert them and see what they look like than ask you for every single shot, y'know?

    Or maybe the piano and the rear walls weren't white.
    I actually asked my cousin about it and he then proceeded to...send me a picture of the piano...in his living room. Apparently that same piano was sold to him, lol. Now what are those odds? But it's safe to say it's white.

    I didn't use Tweak at all. I started with your "before" images and applied the filters I listed. ColorYUV(cont_u=20, cont_v=20) is about the same as Tweak(sat=1.08).
    I meant on the before images as well, I had Tweak on all of them with 1.4 saturation already, the only thing that changed from the befores and afters was me adding in your white balance code.

    So, in summary, you are chasing a dream if you think you can match real-life color. Yes, you can match what you remember that color to be, but as soon as you realize that is what you are doing, you will then understand that you are making an artistic decision -- your artistic decision -- as to what you think best represents the original color.
    Thanks for the long explanation btw.

    Then in terms of common codes (or how to make them) for natural daylight/night colors, different moods, etc. which hearkens back what I was just asking, is there somewhere that has a list of common ones so I can plug in to see what works best? I like the two that jagabo provided, but for other situations are they available somewhere for simpleton beginners like me? I don't know what I need to alter for daytime natural colors like you guys can do at will, for night time looks, different variations for all of those. If I have the options available to me, then I'll make the artistic decision on my own after inserting them one by one, but I don't know how to create these options for different looks/feels/naturalism other than the two jagabo posted here.
    Quote Quote  
  26. Originally Posted by CZbwoi View Post
    Then in terms of common codes (or how to make them) for natural daylight/night colors, different moods, etc. which hearkens back what I was just asking, is there somewhere that has a list of common ones
    There's no such thing because the colors problems differ because of what I said in post number 16.

    Originally Posted by CZbwoi View Post
    If you could provide basic guideline codes you use like this white balance one for indoor shots it'd be great
    Find something that you think should be white. Adjust the colors to make that object is white. Using an RGB histogram will help. Let's start with your 2.png image in post #19 (cropped to just the left half) and assume the piano should be white. Crop a small portion of the image so you only have the piano: Crop(618,208,32,32). Then use HistogramRGBLevels() to view an RGB Histogram:

    Name:  before.jpg
Views: 528
Size:  4.9 KB

    At the top left is the little patch of the piano, on the right are the RGB histograms. As you can see, reds are brighter than the greens, and blues are darker. So apply the RGBAdjust() filter, decreasing the reds, and increasing the blues RGBAdjust(r=0.93, b=1.14). Now the RGB histogram looks like:

    Name:  after.jpg
Views: 517
Size:  4.8 KB

    Now remove the cropping and look at the rest of the image:

    Click image for larger version

Name:	full.jpg
Views:	265
Size:	40.6 KB
ID:	37017

    It's not always this easy but that's a start. You can now adjust brightness, contrast, hue and saturation as necessary.
    Quote Quote  
  27. Everything you did is not happening for me, whatever I try to adjust in RGBAdjust() changes the hue of the entire thing including the HistogramRGBLevels() diagram. The level meters do no move at all...

    I also had to open it up in a new script because I don't know where to insert it into my current script, I get errors if I place them both after converttoRGB32, it points to the YtoUV line (video width ratio does not match any internal colorspace)...which leaves me having to erase everything that comes after it. I don't want to erase everything I have there so I had to paste it somewhere else for the time being.
    Quote Quote  
  28. Formerly 'vaporeon800' Brad's Avatar
    Join Date
    Apr 2001
    Location
    Vancouver, Canada
    Search PM
    RGBAdjust needs to come before HistogramRGBLevels, not after.
    Quote Quote  
  29. What's the script you're using now? If it's like the script in post #9 the RGBAdjust is meant to replace the darks=, brights=, overlay sequence. But the video is YV12 at that point so it needs to be converted to RGB. You're converting to RGB later for the ccd filter and you want to avoid multiple YUV/RGB conversions. So I'd try changing this sequence:

    Code:
    SeparateFields()
    darks=ColorYUV(off_u=0, off_v=0)
    brights=ColorYUV(off_u=16, off_v=-3)
    Overlay(darks, brights, mask=ColorYUV(cont_y=100, gamma_y=100, off_y=0))
    ColorYUV(gain_y=-20, gamma_y=50, off_y=-15, cont_u=50, cont_v=50)
    LoadVirtualDubPlugin("C:\Users\CZ\Desktop\Video Capture\VirtualDub-1.10.4\plugins32\ccd.vdf","ccd") 
    Y = last
    ConvertToRGB32()
    U = ccd(100,0).ccd(100,0).ConvertToYV12().UtoY()
    V = ccd(100,0).ConvertToYV12().VtoY()
    YtoUV(U, V, Y)
    Weave()
    to:

    Code:
    SeparateFields()
    ConvertToRGB32()
    RGBAdjust(r=0.93, b=1.14)
    ccd(100,0).ccd(100,0)
    ConvertToYV12()
    Weave()
    Last edited by jagabo; 15th May 2016 at 16:56.
    Quote Quote  
  30. RGBAdjust needs to come before HistogramRGBLevels, not after.
    Ah, novice mistake. I was doing everything in order literally as jagabo said it.


    jagabo:

    - Alright, I did so but now it looks different/worse than the original version you had with the darks/brights, it's more bland. I'd increase the saturation tweak it's at now of 1.3 to even more, but I don't want to make people look orange anymore. Is the original method you did in YUV better than this RGBAdjust way?

    Click image for larger version

Name:	s2.png
Views:	270
Size:	746.1 KB
ID:	37023
    Click image for larger version

Name:	s1.png
Views:	271
Size:	914.2 KB
ID:	37024

    - When I want to crop only a small part of the screen that could be white, how do I so do so without mindlessly guessing random dimensions? I don't know how you could've gotten the numbers Crop(618,208,32,32) of the piano unless you were able to rectangular marquee it somehow and it generates the numbers for you...

    - If I run into a video with no definitive white parts I can work with, and I can't "fix the white color balance", what's the next cause of action to fixing the colors to get it all right? Another specific color I jump to try to guess and alter? Using RGBAdjust or some other way?

    - You always alter the red and blue part of the RGB, no green. Is this generally how it is and I shouldn't mess with the green?

    - In your post, you moved the red and blue levels to line up exactly with the green one, the goal is to always have them lined up straight, correct?

    - For my night scenes, like the last couple pics in that list of pics I provided, you said I'd have to do something different other than finding a white balance like I'm doing here in these indoor rooms. What would I need to do or look for to fix in those clips to obtain the natural colors I want?
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!