Quote:
Originally Posted by juhok
|
thanks for this script, there still exhibit some light green and yellow after, so added camcorder color denoise on the top part and it works out pretty well.
Code:
LoadVirtualdubPlugin("VirtualDub-1.10.2\plugins\ccd_sse2.vdf", "CCD", 1)
AVISource("top green bar.avi")
assumetff()
nnedi3(field=-2)
pal=0 #set to 0 for NTSC (obviously would apply to an equivalent NTSC hi8 deck)
goodline=16#increase this until the color is fixed, refers to the cropped coordinates
newwidth=720#The final width of the new video
newheight=(pal==1)?576:480#The final height of the new video
#This script is not completely general, generally only even numbers are supported
converttoyuy2
badcolor=last.vtoy#This is where the green line comes from
fillcolor=badcolor.crop(0,goodline,0,-(newheight-goodline-2)).pointresize(newwidth/2,goodline)
fixcolor=stackvertical(fillcolor,badcolor.crop(0,goodline,0,0))
ytouv(last.utoy,fixcolor,last)
# add ccd on top part
ConvertToRGB32
temp = last
top = temp.CCD(100,1).crop(0,0,0,-(newheight-goodline))
bottom = temp.crop(0,goodline,0,0)
StackVertical(top, bottom)
ConvertToYV12(chromaresample="point") # convert back to yv12