Skip to content

Avectorscope

Audio Video Single output Transform

Convert input audio to vectorscope video output.

FFmpeg filter: avectorscope — 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 Avectorscope(…));
$result = $node->outputs()[0];

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

$result = $video->apply(new Avectorscope(…));

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
modeAvectorscopeModelissajouslissajous, lissajous_xy, polarset mode
ratestring25—set video rate
sizestring400x400—set video size
rcint400–255set red contrast
gcint1600–255set green contrast
bcint800–255set blue contrast
acint2550–255set alpha contrast
rfint150–255set red fade
gfint100–255set green fade
bfint50–255set blue fade
afint50–255set alpha fade
zoomfloat10–10set zoom factor
drawAvectorscopeDrawdotdot, line, aalineset draw mode
scaleAvectorscopeScalelinlin, sqrt, cbrt, logset amplitude scale mode
swapbooltrue—swap x axis with y axis
mirrorAvectorscopeMirrornonenone, x, y, xymirror axis

FFmpeg also names these options (use the parameter shown above): m → mode, r → rate, s → size.


Maps to FFmpeg’s avectorscope 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.