Skip to content

Aspectralstats

Audio Single output Transform

Show frequency domain statistics about audio frames.

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

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

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

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
win_sizeint20483265536set the window size
win_funcAspectralstatsWinFunchanningrect, bartlett, hanning, hamming, blackman, welch, flattop, bharris, …set window function
overlapfloat0.501set window overlap
measureint|string4294967295select the parameters which are measured

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