Jeremy Duncan
7th June 2008, 22:51
I got the MT from the mvtools readme.
ffdshow_source()
global idx1 = 10 # global hint by IanB
MT("""
idx1 = idx1 + 1
# different threads for top and bottom half of frame must have different idx (trick by Foxishadis)
backward_vec = MVAnalyse(isb = true, truemotion=true, pel=2, idx=idx1)
forward_vec = MVAnalyse(isb = false, truemotion=true, pel=2, idx=idx1)
last.MVFlowFps(backward_vec, forward_vec, num=50, den=1, ml=100, idx=idx1)
""",2)
ffdshow_source()
global idx1 = 10 # global hint by IanB
MT("""
idx1 = idx1 + 1
# different threads for top and bottom half of frame must have different idx (trick by Foxishadis)
backward_vec = MVAnalyse(blksize=16, isb = true, chroma=false, pel=1, searchparam=1, idx=idx1)
forward_vec = MVAnalyse(blksize=16, isb = false, chroma=false, pel=1, searchparam=1, idx=idx1)
last.MVFlowFps(backward_vec, forward_vec, num=2*FramerateNumerator(ffdshow_source()), \
den=FramerateDenominator(ffdshow_source()), mask=0, idx=idx1)
""",2)
http://img246.imageshack.us/img246/97/mvtoolsgp5.th.jpg (http://img246.imageshack.us/my.php?image=mvtoolsgp5.jpg)
How does it look? :thanks:
ffdshow_source()
global idx1 = 10 # global hint by IanB
MT("""
idx1 = idx1 + 1
# different threads for top and bottom half of frame must have different idx (trick by Foxishadis)
backward_vec = MVAnalyse(isb = true, truemotion=true, pel=2, idx=idx1)
forward_vec = MVAnalyse(isb = false, truemotion=true, pel=2, idx=idx1)
last.MVFlowFps(backward_vec, forward_vec, num=50, den=1, ml=100, idx=idx1)
""",2)
ffdshow_source()
global idx1 = 10 # global hint by IanB
MT("""
idx1 = idx1 + 1
# different threads for top and bottom half of frame must have different idx (trick by Foxishadis)
backward_vec = MVAnalyse(blksize=16, isb = true, chroma=false, pel=1, searchparam=1, idx=idx1)
forward_vec = MVAnalyse(blksize=16, isb = false, chroma=false, pel=1, searchparam=1, idx=idx1)
last.MVFlowFps(backward_vec, forward_vec, num=2*FramerateNumerator(ffdshow_source()), \
den=FramerateDenominator(ffdshow_source()), mask=0, idx=idx1)
""",2)
http://img246.imageshack.us/img246/97/mvtoolsgp5.th.jpg (http://img246.imageshack.us/my.php?image=mvtoolsgp5.jpg)
How does it look? :thanks: