Page 1 of 1

Unsharp for Avisynth

Posted: Wed Mar 14, 2012 2:57 am
by alexx7777
Hello, tried to Unsharp mask, ordered it to default settings () in the script Avisynth. Tell me please, what variables are and how to register for this filter in a script for Avisynth. Tried to prescribe "Diameter", etc., with them not working.

Re: Unsharp for Avisynth

Posted: Wed Mar 14, 2012 8:28 pm
by admin
Hi Alex,

First I would suggest using an appropriate GeneralConvolution() call if possible, because with the right kernel, it is equivalent to Unsharp Mask. It's discussed several times, e.g., here:

http://forum.doom9.org/showthread.php?t=51988

But it will be missing some of the options of the VirtualDub filter so maybe you need this parameter order:

mfd->diameter = argv[0].asInt();
mfd->strength = argv[1].asInt();
mfd->threshold = argv[2].asInt();
mfd->xloClip = argv[3].asInt();
mfd->xhiClip = argv[4].asInt();
mfd->yloClip = argv[5].asInt();
mfd->yhiClip = argv[6].asInt();
mfd->interlaced = !!argv[7].asInt();

Re: Unsharp for Avisynth

Posted: Thu Mar 15, 2012 6:42 am
by alexx7777
Thank you, admin

Re: Unsharp for Avisynth

Posted: Thu Mar 15, 2012 10:12 pm
by admin
You're welcome, Alex. I see I missed one of your questions. See here for how to import VirtualDub filters into your script.

http://avisynth.org/mediawiki/FAQ_using ... ub_plugins

Re: Unsharp for Avisynth

Posted: Sun Mar 18, 2012 7:51 am
by alexx7777
Thank you, admin. I know

Re: Unsharp for Avisynth

Posted: Sun Nov 04, 2012 3:13 pm
by Skaven252
Hi,

I have a bit different problem with Unsharp Mask. Whenever I try to use it, VirtualDub just crashes.

Crash details (best guess as to cause):
An out-of-bounds memory access (access violation) occurred in module 'Unsharp'...
...reading address 07D49000...
...while running filter "Unsharp mask" (FilterInstance.cpp:1789).

I'm using VirtualDub 1.9.11 32-bit, on a 64-bit Windows 7.

Re: Unsharp for Avisynth

Posted: Sun Jan 05, 2014 10:04 pm
by admin
Sorry Skaven252, I just saw your post. :cry:

Can you tell me about the source stream if it is not too late for you?