View Single Post
Old 16th June 2009, 07:29   #1  |  Link
yup
Registered User
 
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
Sharpening VHS capture

Hi folk. Now I try improve quality from VHS capture. VHS tape from camcorder original (no generation copy). Quality very good only grain and white noise. Main idea from videofred thread, difference only that my source interlaced.
script:
Code:
SetMemoryMax(1152)
Loadplugin("MT.dll")
LoadPlugin("warpsharp.dll")
LoadPlugin("mt_masktools-25.dll")
LoadPlugin("SSE3Tools.dll")
LoadPlugin("RemoveGrainTSSE3.dll")
LoadPlugin("RemoveGrainSSE3.dll")
LoadPlugin("RepairSSE3.dll")
Import("LimitedSharpenFaster.avsi")
SetMTMode(5)
LSF_sharp_ness=250 LSF_radi_us=3  LSF_sub=1.5 #first sharpening parameters (LimitedSharpenFaster) sub=subsampling
W=720  H=576
DirectShowSource("my.avi")
SetMTMode(2)
source=AssumeTFF()
noise=source.nnedi2(field=-2)
supernoise = MSuper(noise)
backward_vec1=supernoise.MAnalyse(isb = true, delta = 2,blksize=8, overlap=4,dct=0, chroma=true, badSAD=1000)
forward_vec1=supernoise.MAnalyse(isb = false, delta = 2,blksize=8, overlap=4,dct=0, chroma=true, badSAD=1000)
backward_vec2=supernoise.MAnalyse(isb = true, delta = 4,blksize=8, overlap=4,dct=0, chroma=true, badSAD=1000)
forward_vec2=supernoise.MAnalyse(isb = false, delta = 4,blksize=8, overlap=4,dct=0, chroma=true, badSAD=1000)
backward_vec3=supernoise.MAnalyse(isb = true, delta = 6,blksize=8, overlap=4,dct=0, chroma=true, badSAD=1000)
forward_vec3=supernoise.MAnalyse(isb = false, delta = 6,blksize=8, overlap=4,dct=0, chroma=true, badSAD=1000)
noise.MDegrain3(supernoise,backward_vec3,backward_vec2,backward_vec1,forward_vec1,forward_vec2,forward_vec3,thSAD=400,thSADc=400,plane=4)
#HDRAGC()
limitedSharpenFaster(last,smode=3,strength=LSF_sharp_ness,overshoot=50,radius=LSF_radi_us, ss_X=LSF_sub, SS_Y=LSF_sub, dest_x=W,dest_y=H)
AssumeTFF().SeparateFields().SelectEvery(4,0,3)
StackVertical(SeparateFields(source),last)
#Weave()
I use MDegrain on bobed frames, but with field order (even with even, odd with odd), because sharpening better work on bobed frames.
HDRAGC now give flickering, I will be try AutoLevels.
Any suggestion and advice welcome!
With kind regards yup.
yup is offline   Reply With Quote