View Single Post
Old 23rd November 2007, 08:58   #745  |  Link
Delerue
Registered User
 
Join Date: Jun 2005
Posts: 365
tsp and Fizick, I'm trying to use MVFlowFPS script (from MVTools 1.8.5.1) with this code inside the FFDShow (v. 1620) Avisynth tab:

Code:
LoadPlugin("C:\Arquivos de programas\AviSynth\plugins\MT.dll")
source=ffdshow_source()
SetMTMode(2)
LoadPlugin("C:\arquivos de programas\avisynth\plugins\mvtools.dll")
backward_vec = source.MVAnalyse(blksize=16, isb = true,  pel=2, search=2, idx=1)
forward_vec = source.MVAnalyse(blksize=16, isb = false, pel=2, search=2, idx=1)
source.MVFlowFps(backward_vec, forward_vec, num=2*FramerateNumerator(source), \
   den=FramerateDenominator(source), mask=1, idx=1)
Although it works, I mean, it doubles the FPS, the second CPU/thread still inactive (I'm using an Allendale E4300 running at 3 GHz).

I also tried this (from Fizick website, just to test), but I got a script error (invalid arguments to function 'MT', last line):

Code:
LoadPlugin("C:\Arquivos de programas\AviSynth\plugins\MT.dll")
source=ffdshow_source()
LoadPlugin("C:\arquivos de programas\avisynth\plugins\mvtools.dll")
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_vec2 = MVAnalyse(isb = true, delta = 2, pel = 2, overlap=4, sharp=1, idx = idx1)
backward_vec1 = MVAnalyse(isb = true, delta = 1, pel = 2, overlap=4, sharp=1, idx = idx1)
forward_vec1 = MVAnalyse(isb = false, delta = 1, pel = 2, overlap=4, sharp=1, idx = idx1)
forward_vec2 = MVAnalyse(isb = false, delta = 2, pel = 2, overlap=4, sharp=1, idx = idx1)
last.MVDegrain2(backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=400,idx=idx1)
""",2) # two threads
I copied the 'avisynth.dll' to the 'system32' folder, and the 'MT.dll' to the 'AviSynth\plugins' folder, inside the 'program files' folder. Any idea?

Thanks!

P.S.: Fizick, as you can see, your latest MVTools can finally works using the 'num=2*FramerateNumerator(source)' command with FFDShow.

Last edited by Delerue; 23rd November 2007 at 09:25.
Delerue is offline   Reply With Quote