View Full Version : how do i fix this overexposed red, yellow problem


lansing
4th June 2012, 18:22
the clip is from a old vhs record, the people's face all having these overexpose red and yellow on top of them. What filter can fix this?

I uploaded a sample here.

http://www.mediafire.com/?v9wngdg1i4njac0

StainlessS
4th June 2012, 18:59
I have not looked at the sample, but you might find any of the graffers in below link will
help you do the correction (or perhaps AVSPmod and it's user sliders to control color
correcting plugins). The below plugin graffers for ColorYUV2, RGBAdjust and Levels,
require a single RGB bitmap and allow you to play with the sliders to show what the
results would look like using the mentioned avisynth plugins. You would then
use the best settings found in the Avisynth plugin.

Good luck.
EDIT: Try all three, there are images of the graffers in the link.
If the over exposure has clipped the clip of the high's then there will be nothing left to recover.

http://forum.doom9.org/showthread.php?t=156774

StainlessS
4th June 2012, 20:57
Hi, nasty clip. Below a bit of script that may or may not be of use. Need to modify to taste.


avisource("d:\avs\avi\horrible sample.avi")
crop(28,4,-8,-4) # Adjust this later, just to get rid of borders when viewing histograms
Org=Last
ColorYUV(levels="PC->TV",autowhite=true,autogain=true) # Fix as best we can, wondering white balance

#Return convertToRGB() # Save image sequence for ColorYUV Graffer

ConvertToYV12() #Interlaced=true)

CC=-70 # Chroma contrast (Saturation), adjust about -60 to -100

ColorYUV(off_Y=-10,gain_y=10,gamma_y=-2,cont_u=CC,cont_v=CC) # reduce chroma saturation or whatever (keep contu/v same else color shift)

CNR2() # Chroma Stabilizer for analogic sources, see docs for args

Blur(0.0,1.0) # Get rid of interlace combing (maybe too late to do anything else)

#return Histogram(mode="levels") # View histogram

StackHorizontal(org,last)
EDITED: did this coloryuv thing on v2.6, maybe changed operation slightly in autowhite/balance
Both luma and chroma channels clipped and missing data.

lansing
4th June 2012, 22:41
the interlaced combing can be taking care by nonlinear smoothing loss-free filter in virtualdub.

I used highlightlimiter to bring down the highlight part so to recover some of the clipped parts, but then the whole picture became so red and orange-yellow casted on top, ie. the white dress became red.

I'll try your graffers to see how it goes.

StainlessS
4th June 2012, 23:35
The luma is clipped at 255, and
"ColorYUV(levels="PC->TV",autowhite=true,autogain=true)"

was used to correct wandering white balance and bring to TV range, after that you could use the
graffers (need at present rec.601).
Think (but not sure) that Vdub expects 601, and so will perrhaps lose 236 to 255 luma (loosing even more),
best bring in TV range in Avisynth.
In VDub, Colortools-VideoScope, can plainly see the chroma clipping.

EDIT: Try the script as provided, it has been edited since posting, considerably better than source,
could suffer further tweaking.

Mounir
5th June 2012, 02:03
The best i could do:
original:
http://imageupload.org/en/file/228136/original.jpg.html
New:
http://imageupload.org/en/file/228137/new.jpg.html

The Script used: http://www.mediafire.com/?rsz9t83a81u6jjj

edit:
Video (mpeg2 7mb) including denoising:
http://www.mediafire.com/?ts9cdiijqaqpnzk

full script:
http://www.mediafire.com/?3gzc2so61j00qkx

Tweak to your linking if necessary

Didée
5th June 2012, 02:54
Tweak(sat=0.5)

Oh, and it seems to be a fieldblended 50i --> 60i conversion, ConvertFPS() - style.

johnmeyer
5th June 2012, 06:05
I didn't try to deal with the field blending, but instead concentrated on the shimmering. Here's the result:

Somewhat better than original video (http://dl.dropbox.com/u/1561578/horrible%20sample%20(better).avi)

lansing
5th June 2012, 06:54
Oh, and it seems to be a fieldblended 50i --> 60i conversion, ConvertFPS() - style.

i suppose it was, as it was originally shot in hong kong and then transferred to the US. But how do you see that? I rarely see any ghosting in the clip.

johnmeyer
5th June 2012, 07:12
i suppose it was, as it was originally shot in hong kong and then transferred to the US. But how do you see that? I rarely see any ghosting in the clip.Run it through a simple separatefields() script.

LemMotlow
5th June 2012, 16:18
d l t d

lansing
14th June 2012, 16:51
Run it through a simple separatefields() script.

and how do i restore it back to 25fps?

johnmeyer
14th June 2012, 17:25
and how do i restore it back to 25fps?I was answering your question of "how do I see that." Using separatefield() you can see the individual fields. Since all you are doing is looking at the fields, the frame rate is irrelevant for that task.