VideoHelp Forum

Try DVDFab and copy Ultra HD Blu-rays and DVDs! Or rip iTunes movies and music! Download free trial !
+ Reply to Thread
Results 1 to 30 of 30
Thread
  1. Click image for larger version

Name:	capture.png
Views:	135
Size:	1,014.7 KB
ID:	43945

    I can't seem to improve the image.
    Quote Quote  
  2. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    What's your reference?

    Scott
    Quote Quote  
  3. I'm not sure what you mean. I know I can't use a white balance tool. It won't do much to correct the image.
    Quote Quote  
  4. Member
    Join Date
    Jan 2007
    Location
    United States
    Search Comp PM
    do you have another image / frame another video ?

    to show what the color is supposed to look like ? aka reference
    Quote Quote  
  5. No, I am not sure how it should look like. I just know that some types of lighting negatively affects the color accuracy of the camera.
    Image Attached Files
    • File Type: mp4 08.mp4 (31.81 MB, 187 views)
    Quote Quote  
  6. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    The lighting (both lamp type and default white point), the WB setting on the cam, the color(s) of the walls and other reflectors, all affect the look.
    Skin tone might have been a reference, but there's only a very small sliver. Hair color? Emergency exit sign should be standardized, but not sure about that one.

    Scott
    Quote Quote  
  7. Post a sample of the video.
    Quote Quote  
  8. Member
    Join Date
    May 2014
    Location
    Memphis TN, US
    Search PM
    Originally Posted by manono View Post
    Post a sample of the video.
    There's a a sample in post #5 but it's been through some bad processing and isn't an original.

    Originally Posted by Hypersonic1 View Post
    No, I am not sure how it should look like. I just know that some types of lighting negatively affects the color accuracy of the camera.
    That "sample" is not an original capture. It's VHS or other analog tape capture to a lossy DV codec, , and re-encoded (as interlaced?) to another lossy codec. That will also affect what you can do with it because you don't have the original color data. And who wants to fool with the distortion your re-encoding caused? The lighting is indoor fluorescent, which also affects the color. Don't you have a piece of the unprocessed original capture? Second question, do you know what the terms "unprocessed" and "original" refer to?
    Last edited by LMotlow; 9th Dec 2017 at 06:07.
    - My sister Ann's brother
    Quote Quote  
  9. Originally Posted by LMotlow View Post
    Originally Posted by manono View Post
    Post a sample of the video.
    There's a a sample in post #5 but it's been through some bad processing and isn't an original.

    Originally Posted by Hypersonic1 View Post
    No, I am not sure how it should look like. I just know that some types of lighting negatively affects the color accuracy of the camera.
    That "sample" is not an original capture. It's VHS or other analog tape capture to a lossy DV codec, , and re-encoded (as interlaced?) to another lossy codec. That will also affect what you can do with it because you don't have the original color data. And who wants to fool with the distortion your re-encoding caused? The lighting is indoor fluorescent, which also affects the color. Don't you have a piece of the unprocessed original capture? Second question, do you know what the terms "unprocessed" and "original" refer to?
    Yes, I know what you mean. Actually, it was uncompressed 422 encoded to lossy H.264. I was worried about the large file size. How long should the video be because even a few seconds is large?
    Quote Quote  
  10. The blue channel is hosed.
    Image
    [Attachment 43948 - Click to enlarge]


    One thing to try, is faking it:
    Image
    [Attachment 43949 - Click to enlarge]


    In Avisynth,
    Code:
    MergeRGB(
    \   ShowRed,
    \   ShowGreen,
    \   Grayscale.ShowBlue )
    Still leaves lots of secondary issues - blown out highlights, fringing, shading. Good luck with all that.
    Quote Quote  
  11. Here is the original.

    One thing to try, is faking it:
    Doesn't that just make the image black and white?
    Image Attached Files
    Quote Quote  
  12. Originally Posted by Hypersonic1 View Post
    Doesn't that just make the image black and white?
    Nope. You copy grayscale (luminance) information to the blue channel and leave the other two channels alone. The result is posted above and while it's not pretty, it's not grayscale. I show the AviSynth script I used, but the same thing can be done with many other programs.

    BTW here's the blue channel alone - overloaded by the fluorescent lights (I guess) and beyond color correction:
    Image
    [Attachment 43954 - Click to enlarge]
    Quote Quote  
  13. So there is nothing that I can do?
    Quote Quote  
  14. Thanks, LMotlow. Don't know why I didn't notice the link 2 posts above mine.

    Since I work almost entirely with black and white sources, I've had next to no experience with the AviSynth filter GamMac. But it does seem to make a big improvement and I'm sure it can be tweaked to give better results. Notice the huge gamma boost to the blues.

    ConvertToRGB24()
    GamMac()
    ConvertToYV12()
    Image Attached Thumbnails Click image for larger version

