Skip to content

Sidechaingate

Audio Single output Transform

Audio sidechain gate.

FFmpeg filter: sidechaingate — the official reference.

Add it to a graph. The explicit form works for every filter — bind it to its inputs and read the result from outputs():

$node = $audio->addFilter(new Sidechaingate(), [$other]);
$result = $node->outputs()[0];

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

$result = $audio->apply(new Sidechaingate(), $other);

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 input level
modeSidechaingateModedownwarddownward, upwardset mode
rangefloat0.0612501set max gain reduction
thresholdfloat0.12501set threshold
ratiofloat219000set ratio
attackfloat200.019000set attack
releasefloat2500.019000set release
makeupfloat1164set makeup gain
kneefloat2.82842712518set knee
detectionSidechaingateDetectionrmspeak, rmsset detection
linkSidechaingateLinkaverageaverage, maximumset link
level_scfloat10.01562564set sidechain gain

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