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.015625–64set level in
level_outfloat10.015625–64set level out
balance_infloat0-1–1set balance in
balance_outfloat0-1–1set balance out
softclipboolfalse—enable softclip
mutelboolfalse—mute L
muterboolfalse—mute R
phaselboolfalse—phase L
phaserboolfalse—phase R
modeStereotoolsModelr>lrlr>lr, lr>ms, ms>lr, lr>ll, lr>rr, lr>l+r, lr>rl, ms>ll, …set stereo mode
slevfloat10.015625–64set side level
sbalfloat0-1–1set side balance
mlevfloat10.015625–64set middle level
mpanfloat0-1–1set middle pan
basefloat0-1–1set stereo base
delayfloat0-20–20set delay
sclevelfloat11–100set S/C level
phasefloat00–360set 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.