Okay I changed my script a bit. But I still need advice to see if it is correct. I am converting VHS -> DV -> DVD. Do I have the DeSpot line correct? I assume I don't need "interlaced=true" for the DeSpot plugin? What about ConvertToYUY2()? Is it best to do this, before Weave()?


Code:
AviSource("f:\video.avi", fourCC="cdvc")
LoadPlugin("d:\program files\video\avisynth\plugins\despot.dll")
LoadPlugin("d:\program files\video\avisynth\plugins\depan.dll")
LoadPlugin("d:\Program Files\video\AviSynth\plugins\reinterpolate411.dll")
#
# Fix DV to DVD color (Use before any ConvertTo... function.)
reinterpolate411()
#
# Assume Bottom Field First
AssumeBFF()
#
# Separate Fields from Frame
SeparateFields()
# ConvertToYV12
v=ConvertToYV12()
#
# Makes 3 copies of each frame for motion compensation
d = DePanEstimate(v,range=1, trust=3, log="depan.log")
DePanInterleave(v,data=d, prev=1, next=1, matchfields=true)
#
# Despot - remove noise
DeSpot(p1=24, p2=12, pwidth=20, pheight=4, mthres=20, motpn=true, dilate=1, seg=2)
#
# Recover original frame
SelectEvery(3, 1)
#
# convert back to YUY2 for Cinemacraft Encoder
ConvertToYUY2()
#
# Combine both fields back into a frame
Weave()