Skip to content

Afdelaysrc

Audio Single output Source

Generate a Fractional delay FIR coefficients.

FFmpeg filter: afdelaysrc — the official reference.

Generate a stream. Afdelaysrc 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 Afdelaysrc(…));

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
delayfloat00–32767set fractional delay
sample_rateint44100≥ 1set sample rate
nb_samplesint1024≥ 1set the number of samples per requested frame
tapsint00–32768set number of taps for delay filter
channel_layoutstring——set channel layout

FFmpeg also names these options (use the parameter shown above): d → delay, r → sample_rate, n → nb_samples, t → taps, c → channel_layout.


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