function FOrder(clip c) { return GetParity(c)? 1:0 }
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\it.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\ColorMatrix.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\UnDot.dll")
Mpeg2Source("c:\fmp1-dg.d2v",iDct=4)+Mpeg2Source("c:\fmp2-dg.d2v",iDct=4)
undot()
IT(fps=30, ref="TOP", blend=false)
undot()
Telecide(order=FOrder(),guide=0,post=0)
undot()
p1=trim(0,638)
p2=trim(639,742).Decimate(cycle=5,quality=3).AssumeFPS(last.framerate)
p3=trim(743,2696)
p4=trim(2697,39184).Decimate(cycle=5,quality=3).AssumeFPS(last.framerate)
p5=trim(39185,41866)
p6=trim(41867,42467).Decimate(cycle=5,quality=3).AssumeFPS(last.framerate)
p7=trim(42468,43106)
p8=trim(43107,43210).Decimate(cycle=5,quality=3).AssumeFPS(last.framerate)
p9=trim(43211,45164)
p10=trim(45165,81652).Decimate(cycle=5,quality=3).AssumeFPS(last.framerate)
p11=trim(81653,84334)
p12=trim(84335,84935).Decimate(cycle=5,quality=3).AssumeFPS(last.framerate)
assembly=p1Lanczos4Resize(1440,480)crop( 8, 2, -8, 0)ColorMatrix()Lanczos4Resize(848,480)fft3dfilter(sigma=1.0, plane=4, bw=12, bh=12, bt=4, ow=6, oh=6).undot()+p2Lanczos4Resize(1440,480)ColorMatrix()undot().crop( 8, 2, -8, 0)Lanczos4Resize(848,480)fft3dfilter(sigma=1.0, plane=4, bw=12, bh=12, bt=4, ow=6, oh=6).undot()+p3Lanczos4Resize(1440,480)crop( 8, 2, -8, 0)ColorMatrix()Lanczos4Resize(848,480)fft3dfilter(sigma=1.0, beta=1.0, plane=4, bw=12, bh=12, bt=4, ow=6, oh=6).undot()+p4Lanczos4Resize(1440,480)crop( 8, 2, -8, 0)ColorMatrix()Lanczos4Resize(848,480)fft3dfilter(sigma=1.0, plane=4, bw=12, bh=12, bt=4, ow=6, oh=6).undot()+p5Lanczos4Resize(1440,480)crop( 8, 2, -8, 0)ColorMatrix()Lanczos4Resize(848,480)fft3dfilter(sigma=1.0, plane=4, bw=12, bh=12, bt=4, ow=6, oh=6).undot()+p6Lanczos4Resize(1440,480)crop( 8, 2, -8, 0)ColorMatrix()Lanczos4Resize(848,480)fft3dfilter(sigma=1.0, plane=4, bw=12, bh=12, bt=4, ow=6, oh=6).undot()+p7Lanczos4Resize(1440,480)crop( 8, 2, -8, 0)ColorMatrix()Lanczos4Resize(848,480)fft3dfilter(sigma=1.0, beta=1.0, plane=4, bw=12, bh=12, bt=4, ow=6, oh=6).undot()+p8Lanczos4Resize(1440,480)crop( 8, 2, -8, 0)ColorMatrix()Lanczos4Resize(848,480)fft3dfilter(sigma=1.0, plane=4, bw=12, bh=12, bt=4, ow=6, oh=6).undot()+p9Lanczos4Resize(1440,480)crop( 8, 2, -8, 0)ColorMatrix()Lanczos4Resize(848,480)fft3dfilter(sigma=1.0, plane=4, bw=12, bh=12, bt=4, ow=6, oh=6).undot()+p10Lanczos4Resize(1440,480)crop( 8, 2, -8, 0)ColorMatrix()Lanczos4Resize(848,480).undot()+p11Lanczos4Resize(1440,480)crop( 8, 2, -8, 0)ColorMatrix()Lanczos4Resize(848,480)+p12Lanczos4Resize(1440,480)crop( 8, 2, -8, 0)ColorMatrix()Lanczos4Resize(848,480).fft3dfilter(sigma=1.0, plane=4, bw=12, bh=12, bt=4, ow=6, oh=6).undot()
undot()
return assembly
undot()