Skip to content

Afwtdn

Audio Single output Transform

Denoise audio stream using Wavelets.

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

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

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

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
sigmafloat001set noise sigma
levelsint10112set number of wavelet levels
wavetAfwtdnWavetsym10sym2, sym4, rbior68, deb10, sym10, coif5, bl3set wavelet type
percentfloat850100set percent of full denoising
profileboolfalseprofile noise
adaptiveboolfalseadaptive profiling of noise
samplesint819251265536set frame size in number of samples
softnessfloat1010set thresholding softness

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