View Full Version : AVIsynth versions of two important Virtualdub filters.


nikosvault
22nd December 2010, 00:46
I have tired to move all of my work away from Virtualdub, but two filters keep me stuck with the program. I was wondering if they exist in some kind of AVIsynth incarnations.

Hue/Saturation/Intensity (1.2) Donald Graft
http://img98.imageshack.us/img98/5853/65881612.png

Color Equalizer (1.1) Tamás B. Bakó
http://img705.imageshack.us/img705/1277/14586246.png

I have heard of ways to import VDF into Avisynth scripts, but I'm not sure I’m enough of an expert to pull that off (especially with my videos using Yv12 and not RGB32).

osgZach
22nd December 2010, 01:42
I don't know the names offhand, but I'm pretty sure there are either direct ports, or equivalent functions for both of those.

Try looking here. I don't know how up to date it is or anything as I haven't messed with video stuff or been to these forums, even, in a long time.

http://avisynth.org/mediawiki/External_filters

jmac698
22nd December 2010, 01:54
RGB Equalize is easy
RGBAdjust (clip, float "r", float "g", float "b", float "a", float "rb", float "gb", float "bb", float "ab", float "rg", float "gg", float "bg", float "ag", bool "analyze")
r,g,b is your amplification, rb,gb,gg is your offset.
Example:
RGBAdjust(1,1,1,0,0,0)
Hue and satuation to some extent:
Tweak (clip, float "hue", float "sat", float "bright", float "cont", bool "coring", bool "sse", float "startHue", float "endHue", float "maxSat", float "minSat", float "interp")

Mounir
23rd December 2010, 12:09
HSI is a very good filter i have used it a lot lately, and i'm not sure what would be the avisynth equivalent

Tweak is not the right filter HSi can help you fix secondary colors, Tweak can't

Syntax for avisynth:

ConvertToRGB32(matrix="Rec601",interlaced=true)
#
# 1) Hue,Saturation,Intensity:
#SeparateFields()
LoadVirtualdubplugin("C:\Program Files\VirtualDubMod\plugins\Hue.vdf", "hsi",1)
hsi(11, 1, 46, 0, 16) # 11= hu
#Weave()

rfmmars
23rd December 2010, 14:48
Why don't you frameserve out to Vdub from Avisynth, it's a lot simpler and you can use all the filters.