PDA

View Full Version : AVISynth and VDub's WarpSharp


Blight
6th November 2001, 05:36
Anyone know how to implement VirtualDub's WarpSharp filter through an AVISynth script? I tried the following:
####
function VD_WarpSharp(clip clip, int "depth")
{
LoadVirtualdubPlugin("d:\t\warpsharp.vdf", "_VD_WarpSharp")
return clip._VD_WarpSharp(default(depth, 30))
}
SegmentedAVISource("d:\t\test.avi")
ConvertToRGB
VD_WarpSharp(50)
####
This doesn't work.

Any ideas what I'm doing wrong? Or even better, anyone care to convert the filter to AVISynth so that it can be run natively in YUV?

Uli
9th November 2001, 17:00
What was the error message avisynth gave to you?

greetz, Uli

Blight
10th November 2001, 09:32
The error is:
"Error Fetching Frame 1: Avisynth read error: Unsupported VBitmap method: BitBlt"

Uli
10th November 2001, 17:47
Uups!
Never heard about that errormessage!
Sorry :confused:

greetz, Uli

hakko504
10th November 2001, 23:06
Try to remove the " from the function definition, like this:

function VD_WarpSharp(clip clip, int depth)
{
LoadVirtualdubPlugin("d:\t\warpsharp.vdf", "_VD_WarpSharp")
return clip._VD_WarpSharp(default(depth, 30))
}
SegmentedAVISource("d:\t\test.avi")
ConvertToRGB
VD_WarpSharp(50)

Uli
10th November 2001, 23:28
I did some research on the warpsharp filter:
The " is not the problem. The warpsharp filter uses functions not supported by avisynth. Maybe you should give a try to xsharpen.vdf. This filter works for me.
Get it at http://sauron.mordor.net/dgraft/index.html
Here is my script:

function VD_XSharp(clip c, int "strength", int "treshold")
{
LoadVirtualdubPlugin("d:\programme\virtualdub\plugins\xsharpen.vdf", "_VD_XSharp")
return c._VD_XSharp(default(strength, 50), default(treshold, 50))
}
AVISource("g:\burntemp\pm.avi")
VD_XSharp(128,128)

this one works like a charm :cool:

greetz, Uli

Blight
11th November 2001, 09:52
Sadly, I don't really like the results xsharpen gives... warpsharp looks nice.

meleth
13th November 2001, 10:27
I prefer unsharp mask myself. Works really well for me.

neuron2
15th February 2002, 06:05
I have posted a version of Warpsharp that works in Avisynth at
http://home.attbi.com/~neuron2/warpsharp.zip

Blight
15th February 2002, 06:28
This works:


function VD_WarpSharp(clip clip, int "depth")
{
LoadVirtualdubPlugin("warpsharp.vdf", "_VD_WarpSharp")
return clip._VD_WarpSharp(default(depth, 30))
}


usage:
VD_WarpSharp(100)

The values aren't the same as inside virtualdub ...

Uli
15th February 2002, 13:32
That's very good news ;)

greetz, Uli

neuron2
15th February 2002, 14:22
@Blight

>The values aren't the same as inside virtualdub ...

Can you elaborate on this? I don't see any difference. The value saved in a VirtualDub script is the same as programmed in the menus, and the value passed from Avisynth works just as if it was scripted.

Dali Lama
15th February 2002, 17:09
Will Smart Smoother also work in Avisynth through the same script as Warp Sharp.

Also, will this allow me to use fast recompress in Vdub to save time?

Thanks,

Dali

ARDA
16th February 2002, 00:45
Yes,you may and the script is already included in vdfilters.avs
I hope that can help you

neuron2
17th February 2002, 00:26
@Dali

Yes about Smart Smoother. But you might want to try Jaan Kalda's 2D Cleaner Optimized. It is much faster than Smart Smoother. It is available at my web site http://sauron.mordor.net/dgraft/ in the Hosted section.

Dali Lama
18th February 2002, 22:47
I have tried the optimized 2-d cleaner, but I feel that it doesn't work as well as your smart smoother on anime mpeg noise.

P.S. Why isn't there a "review" of sorts for all of these great vdub filters?

Ok bye,

Dali

neuron2
19th February 2002, 17:46
@Dali

> Why isn't there a "review" of sorts for all of these great vdub filters?

You didn't write one yet. :)

Dali Lama
19th February 2002, 18:11
;)

Gotcha Donald. I like that attitude. I will try to start a review of these filters.

One thing though, if I start, I will need to know how to accurately capture frames form virtualdub, both before and after application of the filters. Also I think I would divide the review into anime and regular films, because they are both different applications.

Thanks for the inspiration,

I will do my best,

Dali

neuron2
19th February 2002, 21:37
@Dali

That will be a great service for the video community!

It is easy to get the frame captures in VirtualDub. Just pull down the Video menu and at the bottom are two commands for getting the frames before and after the filters are applied. You catch them into your clipboard and then just go paste them into your favorite graphics application, like Windows Paint. :)

If you need hosting for it later, let me know.