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.015625–64set input level
modeSidechaingateModedownwarddownward, upwardset mode
rangefloat0.061250–1set max gain reduction
thresholdfloat0.1250–1set threshold
ratiofloat21–9000set ratio
attackfloat200.01–9000set attack
releasefloat2500.01–9000set release
makeupfloat11–64set makeup gain
kneefloat2.8284271251–8set knee
detectionSidechaingateDetectionrmspeak, rmsset detection
linkSidechaingateLinkaverageaverage, maximumset link
level_scfloat10.015625–64set 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.