trevlac
14th March 2004, 05:12
Hi,
I've had trouble knowing what to do with many of the lovely filters that are available. So, I made a vdub plugin that shows a bunch of charts of the video so I can measure/see the effect of filters like levels. I've included histograms, a waveform monitor, a vectorscope, and a scanner for 'non legal' composite signals.
I just reworked the thing so it could be called from avisynth. So, I thought I'd post here. It of course only works in RGB, but it's for seeing, not changing, so colorspace conversions should not be a big issue.
The plugin is here (http://trevlac.us/colorCorrection/clrtools.vdf). Below is an avs usage function.
# Arguments:
# mode: 0=Histograms, 1=Show Hot Pixels, 2=Video Channels,
# 3=Waveform Monitor, 4=Vectorscope
#
# (input Characteristic args mainly used for luma calcs)
# NTSC vs PAL
# stdDef (601) vs hiDef (709)
# rng255 vs rng219 (Pick rng255=false if you want luma black=0)
#
# (show channels used in modes 0,2,3)
# luma,red,green,blue
#
# hotFixMode: 0=turn hot pixels black, 1=lower intensity, 2=lower saturation
# showWFMgrid: turn it off to see better.
function VD_clrtools(clip clip, int "mode",
\ bool "NTSC", bool "stdDef", bool "rng255",
\ bool "luma", bool "red", bool "green", bool "blue",
\ int "hotFixMode", bool "showWFMgrid")
{
LoadVirtualdubPlugin(VirtualDub_plugin_directory+"\clrtools.vdf", "_VD_clrtools")
return clip._VD_clrtools(default(mode,0),0,0,
\ default(NTSC,true)?1:0,0,
\ default(stdDef,true)?1:0,
\ default(rng255,true)?1:0,
\ default(luma,true)?1:0,
\ default(red,true)?1:0,
\ default(green,true)?1:0,
\ default(blue,true)?1:0,
\ default(hotFixMode,0),
\ default(showWFMgrid,true)?1:0)
}
#Example Usage:
avisource("my.avi", pixel_type="RGB32")
#Luma Histogram Only
VD_clrtools(mode=0,red=false,green=false,blue=false)
#Luma Waveform Monitor
#VD_clrtools(mode=3,red=false,green=false,blue=false)
#Vectorscope
#VD_clrtools(mode=4)
I've had trouble knowing what to do with many of the lovely filters that are available. So, I made a vdub plugin that shows a bunch of charts of the video so I can measure/see the effect of filters like levels. I've included histograms, a waveform monitor, a vectorscope, and a scanner for 'non legal' composite signals.
I just reworked the thing so it could be called from avisynth. So, I thought I'd post here. It of course only works in RGB, but it's for seeing, not changing, so colorspace conversions should not be a big issue.
The plugin is here (http://trevlac.us/colorCorrection/clrtools.vdf). Below is an avs usage function.
# Arguments:
# mode: 0=Histograms, 1=Show Hot Pixels, 2=Video Channels,
# 3=Waveform Monitor, 4=Vectorscope
#
# (input Characteristic args mainly used for luma calcs)
# NTSC vs PAL
# stdDef (601) vs hiDef (709)
# rng255 vs rng219 (Pick rng255=false if you want luma black=0)
#
# (show channels used in modes 0,2,3)
# luma,red,green,blue
#
# hotFixMode: 0=turn hot pixels black, 1=lower intensity, 2=lower saturation
# showWFMgrid: turn it off to see better.
function VD_clrtools(clip clip, int "mode",
\ bool "NTSC", bool "stdDef", bool "rng255",
\ bool "luma", bool "red", bool "green", bool "blue",
\ int "hotFixMode", bool "showWFMgrid")
{
LoadVirtualdubPlugin(VirtualDub_plugin_directory+"\clrtools.vdf", "_VD_clrtools")
return clip._VD_clrtools(default(mode,0),0,0,
\ default(NTSC,true)?1:0,0,
\ default(stdDef,true)?1:0,
\ default(rng255,true)?1:0,
\ default(luma,true)?1:0,
\ default(red,true)?1:0,
\ default(green,true)?1:0,
\ default(blue,true)?1:0,
\ default(hotFixMode,0),
\ default(showWFMgrid,true)?1:0)
}
#Example Usage:
avisource("my.avi", pixel_type="RGB32")
#Luma Histogram Only
VD_clrtools(mode=0,red=false,green=false,blue=false)
#Luma Waveform Monitor
#VD_clrtools(mode=3,red=false,green=false,blue=false)
#Vectorscope
#VD_clrtools(mode=4)