Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
4th February 2018, 00:42 | #1 | Link |
Registered User
Join Date: Jan 2017
Posts: 17
|
"There is no function named "SetMTMode"
I am trying to use InterFrame with MEGUI-2808, and with Avisynth+...
I get "There is no function named "SetMTMode". So I replace it with "SetFilterMTMode". And then I get another error "invalid arguments to "SetFilterMTMode". Does anyone have a fix? |
4th February 2018, 03:58 | #2 | Link |
Registered User
Join Date: Feb 2002
Location: California
Posts: 2,695
|
The syntax for multi-threading is quite different in AVISynth+ than it is in AVISynth.
There is no SetMTMode call in AVISynth+, and the "replacement" call (SetFilterMTMode) is not really the same thing. Because AVISynth filters are written by lots of people, not all of them have done the same things in order to permit their DLL to be run multi-threaded. Therefore, some can be run fully multi-threaded, others only partially multi-threaded, and some don't work multi-threaded. With the original AVISynth multi-threaded hack ("SetMTMode") you could not tell AVISynth to treat each DLL differently when it comes to multi-threading. With AVISynth+, you can now do this. That's the good news. The bad news is that you have to add SetFilterMTMode for each and every DLL in your script. Fortunately, you can put all these calls into a file, reference that file from your script, and only have to do this work once. What's more, several people have posted their SetFilterMTMode calls for dozens of popular AVISynth DLLs. I think you can find a link to one of these files on the AVISynth+ home page. When you get it all working, to actually enable multi-threading, you need to add a Prefetch() call as the very last call in your script. Put a number in the parenthesis to specify how many threads to use. For instance, Prefetch(5) will use five threads. |
4th February 2018, 04:44 | #3 | Link | |
Registered User
Join Date: Jan 2017
Posts: 17
|
Quote:
|
|
13th February 2018, 02:59 | #4 | Link |
Registered User
Join Date: Sep 2005
Posts: 178
|
Change your SetMTMode() to SetFilterMTMode() with the appropriate MT type. See this section on the wiki for details. Remember you will also need to use Prefetch() at the end of your script for it to work.
|
Thread Tools | Search this Thread |
Display Modes | |
|
|