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
ratestring25set video rate
sizestring400x400set video size
rcint400255set red contrast
gcint1600255set green contrast
bcint800255set blue contrast
acint2550255set alpha contrast
rfint150255set red fade
gfint100255set green fade
bfint50255set blue fade
afint50255set alpha fade
zoomfloat1010set zoom factor
drawAvectorscopeDrawdotdot, line, aalineset draw mode
scaleAvectorscopeScalelinlin, sqrt, cbrt, logset amplitude scale mode
swapbooltrueswap x axis with y axis
mirrorAvectorscopeMirrornonenone, x, y, xymirror axis

FFmpeg also names these options (use the parameter shown above): mmode, rrate, ssize.


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.