Skip to content

Acompressor

Audio Single output Transform

Audio compressor.

FFmpeg filter: acompressor — 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 Acompressor());
$result = $node->outputs()[0];

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

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

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 gain
modeAcompressorModedownwarddownward, upwardset mode
thresholdfloat0.1250.0009765631set threshold
ratiofloat2120set ratio
attackfloat200.012000set attack
releasefloat2500.019000set release
makeupfloat1164set make up gain
kneefloat2.8284318set knee
linkAcompressorLinkaverageaverage, maximumset link type
detectionAcompressorDetectionrmspeak, rmsset detection
level_scfloat10.01562564set sidechain gain
mixfloat101set mix

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