Upload a sample, otherwise we can't help you.
From what I can see, though, you are filtering out issues before deinterlacing.
Just deinterlace first, then use other filters (unless they specifically support interlaced contents and you choose the right mode), otherwise you'll screw up fields.
You could try with something simpler, like:
Code:
#Deinterlace
tdeint(mode=2, order=-1, field=-1, mthreshL=6, mthreshC=6, map=0, type=2, debug=false, mtnmode=1, sharp=true, cthresh=6, blockx=16, blocky=16, chroma=true, MI=64, tryWeave=true, link=1, denoise=true, slow=2, opt=4)
#Denoise
dfttest(sigma=64, tbsize=1, lsb_in=false, lsb=false, Y=true, U=true, V=true, opt=3, dither=0)
#Debanding
f3kdb(range=15, Y=45, Cb=30, Cr=30, grainY=0, grainC=0, sample_mode=2, blur_first=true, dynamic_grain=false, opt=3, mt=true, keep_tv_range=true, input_depth=8, output_depth=8)
I don't think you need that much filtering, nor SRestore.
If there are still dups after deinterlacing, it means that it's telecined.
In that case, use this instead:
Code:
tfm(mode=1,pp=5,slow=2,micmatching=2,clip2=tdeint(mode=2,type=3))
tdecimate()
Besides, it seems that levels are pretty screwed up, but without a sample I don't know whether it's the source or one of the filters you used.
Last but not least, which version of Avisynth are you using?
Is it Avisynth or Avisynth+?
I'm asking, 'cause some of the plugins you used are really old.