FFmpeg 3.1.11
Since* 3.0
#

Apply arbitrary expressions to samples in frequency domain.

real

Set frequency domain real expression for each separate channel separated by ’|’. Default is "1". If the number of input channels is greater than the number of expressions, the last specified expression is used for the remaining output channels.

imag

Set frequency domain imaginary expression for each separate channel separated by ’|’. If not set, real option is used.

Each expression in real and imag can contain the following constants:

sr

sample rate

b

current frequency bin number

nb

number of available bins

ch

channel number of the current expression

chs

number of channels

pts

current frame pts

win_size

Set window size.

It accepts the following values:

  • w16
  • w32
  • w64
  • w128
  • w256
  • w512
  • w1024
  • w2048
  • w4096
  • w8192
  • w16384
  • w32768
  • w65536

Default is w4096

win_func

Set window function. Default is hann.

overlap

Set window overlap. If set to 1, the recommended overlap for selected window function will be picked. Default is 0.75.

#

Examples

  • Leave almost only low frequencies in audio:

    afftfilt="1-clip((b/nb)*b,0,1)"