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
xint10–2set color component on X axis
yint20–2set color component on Y axis
intensityfloat0.0040–1set intensity
envelopeVectorscopeEnvelopenonenone, instant, peak, peak+instantset envelope
graticuleVectorscopeGraticulenonenone, green, color, invertset graticule
opacityfloat0.750–1set graticule opacity
flagsint|string4—set graticule flags
bgopacityfloat0.30–1set background opacity
lthresholdfloat00–1set low threshold
hthresholdfloat10–1set high threshold
colorspaceVectorscopeColorspaceautoauto, 601, 709set colorspace
tint0float0-1–1set 1st tint
tint1float0-1–1set 2nd tint

FFmpeg also names these options (use the parameter shown above): m → mode, i → intensity, e → envelope, g → graticule, o → opacity, f → flags, b → bgopacity, l → lthreshold, h → hthreshold, c → colorspace, t0 → tint0, t1 → tint1.


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.