Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1 | Link |
|
budala
Join Date: Oct 2003
Location: U.S.
Posts: 545
|
Fun with Video Scopes
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. Below is an avs usage function. Code:
# 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)
Last edited by trevlac; 15th March 2004 at 15:03. |
|
|
|
|
|
#5 | Link |
|
Alias fragger
Join Date: Jul 2003
Location: the Netherlands
Posts: 863
|
Try this one:
http://www.trevlac.us/colorCorrection/clrtools.vdf (it's the www that makes the difference) [edit] Spoke to soon!! Hey trev, your domain is gone!! |
|
|
|
|
|
#6 | Link |
|
to noise
Join Date: Dec 2005
Posts: 96
|
Is there a way to use this filter in a capture preview mode (possibly in vdub)?
I'd like to fine tune my analog capture setup (i.e. adjust color/brightness/etc) before capturing. Thanks Last edited by signal; 2nd April 2007 at 04:57. |
|
|
|
|
|
#7 | Link | |
|
Alias fragger
Join Date: Jul 2003
Location: the Netherlands
Posts: 863
|
This receipe is straight from trevlac. Make sure you use a recent ffdshow build and the latest colortools version.
Quote:
It was a while back when I did this, so the details are a bit fuzzy by now. Prototyping in graphedit gives you a better grip on which conversions are happening along the chain. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|