Unsharp for Avisynth

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

Unsharp for Avisynth

Post by alexx7777 » Wed Mar 14, 2012 2:57 am

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
Posts: 4392
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unsharp for Avisynth

Post by admin » Wed Mar 14, 2012 8:28 pm

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.???.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();

alexx7777
Posts: 20
Joined: Tue Mar 13, 2012 9:24 am

Re: Unsharp for Avisynth

Post by alexx7777 » Thu Mar 15, 2012 6:42 am

Thank you, admin

User avatar
admin
Site Admin
Posts: 4392
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unsharp for Avisynth

Post by admin » Thu Mar 15, 2012 10:12 pm

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

alexx7777
Posts: 20
Joined: Tue Mar 13, 2012 9:24 am

Re: Unsharp for Avisynth

Post by alexx7777 » Sun Mar 18, 2012 7:51 am

Thank you, admin. I know

Skaven252
Posts: 3
Joined: Mon Oct 22, 2012 7:37 am

Re: Unsharp for Avisynth

Post by Skaven252 » Sun Nov 04, 2012 4:13 pm

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
Posts: 4392
Joined: Thu Sep 09, 2010 3:08 pm

Re: Unsharp for Avisynth

Post by admin » Sun Jan 05, 2014 11:04 pm

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