View Full Version : Masktools Problem
[MA]Debito
30th June 2004, 21:16
An instruction not supported by the CPU was executed in module 'MASKTO~1'.
I keep getting this message anytime I try to load the masktools avisynth plugin.
My avisynth is 2.54 and masktools is up to date 1.4.16.
Any ideas to fix it?
Manao
30th June 2004, 21:57
I need more information : can you post the script you were using ? Why don't you use the autoloading of the plugins ? Finally, the latest version of the masktools is available here (http://jourdan.madism.org/~manao/), it's the 1.5 ( though it was mainly a partial rewriting of the documentation in the avisynth's style, iirc )
[MA]Debito
30th June 2004, 21:59
#[MA]Debito's Rainbow Madness Script version .01
#Made by [MA]Debito
#Made um...today! (not really)
#Global Functions
global x_res = 576
global y_res = 432
d2v_file = "C:\Documents and Settings\Debito\Desktop\cowboy\cowboy.d2v"
avs_plugin = "C:\Program Files\AviSynth 2.5\Plugins\"
#Plugin Loading
LoadPlugin(avs_plugin + "\MaskTools\MaskTools.dll")
LoadPlugin(avs_plugin + "\_2DCleanYUY2\_2DCleanYUY2_for_25.dll")
LoadPlugin(avs_plugin + "\aWarpSharp\aWarpSharp.dll")
LoadPlugin(avs_plugin + "\Decomb511\Decomb511.dll")
LoadPlugin(avs_plugin + "\MPEG2Dec3\MPEG2Dec3dg.dll")
LoadPlugin(avs_plugin + "\VSFilter\VSFilter.dll")
LoadPlugin(avs_plugin + "\Undot\UnDot.dll")
LoadPlugin(avs_plugin + "\Deen\Deen.dll")
LoadPlugin(avs_plugin + "\ATC\ATC.dll")
LoadPlugin(avs_plugin + "\VagueDenoiser\VagueDenoiser.dll")
LoadPlugin(avs_plugin + "\Dup\Dup.dll")
Import("C:\Program Files\AviSynth 2.5\plugins\Masktools\mfRainbow-v0.31.avs")
#IVTC Function
Function IVTC(video)
{
return video.\
Telecide(order=1, blend=true, guide=1, vthresh=25).\
Decimate(cycle=5)
}
#Resize
Function Resizing(resized_video)
{
return resized_video.\
bilinearresize(x_res, y_res)
}
#Color Correction
Function Coloring(colored_video)
{
return colored_video.\
Mergechroma(colored_video.coloryuv(levels="TV->PC")).\
Mergechroma(colored_video.coloryuv(levels="TV->PC"))
}
#Processing
Function Processing(Layer_video)
{
return Layer_video.\
Undot().\
atc(l=0, c=3, b=12, t=0.6).\
VagueDenoiser(threshold=4,method=1,nsteps=7,chroma=true).\
ConvertToYUY2().\
_2DCleanYUY2().\
ConvertToYUV2().\
aWarpSharp(16.0, 2, 11, 1).\
dup(threshold=2.0, copy=true, blend=true, maxcopies=20, debug=false)
}
#Encoding
encode = mpeg2source(d2v_file, idct=7, ipp=true,
cpu=6).IVTC().Resizing().Coloring().Processing()
Manao
30th June 2004, 22:54
I think it's because both Masktools.dll and Mpeg2dec3dg.dll have a filter named "MotionMask" which wreates a conflict when both are loaded explicitely.
To solve the problem, download the latest alpha version of avisynth, in which this issue has been adressed & solved.
[MA]Debito
1st July 2004, 16:23
I'm using the 2.55 alpha
Edit: and the it was the latest when i got it i think (yesterday)
Manao
1st July 2004, 16:37
In your first post, you said you were using avisynth 2.54. Can you check which version of avisynth is loaded, by using the version() filter ?
Also, try the following script :
d2v_file = "C:\Documents and Settings\Debito\Desktop\cowboy\cowboy.d2v"
avs_plugin = "C:\Program Files\AviSynth 2.5\Plugins\"
LoadPlugin(avs_plugin + "\MaskTools\MaskTools.dll")
LoadPlugin(avs_plugin + "\MPEG2Dec3\MPEG2Dec3dg.dll")
encode = mpeg2source(d2v_file, idct=7, ipp=true, cpu=6)
[MA]Debito
1st July 2004, 16:44
still doesn't work
Edit: Also, I noticed that I should have put this in avs_plugin = "C:\Program Files\AviSynth 2.5\Plugins"
But...this still didn't fix it.
Wilbert
1st July 2004, 16:59
1) Does the following script work:
avs_plugin = "C:\Program Files\AviSynth 2.5\Plugins\"
LoadPlugin(avs_plugin + "\MaskTools\MaskTools.dll")
Version()
with mpeg2dec3dg.dll, mpeg2dec3.dll and mpeg2dec.dll outside plugin dir.
2) What kind of CPU do you have?
Manao
1st July 2004, 17:07
Wilbert : you should enable signature :) It's a PIV 2.8e
[MA]Debito : If the script Wilbert or I gave you doesn't work, it's not the fault of the masktools. And I (re)checked the MMX code, and couldn't find any AMD specific instructions. It was once the case, with an old version.
[MA]Debito
1st July 2004, 17:16
It didn't work...But, I never had a problem with it before...and I used the same stuff...
Edit: Ok...I've disabled HyperThreading...I'm not getting the MaskTools error anymore, Instead I'm getting this one:
Evaluate: Unrecognized exception!
My AVS file Line 68 and 74.
68: dup(threshold=2.0, copy=true, blend=true, maxcopies=20, debug=false)
74: encode = mpeg2source(d2v_file, idct=7, ipp=true,
cpu=6).IVTC().Resizing().Coloring().Processing()
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.