Log in

View Full Version : script error: there is no function named "SetMtMode"


odin
26th May 2017, 11:37
Hi, everyone! I'm new to the forum, and I apologize, but I'm quite a noob when it comes to Avisynth and video conversion in general.

I use Avisynth with ffdshow and MPC-HC, and for some reason, I started getting this error at the top of the screen:

script error: there is no function named "SetMtMode". (ffdshow_filter_avisynth_script, line 2)

I have installed the latest production version of Avisynth+, hoping it would solve the problem, but it didn't. I followed the instructions carefully and copied .dll files to the proper system directories. I'm running Windows 10 x64.

Here's the code I use:

SetMemoryMax(512)
SetMTMode(3,4)
ffdshow_source()
SetMTMode(2)
LSFMod(defaults="slow",ss_x=2.0,ss_y=2.0,strength=100)
SetMTMode(1)
GetMTMode(false) > 0 ? distributor() : last

Can somebody help me out? Thank you!

MysteryX
26th May 2017, 13:05
This is the syntax for Avisynth 2.6

Avisynth+ instead has SetFilterMTMode and Prefetch at the end.

odin
26th May 2017, 17:58
This is the syntax for Avisynth 2.6

Avisynth+ instead has SetFilterMTMode and Prefetch at the end.

Nice, that solved it!

Thanks!!