I use MSUDenoiser plug-in for denoising my analog captures. I would really like to employ this plug-in in AviSynth, but I need to use non-default configuration for it. Is there any way to pass arguments/settings to VirtualDub plug-ins?
Also, would there be significant quality degradation because of conversion to and from RGB32 (since VDub plugins can only use RGB32 colorspace)?
-mdw
Guest
23rd June 2007, 12:32
From MSU web site:
VirtrualDub job control added from version 1.6, now filter is usable in AviSynth. Example:
LoadVirtualDubPlugin
("..\VirtualDub\plugins\MSU_denoiser_mmx.vdf","Denoise", 0)
clip=AVISource("D:\work\video\film.avi", false, "RGB24")
clip.ConvertToRGB32.Denoise(50, "20.0")
First filter parameter - temporal denoising threshold
Second filter parameter - spatial denoising intensity
It's hard to say what is significant to you. Most people would not notice a conversion to RGB and back, and given that you are starting with a noisy video anyway, I'd say it is insignificant here.
stickboy
24th June 2007, 07:29
but I need to use non-default configuration for it. Is there any way to pass arguments/settings to VirtualDub plug-ins?VirtualDub plugins are called like everything else. If those plugins take arguments, you pass them arguments.
If you're loading some script that has a wrapper function to call LoadVirtualdubPlugin, look at what that script's doing. For example, most such functions look like:
############################
# Colorize by Donald Graft #
############################
function VD_Colorize(clip clip, int "hue", int "sat", int "lum")
{
LoadVirtualdubPlugin(VirtualDub_plugin_directory+"\colorize.vdf", "_VD_Colorize")
return clip._VD_Colorize(default(hue, 0), default(sat, 150), default(lum, 150))
}And all that's really doing is just calling LoadVirtualdubPlugin for you and making a bunch of the arguments optional.
grannyGeek
25th June 2007, 07:44
Starting from the BASICS, this works for me ---
Load video into VirtualDub, and tweak the filter settings to desired settings.
DON'T HAVE ANY OTHER V-DUB FILTERS ACTIVE, you want your filter configuration settings to be the only ones listed.
Go to File > Save Processing Settings, and save the file to an easily accessible name and folder, it adds the .VCF extension automatically.
In the AviSynth script, put the line, for example --
LoadVirtualdubplugin(vdPath+"colormill.vdf", "colormill",1)
where vdPath is the path to where you put the plugin.
The entry for "colormill" tells AviSynth that this is the name you will use to call the plugin.
Then use notepad to open your saved VCF file, and almost at the bottom, you will find a line that looks like this ---
VirtualDub.video.filters.instance[0].Config(25700, 45924, 7268, 25700, 36452, 14235, 42596, 25665, 25700, 25700, 25700, 25700, 25700, 1124, 5);
Now open your script.
If your video is not in RGB, you must add a line to ConvertToRGB32()
Add a line to call ColorMill, and in parentheses, copy and paste the setting numbers that follow Config
Script should look something like this---
LoadVirtualdubplugin(vdPath+"colormill.vdf", "colormill",1)
ConvertToRGB32()
colormill(25710, 44388, 31069, 25699, 26212, 25708, 26468,
\ 28516, 29028, 25700, 27260, 25701, 25700, 1124, 5)Refresh your script, and see how it looks.
I sometimes must go back and tweak a bit and save a new VCF file, because capture is in YUV and it is a RGB filter --- I think converting between RGB and YUV affects the color range a bit.
hope this helps, and sorry if I waste your time with very simple stuff you already know!
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.