Log in

View Full Version : Hybrid source with interlaced credits -- how to work with?


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.

Vitaliy Gorbatenko
1st October 2010, 04:36
Split video to parts and deinterlace it separately.
or use a QTGMC with desire frame rate...
QTGMC().srestore(frate=23.976)

AlekseiV
2nd October 2010, 05:55
Split video to parts and deinterlace it separately.
or use a QTGMC with desire frame rate...
QTGMC().srestore(frate=23.976)Wouldn't this make my output be CFR?

Motenai Yoda
2nd October 2010, 15:30
u can trim and deinterlace them before tdecimate
ie


SetMemoryMax(800)
pointX=55546#the last frame of video before credits

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))
credits = input.qtgmc().srestore(frate=30.0/1.001)
deinterlaced = trim(tovfr, 0, pointX)+trim(credits, pointX+1, 0)
pass1 = deinterlaced.TDecimate(4, output="stats.txt")
return pass1

stpdrgstr
2nd October 2010, 18:00
Wouldn't this make my output be CFR?

Remove srestore, put selectodd/even and manually create/edit timecodes, set the credits range at 30000/1001 fps.

McArty
19th October 2010, 20:54
Sorry for asking in this thread, is related to the question.

What if i have a hybrid clip mainly interlaced but with 2 defined parts telecined in the middle.

Thanks.