+ Reply to Thread
Results 1 to 30 of 30
-
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.
-
do you have another image / frame another video ?
to show what the color is supposed to look like ? aka reference -
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.
-
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 -
There's a a sample in post #5 but it's been through some bad processing and isn't an original.
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 05:07.
- My sister Ann's brother -
-
The blue channel is hosed.
[Attachment 43948 - Click to enlarge]
One thing to try, is faking it:
[Attachment 43949 - Click to enlarge]
In Avisynth,Code:MergeRGB( \ ShowRed, \ ShowGreen, \ Grayscale.ShowBlue )
-
Here is the original.
One thing to try, is faking it: -
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:
[Attachment 43954 - Click to enlarge] -
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()Last edited by manono; 9th Dec 2017 at 14:28.
-
-
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.
-
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 00:35.
-
-
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 22:11.
- My sister Ann's brother -
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 -
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 -
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.
-
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) -
I changed it, but it still says invalid arguments to function "ColorYUV" on line 2 (if the white space is removed).
-
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)
-
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.
-
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.
Thanks for your help. -
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 -
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.
That's the whole point of this thread - to try and make something decent of that lousy source. And something decent was made.
Similar Threads
-
How the "see" correct BT.709 color using VLC in a PC?
By marcorocchini in forum Newbie / General discussionsReplies: 2Last Post: 25th Jun 2017, 10:57 -
How do I correct audio levels on video for playback on a tv?
By okizen in forum AudioReplies: 5Last Post: 2nd Jun 2016, 17:37 -
How we can correct colors of video by Power Director in video playing mood.
By nusratjaveid in forum EditingReplies: 0Last Post: 10th May 2015, 04:33 -
First time working with video, looking for the correct tools
By ajhbubs84 in forum Newbie / General discussionsReplies: 3Last Post: 9th Feb 2015, 12:15 -
how would I color correct a video shot under halogen lights
By stoneystevenson in forum Newbie / General discussionsReplies: 3Last Post: 16th Jan 2015, 10:25