Log in

View Full Version : SetMTMode calls in one function only?


creaothceann
11th May 2013, 11:49
Would this work, or does a call of SetMTMode anywhere turn the entire script into a multithreaded one?

MPEG2Source("00.d2v").Trim(0, -2000).Checkmate(tthr2=0)
a = Trim( 0, -200).Treat_Progressive.AssumeFPS(24000, 1001)
b = Trim( 200, -1500).Treat_Telecined .AssumeFPS(24000, 1001)
c = Trim(1700, -300).Treat_Interlaced .AssumeFPS(24000, 1001) # fixed later via timecodes
a + b + c


function Treat_Interlaced(clip c) {
SetMTMode(2, 0)
c.QTGMC(preset="slow", FPSDivisor=2)
# Distributor() # probably not needed (x264)
}


function Treat_Telecined(clip c) {
# can't use multithreading (requires linear frame access) ?
c.AnimeIVTC(...)
}


function Treat_Progressive(clip c, int f0, int f1, int f2, int f3) {
# doesn't need multithreading?
c.SelectEvery(...)
}