Skip to content

Afireqsrc

Audio Single output Source

Generate a FIR equalizer coefficients audio stream.

FFmpeg filter: afireqsrc — the official reference.

Generate a stream. Afireqsrc is a source — it has no input, so you create a stream from it rather than applying it to one:

$audio = \FFmpeg\AudioStream::generate(new Afireqsrc(…));

apply() and addFilter() do not apply to source filters (there is nothing to attach them to).

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
presetAfireqsrcPresetflatcustom, flat, acoustic, bass, beats, classic, clear, deep bass, …set equalizer preset
gainsstring0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0—set gain values per band
bandsstring25 40 63 100 160 250 400 630 1000 1600 2500 4000 6300 10000 16000 24000—set central frequency values per band
tapsint409616–65535set number of taps
sample_rateint44100≥ 1set sample rate
nb_samplesint1024≥ 1set the number of samples per requested frame
interpAfireqsrcInterplinearlinear, cubicset the interpolation
phaseAfireqsrcPhaseminlinear, minset the phase

FFmpeg also names these options (use the parameter shown above): p → preset, g → gains, b → bands, t → taps, r → sample_rate, n → nb_samples, i → interp, h → phase.


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