Unsharp for Avisynth

Support for my VirtualDub filters
Post Reply
DAE avatar
alexx7777
Posts: 20
Joined: Tue Mar 13, 2012 9:24 am

Unsharp for Avisynth

Post 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.
User avatar
admin
Site Admin/DG Approved
Posts: 4465
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unsharp for Avisynth

Post 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();
DAE avatar
alexx7777
Posts: 20
Joined: Tue Mar 13, 2012 9:24 am

Re: Unsharp for Avisynth

Post by alexx7777 »

Thank you, admin
User avatar
admin
Site Admin/DG Approved
Posts: 4465
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unsharp for Avisynth

Post 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
DAE avatar
alexx7777
Posts: 20
Joined: Tue Mar 13, 2012 9:24 am

Re: Unsharp for Avisynth

Post by alexx7777 »

Thank you, admin. I know
DAE avatar
Skaven252
Posts: 3
Joined: Mon Oct 22, 2012 7:37 am

Re: Unsharp for Avisynth

Post 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.
User avatar
admin
Site Admin/DG Approved
Posts: 4465
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unsharp for Avisynth

Post 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?
Post Reply