Skip to content

Sidechaincompress

Audio Single output Transform

Sidechain compressor.

FFmpeg filter: sidechaincompress — 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 Sidechaincompress(…), [$other]);
$result = $node->outputs()[0];

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

$result = $audio->apply(new Sidechaincompress(…), $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 gain
modeSidechaincompressModedownwarddownward, upwardset mode
thresholdfloat0.1250.000976563–1set threshold
ratiofloat21–20set ratio
attackfloat200.01–2000set attack
releasefloat2500.01–9000set release
makeupfloat11–64set make up gain
kneefloat2.828431–8set knee
linkSidechaincompressLinkaverageaverage, maximumset link type
detectionSidechaincompressDetectionrmspeak, rmsset detection
level_scfloat10.015625–64set sidechain gain
mixfloat10–1set mix

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