Skip to content

Anoisesrc

Audio Single output Source

Generate a noise audio signal.

FFmpeg filter: anoisesrc — the official reference.

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

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
sample_rateint48000≥ 15set sample rate
amplitudefloat10–1set amplitude
durationint0≥ 0set duration
colourAnoisesrcColorwhitewhite, pink, brown, blue, violet, velvetset noise color
seedint-1≥ -1set random seed
nb_samplesint1024≥ 1set the number of samples per requested frame
densityfloat0.050–1set density

FFmpeg also names these options (use the parameter shown above): r → sample_rate, a → amplitude, d → duration, color → colour, c → colour, s → seed, n → nb_samples.


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