Hello, I am trying to restore 50 VHS, all is home video, some are very shaky. I use de shaker with virtual dub and getting very good result.now second step with cleaning and color correction.that sample I had uploaded, I am feel video is very yellow, I am trying to restore with script I posted below, but do not get correct color.please advise my about this script, is all correct or not, if not where I am doing wrong.thanks in advance
ylevels(0,0.9,255,16,255) # adjust Luma levels only (adjust according to your needs)
tweak(sat=1.0,cont=1.0,bright=-4,coring=false) # adjust saturation, contrast, etc...
QTGMC( Preset="Medium", EZDenoise=2.5, NoisePreset="Medium" )
pointresize(last.width, last.height*2).ConverttoRGB32(matrix="rec601",inte rlaced=true).pointresize(last.width, last.height)
## Remove some chroma noise with CCD in RGB (gives best results)
## pointresizing for lossless RGb <> YCrCb convertion
LoadVirtualDubPlugin("F:\software\VirtualDub 1.9.11 + Filters\Plugins\Camcorder_Color_Denoise_sse2.vdf", "CCD", 1)
CCD(15,1) # from 0 to 100 # Default =30 / 15‐30 = best results
# Sharpening (small‐medium) with msu smart sharpen
LoadVirtualDubPlugin("F:\software\VirtualDub 1.9.11 + Filters\Plugins\msu_sharpen.vdf", "MSUSmartSharpen", 1)
MSUSmartSharpen(1) # from 0 (small overall) to 5 (mad)
pointresize(last.width, last.height*2).converttoyv12(matrix="Rec601",inter laced=true).pointresize(last.width, last.height)
# Denoising with Mdegrain1 for not too strong noise and interlaced source
fields=AssumeTFF().SeparateFields() # or AssumeBFF
super = MSuper(fields)
backward_vec2 = MAnalyse(super, isb = true, delta = 2, overlap=2)
forward_vec2 = MAnalyse(super, isb = false, delta = 2, overlap=2)
MDegrain1(fields, super, backward_vec2,forward_vec2,thSAD=400)
+ Reply to Thread
Results 1 to 7 of 7
Part of the problem is lens flare, part of it is capturing at illegal video levels that leaves brights and upper midtones foggy. Jagabo's corrections should work pretty well for the sample posted. Skin tones still don't have enough blue, but that can be fixed in VirtualDub with something like ColorMill.
But your script makes no sense:
Why are you resizing twice?
Why are you separating fields with progressive video?
And so forth. Just thought I'd try saving you some trouble and destruction.- My sister Ann's brother
Thanks for help, I am new in this, please help me correct this script.
This can be processed in dozens of ways. I used jagabo's color routine in the script below. You didn't answer the question about retaining alternate fields, so I kept SelectEven() in the script.
- Don't use more filters than you really need.
- Too much denoising looks artificial.
- Denoise first, sharpen later. Don't sharpen noise.
- Avoid multiple colorspace changes. If an Avisynth plugin can perform as well or better than an RGB filter, use Avisynth in the original YUV color space. Sometimes you don't have a choice.
- Don't use MSU filters.
Correct color balance is very subjective. This video is shot in heavy overcast light. It won't have the same bright colors as sunlight.
AVISource("G:\recording(20151117-216).avi") assumetff() # --- color/levels correction by jagabo ColorYUV(gain_y=-20, off_y=-12, off_u=-1, off_v=-3, cont_u=-20, cont_v=-20) Crop(8,2,-8,-10).AddBorders(0,6,0,6) converttoyv12(interlaced=true) QTGMC(Preset="fast",EZDenoise=4,ChromaNoise=true,GrainRestore=0.3,border=true) SelectEven() # --- medium sharpening, replace terrible MSU filter LSFMod(edgemode=2)
Last edited by LMotlow; 3rd Apr 2017 at 05:49.- My sister Ann's brother
I usually don't like to use EZDenoise over 2.0 as it starts losing detail and generating visible motion artifacts. Adding DenoiseMC=true should help.
The only place there is significant chroma noise is at the border between the bright sky and the tarp near the top of the frame. I wouldn't bother using CCD just for that.
I don't think it really needs EZDenoise anyway, makes it look a little raw. ChromaNoise=true should be enough.
Usually if things look too yellow add blue, not red. Yellow already has red in it.
I encoded as interlaced for disc playback. Probably progressive encode would play better on a slow PC.
Last edited by LMotlow; 3rd Apr 2017 at 13:55.- My sister Ann's brother