diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-11-11 21:11:30 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-11-11 21:23:24 +0100 |
commit | bdc66c50dd6974a12a2881a9b5d43f41629fa67c (patch) | |
tree | 30b43967240fb2b7873dcd568e4be6fe0465d73e /doc | |
parent | 679ad3146972c7af7a996106c3cddcf58208b6fa (diff) |
avfilter/af_afftfilt: extend filter functionality
Diffstat (limited to 'doc')
-rw-r--r-- | doc/filters.texi | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index fb1dd8f353..0d9ff43ef0 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -1082,7 +1082,7 @@ Set frequency domain imaginary expression for each separate channel separated by '|'. If not set, @var{real} option is used. Each expression in @var{real} and @var{imag} can contain the following -constants: +constants and functions: @table @option @item sr @@ -1102,6 +1102,18 @@ number of channels @item pts current frame pts + +@item re +current real part of frequency bin + +@item im +current imaginary part of frequency bin + +@item real(b, ch) +Return the value of real part of frequency bin at location (@var{bin},@var{channel}) + +@item imag(b, ch) +Return the value of imaginary part of frequency bin at location (@var{bin},@var{channel}) @end table @item win_size @@ -1139,7 +1151,7 @@ window function will be picked. Default is @code{0.75}. @item Leave almost only low frequencies in audio: @example -afftfilt="1-clip((b/nb)*b,0,1)" +afftfilt="'real=re * (1-clip((b/nb)*b,0,1))':imag='im * (1-clip((b/nb)*b,0,1))'" @end example @end itemize |