Skip to content

Stereotools

Audio Single output Transform

Apply various stereo tools.

FFmpeg filter: stereotools — 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 = $audio->addFilter(new Stereotools());
$result = $node->outputs()[0];

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

$result = $audio->apply(new Stereotools());

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
level_infloat10.01562564set level in
level_outfloat10.01562564set level out
balance_infloat0-11set balance in
balance_outfloat0-11set balance out
softclipboolfalseenable softclip
mutelboolfalsemute L
muterboolfalsemute R
phaselboolfalsephase L
phaserboolfalsephase R
modeStereotoolsModelr>lrlr>lr, lr>ms, ms>lr, lr>ll, lr>rr, lr>l+r, lr>rl, ms>ll, …set stereo mode
slevfloat10.01562564set side level
sbalfloat0-11set side balance
mlevfloat10.01562564set middle level
mpanfloat0-11set middle pan
basefloat0-11set stereo base
delayfloat0-2020set delay
sclevelfloat11100set S/C level
phasefloat00360set stereo phase
bmode_inStereotoolsBmodebalancebalance, amplitude, powerset balance in mode
bmode_outStereotoolsBmodebalancebalance, amplitude, powerset balance out mode

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