I changed this:
Code:
#Add fades to some clips
clip3
clip3 = FadeOut(last, 30)
clip4
clip4 = FadeOut(last, 30)
clip5
clip5 = FadeOut(last, 30)
to this for faster running:
Code:
#Add fades to some clips
clip3=Clip3.FadeOut(30)
clip4=Clip4.FadeOut(30)
clip5=Clip5.FadeOut(30)
You don't need "last" in the original code. When you invoked the name of the clip it automatically became last.
The following is
not correct!
Code:
BottomField=SelectEven(). RemoveSpotsMC().RemoveSpotsMC3()
TopField=SelectOdd().RemoveSpotsMC().RemoveSpotsMC3()
Interleave(BottomField, TopField).AssumeBFF()
Even-numbered fields are always top fields, never bottom fields.
Even-numbered fields start on the top scanline and are numbered 0, 2, 4, 6, 8, etc. You can call them by any name you want. But physically they are the top fields and are always even numbered.
Physically, bottom fields never start at the top line. They are odd-numbrered fields starting at the second scanline, which is never the top line. They are numbered 1, 3, 5, 7, 9, etc. You can call them whatever you want. But phsyically they are the bottom fields and are always odd-numbered.
AssumeBFF() and AssumeTFF() have nothing to do with positioning the fields. They determine which fields play first, bottom or top. They handle
field playback priority only. They have no influence on field positions.
There is some line twitter on the guy's glasses. You can deinterlace the clip and then vertically resize to half-height, then upsize it back again. But this video is too soft and corrupt for that.
You are cropping interlaced YV12 vertically in groups of two pixels, which is a no-no.
Use YUY2 or RGB. Look atv the table halfway down this page:
http://avisynth.nl/index.php/Crop
Code:
Weave()
LimitedSharpenFaster()
Why are you weaving non-interlaced video and then sharpening it while it's re-interlaced?
You've done as well as you can with really bad color. The guy's hair is blue and the black lapel isn't black. Are those supposed to look that way?
code]
aud=NicMPG123Source(vidpath+"video2_before Tc0 L2 2ch 48 320 DELAY 0ms.mp2", Normalize=false)
vid=MPEG2Source(vidpath+"video2_before.d2v")
AudioDub(vid,aud)
LoadVirtualdubPlugin("D:\
VirtualDub\plugins\ColorM ill.vdf", "ColorMill")
################################################## #######################
/* ################## code below can't be used here ################
AssumeBFF()
clip1 = Trim(1505, 4271)
clip2 = Trim(9464, 11636)
clip3 = Trim(15587, 19197)
clip4 = Trim(25203, 28942)
clip5 = Trim(35200, 38568)
clip6 = Trim(43275, 45038)
#Add fades to some clips
clip3=Clip3.FadeOut(30)
clip4=Clip4.FadeOut(30)
clip5=Clip5.FadeOut(30)
vid2 = clip1 + clip2 + clip3 + clip4 + clip5 + clip6
vid2
Trim(400, 1300)
################## code above can't be used here ################ */
################################################## ######################
Levels(15, 1, 255, 16, 235, coring=false, dither=true)
ConvertToRGB32(interlaced=true, matrix="Rec601")
ColorMill(25700, 25700, 29277, 25700, 16996, 16962, 25700, 25700, 25700, 25152, 25685,\
25700, 25700, 1124, 1029)
ConvertToYV12(interlaced=true)
#For vertical ringing
FAN(lambda=5)
SeparateFields()
TopField=SelectEven().RemoveDirtMC(40,false)
BottomField=SelectOdd().RemoveDirtMC(40,false)
Interleave(TopField,BottomField)
#Noise removal
super=MSuper(pel=2, sharp=1)
backward_vec2 = MAnalyse(super, isb = true, delta =2, overlap=4)
backward_vec1 = MAnalyse(super, isb=true, delta=1, overlap=4)
forward_vec1 = MAnalyse(super, isb=false, delta=1, overlap=4)
forward_vec2 = MAnalyse(super, isb= false, delta=2, overlap=4)
MDegrain2(super, backward_vec1, forward_vec1, backward_vec2, forward_vec2, thSAD=400)
ChromaShift(C=4)
#Chroma bleeding
mergechroma(aWarpSharp(depth=25, thresh=0.5, blurlevel=2, cm=1, bm=0))
LimitedSharpenFaster()
AddGrainC(var=1.2)
Weave()
##-- Can't crop interlaced YV122 in vertical groups of 2 pixels. ##--
##-- Must use vertical groups of 4, or Use YUY2 or RGB. ##--
##--
ConvertToYUY2(interlaced=true)
Crop(28, 2. 0, -6).AddBorders(16,4,12,4)
/*For de-interlaced version
QTGMC(preset="medium",ChromaMotion=true)
VInverse2()
ConvertToRGB32(interlaced=false, matrix="Rec601")
*/
ConvertToRGB32(interlaced=true, matrix="Rec601")
return last
[/code]