Log in

View Full Version : MT avisynth


Chengbin
24th August 2009, 00:06
How do I get MT avisynth to work?

I've installed SET's MT avisynth (copied avisynth.dll to system32, mt.dll to avisynth/plugins)

This is my script

LoadPlugin("G:\HDConvertToX_2.1.458.3528\filters\DGAVCDecode.dll")
LoadPlugin("G:\HDConvertToX_2.1.458.3528\filters\DGDecode.dll")
LoadPlugin("G:\HDConvertToX_2.1.458.3528\filters\DirectShowSource.dll")
LoadPlugin("G:\HDConvertToX_2.1.458.3528\filters\MSharpen.dll")
LoadPlugin("G:\HDConvertToX_2.1.458.3528\filters\mt_masktools-26.dll")
LoadPlugin("G:\HDConvertToX_2.1.458.3528\filters\mvtools.dll")
LoadPlugin("G:\HDConvertToX_2.1.458.3528\filters\mvtools2.dll")
LoadPlugin("G:\HDConvertToX_2.1.458.3528\filters\VSFilter.dll")
LoadPlugin("G:\HDConvertToX_2.1.458.3528\filters\FDecimate.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MT.dll")

directshowsource("D:\Encoded Movies\lossless.MKV")
setmtmode(2,0)
backward_vec3 = last.MVAnalyse(isb = true, delta = 3, pel = 2, overlap=2, sharp=1, idx = 1)
backward_vec2 = last.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=2, sharp=1, idx = 1)
backward_vec1 = last.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec1 = last.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec2 = last.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec3 = last.MVAnalyse(isb = false, delta = 3, pel = 2, overlap=2, sharp=1, idx = 1)
last.MVDegrain3(backward_vec1,forward_vec1,backward_vec2,forward_vec2,backward_vec3,forward_vec3,thSAD=300,idx=1)
MSharpen(strength=32)

It doesn't work. What did I do wrong?

Guest
24th August 2009, 01:12
It doesn't work. Don't you realize with all your posts how vacuous that is?

Chengbin
24th August 2009, 01:20
Sorry for the lack of clarification.

I meant, the filter still only uses 1 core and it is not multithreaded.

Guest
24th August 2009, 01:28
http://avisynth.org/mediawiki/MT_support_page

Chengbin
24th August 2009, 02:25
Apparently my MT.dll was messed up.

You know what, I'm gonna refrain myself from using MT avisynth until I get a better computer with much more than 3GB of RAM and a 64 bit OS.

shoopdabloop
24th August 2009, 03:16
I use MT Avisynth with my dualcore 2.6ghz cpu, 2GB of RAM and 32 bit OS all the time. It speeds thing up quite a bit sometimes.

BigDid
24th August 2009, 08:33
Hi,

@Chengbin
My suggestion is start from scratch. Make a backup of your plugins directory and uninstall older version.
Install 2.58 standard avisynth.
Install 2.58 MT.
Transfer your plugins back and verify everything is working fine. Update or erase the problematic ones.
For how to and troubleshooting see:
http://forum.doom9.org/showthread.php?p=1246719#post1246719

I do not recommend this particular build but rather the how-to and FAQ.

Did

Gavino
24th August 2009, 08:46
Apparently my MT.dll was messed up.
Although it loads the plugin, your script doesn't use anything from MT.dll.
SetMTMode uses only the modified avisynth.dll.
MT.dll is needed for the functions MT and MTi.

Boulder
25th August 2009, 03:41
The problem is that there is no SetMTMode statement before the source is loaded. Add a line with SetMTMode(5) on it right before the DirectShowSource line and it should work.