Skip to content

Vectorscope

Video Single output Transform

Video vectorscope.

FFmpeg filter: vectorscope — the official reference.

Add it to a graph. The explicit form works for every filter — bind it to its input and read the result from outputs():

$node = $video->addFilter(new Vectorscope());
$result = $node->outputs()[0];

Shorthand. Single-output filters can skip the node — apply() returns the result stream directly:

$result = $video->apply(new Vectorscope());

TODO — when this filter shines: what it’s the right tool for, what to reach for instead when it isn’t, and how it composes with neighbouring filters.

TODO — prose: how the filter actually works and what its key parameters mean (the explanation FFmpeg’s terse option help omits).

TODO — runnable PHP, with the equivalent ffmpeg CLI alongside.

TODO

TODO

ParameterTypeDefaultRange / valuesDescription
modeVectorscopeModegraygray, color, color2, color3, color4, color5set vectorscope mode
xint102set color component on X axis
yint202set color component on Y axis
intensityfloat0.00401set intensity
envelopeVectorscopeEnvelopenonenone, instant, peak, peak+instantset envelope
graticuleVectorscopeGraticulenonenone, green, color, invertset graticule
opacityfloat0.7501set graticule opacity
flagsint|string4set graticule flags
bgopacityfloat0.301set background opacity
lthresholdfloat001set low threshold
hthresholdfloat101set high threshold
colorspaceVectorscopeColorspaceautoauto, 601, 709set colorspace
tint0float0-11set 1st tint
tint1float0-11set 2nd tint

FFmpeg also names these options (use the parameter shown above): mmode, iintensity, eenvelope, ggraticule, oopacity, fflags, bbgopacity, llthreshold, hhthreshold, ccolorspace, t0tint0, t1tint1.


Maps to FFmpeg’s vectorscope filter. Verified against ffmpeg n7.1.1.

An Artisan Build project.

Built on FFmpeg — an independent binding, not affiliated with or endorsed by the FFmpeg project. Support FFmpeg.