shoopdabloop
7th June 2009, 11:32
First off, here's my script:
loadcplugin("c:\program files\avisynth 2.5\plugins\yadif.dll")
AviSource("tape 5 - clip 007.avi").AssumeBFF()
MT("removegrain()",0,splitvertical=true)
MT("yadif()",0,splitvertical=true)
Trim(1,last.framecount)
Spline36Resize(748,496)
mdata = DePanEstimate(trust=0,pixaspect=0.9091)
DePanStabilize(data=mdata,dxmax=14,dymax=14,mirror=12,pixaspect=0.9091)
Crop2(720,356)
MT("fft3dfilter(sigma=3)",0,splitvertical=true,overlap=2)
MT("warpsharp(58)",0)
AddBorders(0,62,0,62)
Here's a small frame sample: (after processing)
http://img191.imageshack.us/img191/7597/cyan.png
I want to get rid of the weird cyan-tinted areas in the highlighted box.
Inspector.Gadget
7th June 2009, 12:57
Admittedly my knowledge of rainbowing is slight, but isn't most of that color just part of the scene because the light source is behind the cyan object on the windowsill?
shoopdabloop
7th June 2009, 19:58
The effect is still slightly there before processing, so Yadif is probably making it stronger when interpolating.
But Inspector.Gadget may be right..... I just thought it was some chroma or luma issue or something.
scharfis_brain
7th June 2009, 20:00
maybe it is a debayer artifact from the ccd/cmos of your camera.
please provide an unprocessed sample video.
koopa
16th June 2009, 04:25
I have the EXACT same problem, and it's really irritating me.
http://www.2shared.com/file/6331395/925e9499/Sample.html
The worst thing is that the inputs off this DV cam are completely clean, but when it comes in and out of the DVR box, it gets all aliased and rainbowy.
Two questions:
1) What is a good script to de-antialias this vid, and
2) What causes this error, is it the worlds worst resize?
Cheers!
koopa
16th June 2009, 06:50
Alright, I've hacked together a script
**********************************************
LoadVirtualDubPlugin("C:\1Drv\VirtualDub-1.7.8\plugins\msu_smartdeblock.vdf","MSU_Smart_Deblocking", 0)
directshowsource("sample.avi")
converttoyv12()
spline36resize(352,288)
Bifrost(scenelumathresh=2,altclip=SSIQ(11,300,false),interlaced=false)
spline36resize(704,576)
source=directshowsource("sample.avi").converttoyv12()
MergeLuma(source, 1)
ConvertToRGB32.MSU_Smart_Deblocking(1, 1, 1, 1)
ConvertToYuy2()
saturation_v = 1.12
cv = - (1-saturation_v)*256
ColorYUV(gain_y=-26,cont_y=50,cont_v = cv, opt="coring" )
NNEDI().turnright().NNEDI().turnleft()
source=last
backward_vec2 = source.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=4, sharp=2, idx = 1, truemotion=true)
backward_vec1 = source.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=4, sharp=2, idx = 1, truemotion=true)
forward_vec1 = source.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=4, sharp=2, idx = 1, truemotion=true)
forward_vec2 = source.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=4, sharp=2, idx = 1, truemotion=true)
smooth = last
smooth.MVDegrain2(backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=400,idx=1)
LimitedSharpenFaster(SMode=4,LMode=3,Strength=120,wide=true)
**********************************************
It uses Bifrost to de-rainbow, but because the rainbow effect is so bad, I separated the luminance and chrominance, decreased the resolution of the chrominance, then Bifrosted it, then spline36'd it back to the original res and replaced the colour of the original video. There has been some loss of colour resolution, but the tradeoff seems worth it.
I then fixed the colour/luminance levels, antialiased the whole thing with NNEDI (seemed much better than EEDI2), temporal denoised it, and sharpened it.
There has been some blurring of the colour, some oversharpening of contrasts and over-smoothing of flat surfaces, but otherwise it has cleaned up the video quite a lot.
Please suggest anything that would help further, or suggest what the hell did this to the footage of some nice DV cams!
Cheers
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.