Name:	GamMac.jpg
Views:	85
Size:	75.8 KB
ID:	43956  

    Last edited by manono; 9th Dec 2017 at 15:28.
    Quote Quote  
  15. From the earlier mp4 file. The guy's a bit too purple, over saturated, and needs a little more adjustment...

    Code:
    brights = ColorYUV(off_u=61, off_v=-5)
    darks = ColorYUV(off_v=-2)
    bmask = ColorYUV(gain_y=100, off_y=-40, gamma_y=50).GreyScale()
    
    Overlay(darks, brights, mask=bmask)
    Click image for larger version

Name:	Untitled.jpg
Views:	52
Size:	43.1 KB
ID:	43957
    Quote Quote  
  16. I initially assumed the walls were white but that made the guy look even more purple. So I used the sign on the wall as my white reference.
    Quote Quote  
  17. Right, I also noticed GamMac at default settings made the guy's clothes (and the ceiling) purple-looking. I didn't check on saturation. I was only trying to demonstrate that something can be done with it, and if it were my video I'd have made it look much better. And you demonstrated that not only can something be done, but that it can come out looking decent. Nice work.
    Last edited by manono; 10th Dec 2017 at 01:35.
    Quote Quote  
  18. Originally Posted by manono View Post
    I was only trying to demonstrate that something can be done with it
    Same here. He can fine tune the mask, adjust the saturation, levels, etc. to get the look he wants.
    Quote Quote  
  19. Unfortunately, I don't understand the v's and y's. I wish I could use Premiere instead of Avisynth.
    Last edited by Hypersonic1; 9th Dec 2017 at 22:36.
    Quote Quote  
  20. Member
    Join Date
    May 2014
    Location
    Memphis TN, US
    Search PM
    Originally Posted by jagabo View Post
    Originally Posted by manono View Post
    I was only trying to demonstrate that something can be done with it
    Same here. He can fine tune the mask, adjust the saturation, levels, etc. to get the look he wants.
    Won't be easy. Make adjustments for one segment of the clip, other segments get wacky. It ain't easy trying to out-guess and out-distort the camera's auto controls. Besides the lighting problem and color reflecting off the walls, the camera's autocolor and autowhite change levels, gamma, and color balance at least 3 times during the clip. Compromise is all you can do, thanks to the camera's automatic "features".

    Jagabo's sample is neat work, even if the sign on the wall isn't white (it's cyan) and the guys look purple (because there's too much blue), but reduce blue and you're almost back where you started with yellow-green. Hospital hallway walls sre almost always really white or off-white, maybe with a very pale institutional-green tint, but you'll never get there with that lighting reflected off the semi-gloss surface. Jagabo's fix is about as clean as it will get, even if you tweak it in Premiere.

    Those camera features are the work of evil spirits. When Hollywood shoots scenes like this they bring their own lights and expose manually with compensating filters, and then the lab guys apply an LUT color correction scheme. It takes a little more than Premiere Pro, which is fine for amateurs. What it takes is a few million bucks.
    Last edited by LMotlow; 9th Dec 2017 at 23:11.
    - My sister Ann's brother
    Quote Quote  
  21. Originally Posted by Hypersonic1 View Post
    Unfortunately, I don't understand the v's and y's. I wish I could use Premiere instead of Avisynth.
    If you want something close to jagabo's result use the channel mixer in PP . I just "eyeballed" this but effect => channel mixer (RR 105, GG 100, BR 25, BG 25, BB 120) . Adjust it how you want


    Or you can do the channel swap similar to RR42's approach in AE . You can do a weighted channel repair (you might not want 50-50) using shift channels , to reconstruct the B from the R and G instead of greyscaling it e.g. blue to red, blue to green, original blue . To toggle just adjust opacity layers . (or you still have the option to greyscale the blue). Same thing in avisynth could be done using merge() with the weights, and mergergb()


    A third approach is to use the color cast removal, eye dropper technique . Similar to photoshop where you pick a white, middle grey, and black point and it will shift the RGB curves. You can do that in color finesse for example in AE . CC Color Neutralizer in AE is basically very similar


    A fourth is to selectively desaturate a range . For example the hue/saturation filter affecting "yellows"


    You can mix and match the approaches to maybe get slightly better results . But the key thing to remember is you will never get something looking completely normal because the blue channel is crushed and missing so much information
    Quote Quote  
  22. I am trying to add that code, but I am getting the error:
    Avisynth open failure:
    Script error: Invalid arguments to function "ColorYUV"

    video = AviSource("c:\videos\test.avi")

    brights = ColorYUV(off_u=61, off_v=-5)
    darks = ColorYUV(off_v=-2)
    bmask = ColorYUV(gain_y=100, off_y=-40, gamma_y=50).GreyScale()
    Overlay(darks, brights, mask=bmask)

    video = ConvertToYV12(video, interlaced=true)
    video = AssumeBFF(video)
    video = QTGMC(video,Preset="Placebo",EZDenoise=1.5)
    return video
    Quote Quote  
  23. Remember, when you don't specify a stream by name the stream "last" is used. You have created a stream called video. But all your ColorYUV calls are trying to use stream last.
    Quote Quote  
  24. Keep it simple, especially if you don't fully understand what you're doing and/or are using bits and pieces of scripts you saw in different places. This might work:

    AviSource("c:\videos\test.avi")

    brights = ColorYUV(off_u=61, off_v=-5)
    darks = ColorYUV(off_v=-2)
    bmask = ColorYUV(gain_y=100, off_y=-40, gamma_y=50).GreyScale()
    Overlay(darks, brights, mask=bmask)

    ConvertToYV12( interlaced=true)
    AssumeBFF()
    QTGMC(Preset="Placebo",EZDenoise=1.5)
    Quote Quote  
  25. I changed it, but it still says invalid arguments to function "ColorYUV" on line 2 (if the white space is removed).
    Quote Quote  
  26. Code:
    AviSource("c:\videos\a.avi")
    ConvertToYV12(interlaced=true)
    brights = ColorYUV(off_u=61, off_v=-5)
    darks = ColorYUV(off_v=-2)
    bmask = ColorYUV(gain_y=100, off_y=-40, gamma_y=50).GreyScale()
    Overlay(darks, brights, mask=bmask)
    AssumeBFF()
    QTGMC(Preset="Placebo",EZDenoise=1.5)
    It works now. I had to convert to YV before using ColorYUV. However, it would only let me choose YV12; YV16 didn't work.
    Quote Quote  
  27. That's why I said 'might', in case your original video wasn't already YV12 (or YUY2?). You never said, we didn't have a source video to use for testing, and all we had to go on was an already YV12 MP4. I'm glad you got it going.
    Quote Quote  
  28. You never said, we didn't have a source video to use for testing, and all we had to go on was an already YV12 MP4.
    Post #11 is uncompressed 422.

    Thanks for your help.
    Quote Quote  
  29. aBigMeanie aedipuss's Avatar
    Join Date
    Oct 2005
    Location
    666th portal
    Search Comp PM
    what f'ing good is the 08.avi? looks like a couple seconds of a drunk walking away down a plain hall. no color references available at all.
    --
    "a lot of people are better dead" - prisoner KSC2-303
    Quote Quote  
  30. Originally Posted by Hypersonic1 View Post
    Post #11 is uncompressed 422.
    Damn, that's twice I missed the videos you uploaded. I apologize. Had I seen and downloaded that one I would have moved the 'ConvertToYV12(Interlaced=True)' line where it was supposed to go in the script. But you figured it out yourself.

    Originally Posted by aedipuss View Post
    what f'ing good is the 08.avi? looks like a couple seconds of a drunk walking away down a plain hall. no color references available at all.
    That's the whole point of this thread - to try and make something decent of that lousy source. And something decent was made.
    Quote Quote  



Similar Threads