AlekseiV
30th September 2010, 17:10
I have obviously done something wrong with my scripts.
I have a hybrid film/video DVD ("A Colbert Christmas"). I used two scripts based off AnimeIVTC to do the deinterlacing/detelecining for VFR output, but it fails on the credits section; it can't decide if they are interlaced or film, so on some frames it deinterlaces them and on others it detelecines them. Badly, since the credits are 30i.
Here are the two scripts I've used:
#Pass 1
SetMemoryMax(800)
i = DGDecode_mpeg2source("W:\Ripping\A_COLBERT_CHRISTMAS\VIDEO_TS\Colbert.d2v", info=3)
input = i.ColorMatrix(hints=true, interlaced=true, threads=0)
edeint = input.nnedi2(-2)
emask = input.tmm(1)
tovfr = input.TFM(slow=2, output="tfm.txt",clip2=input.TDeint(2,edeint=edeint,emask=emask))
pass1 = tovfr.TDecimate(4, output="stats.txt")
return pass1
#Pass 2
SetMemoryMax(800)
SetMTMode(2,5)
input = AviSource("Colbert_pass1.avi").Crop(10,18,-6,-18)
SetMTMode(2)
decimated = input.TDecimate(5,hybrid=2,tfmin="tfm.txt",input="stats.txt",mkvout="timecodes.txt", batch=true)
return decimated
I don't want to use the full AnimeIVTC script since it is huge and complicated and has hanged on me.
How do I tell Avisynth to just do a straight deinterlace on frames 77060 to 79652 during the first pass? Or is my script terrible and I need to change something?
Thanks.
I have a hybrid film/video DVD ("A Colbert Christmas"). I used two scripts based off AnimeIVTC to do the deinterlacing/detelecining for VFR output, but it fails on the credits section; it can't decide if they are interlaced or film, so on some frames it deinterlaces them and on others it detelecines them. Badly, since the credits are 30i.
Here are the two scripts I've used:
#Pass 1
SetMemoryMax(800)
i = DGDecode_mpeg2source("W:\Ripping\A_COLBERT_CHRISTMAS\VIDEO_TS\Colbert.d2v", info=3)
input = i.ColorMatrix(hints=true, interlaced=true, threads=0)
edeint = input.nnedi2(-2)
emask = input.tmm(1)
tovfr = input.TFM(slow=2, output="tfm.txt",clip2=input.TDeint(2,edeint=edeint,emask=emask))
pass1 = tovfr.TDecimate(4, output="stats.txt")
return pass1
#Pass 2
SetMemoryMax(800)
SetMTMode(2,5)
input = AviSource("Colbert_pass1.avi").Crop(10,18,-6,-18)
SetMTMode(2)
decimated = input.TDecimate(5,hybrid=2,tfmin="tfm.txt",input="stats.txt",mkvout="timecodes.txt", batch=true)
return decimated
I don't want to use the full AnimeIVTC script since it is huge and complicated and has hanged on me.
How do I tell Avisynth to just do a straight deinterlace on frames 77060 to 79652 during the first pass? Or is my script terrible and I need to change something?
Thanks.