Skip to content

Afftdn

Audio Single output Transform

Denoise audio samples using FFT.

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

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

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

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
noise_reductionfloat120.0197set the noise reduction
noise_floorfloat-50-80-20set the noise floor
noise_typeAfftdnTypewhitewhite, vinyl, shellac, customset the noise type
band_noisestringset the custom bands noise
residual_floorfloat-38-80-20set the residual floor
track_noiseboolfalsetrack noise
track_residualboolfalsetrack residual
output_modeAfftdnModeoutputinput, output, noiseset output mode
adaptivityfloat0.501set adaptivity factor
floor_offsetfloat1-22set noise floor offset factor
noise_linkAfftdnLinkminnone, min, max, averageset the noise floor link
band_multiplierfloat1.250.25set band multiplier
sample_noiseAfftdnSamplenonenone, start, stopset sample noise mode
gain_smoothint0050set gain smooth radius

FFmpeg also names these options (use the parameter shown above): nrnoise_reduction, nfnoise_floor, ntnoise_type, bnband_noise, rfresidual_floor, tntrack_noise, trtrack_residual, omoutput_mode, adadaptivity, fofloor_offset, nlnoise_link, bmband_multiplier, snsample_noise, gsgain_smooth.


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