Log in

View Full Version : Problem to run mt_edge


manusse
3rd September 2008, 22:43
Hi all,

I'm currently trying to run mt_edge and am having some problems.
My very simple script is the following:

Myoverlay=MPEG2Source("Z:\myfile.d2v").ConvertToRGB32
Myoverlay=Trim(Myoverlay,1920,5000)
Myoverlay=SeparateFields(Myoverlay)

X=180
Y=34
Voffset=30
Hoffset=-100
Myoverlay=Crop(Myoverlay,X,Y,352,288-Y-Voffset)

MyMask=Myoverlay.Blur(1.5)
MyMask=mt_edge(MyMask)

return MyMask

Upon running I get the following error message:
[img=http://img384.imageshack.us/img384/3645/msgqg7.th.png] (http://img384.imageshack.us/my.php?image=msgqg7.png)

If I remove the line with mt_edge, everything is running fine. Any idea?

(I'm using AviSynth 2.57 + mt_masktools-26.dll)

Cheers
Manusse

IanB
4th September 2008, 01:33
mt_masktools-26.dllI do believe that version has been compiled with an early 2.6 avisynth.h. It will not work with any 2.5 series Avisynth. Use the mt_masktools-25.dll

manusse
4th September 2008, 18:32
I tried with mt_masktools-25.dll and got the same error message. Are there missing parameters in my script?

Fizick
4th September 2008, 19:05
is RGB32 supported by mt_masktools?

manusse
4th September 2008, 19:15
Fizick,

Thanks for pointing this out. According to the avisynth wiki, it seems to work with YV12 only. I'll try and tell you.

Cheers
Manusse

EDIT: Fizick you are the best!

Actually a slight modification of the plugins code could avoid this kind of thread. Something like:

if (!Vi.IsYV12())
env->ThrowError("Wrong colorspace. This plugin only accepts YV12 clips. Use ConvertToYV12 before calling this plugin");
in the constructor.

Manao
4th September 2008, 21:12
You could also read the documentation :p

Anyway, whenever I have some time, I'll try to add such warnings.

Gavino
4th September 2008, 21:15
Actually a slight modification of the plugins code could avoid this kind of thread.
Absolutely - this should be standard practice in any plugin that has colorspace restrictions.
I'm very surprised masktools doesn't follow this approach.

manusse
4th September 2008, 21:59
You could also read the documentation

For sure but you know I'm a bit lazy and try the plugin first then if there is an exception, I first check the width and height of my clip are multiple of 4, just in case. Then as a lazy guy, I ask the question on doom9. Finally I read the docs.

Anyhow I thank you very much for your plugin and also all the others and also AviSynth's developpers for their great work.

Cheers
Manusse