[FFmpeg-devel] [PATCH 1/3] avfilter/af_apsyclip: fix FFT bin indexing

2022-01-28 Thread Jason Jang
With a complex FFT instead of real FFT, the negative frequencies are not dropped from the spectrum output, so they need to be scaled when the positive frequencies are scaled. The location of the top bin is also different. Signed-off-by: Jason Jang --- libavfilter/af_apsyclip.c | 19

[FFmpeg-devel] [PATCH 2/3] avfilter/af_apsyclip: fix peak overestimation

2022-01-28 Thread Jason Jang
windowed again before overlapping, overshoots near the edge of the block are not very important. 0.1 is the value from the version originally contributed to calf. Signed-off-by: Jason Jang --- libavfilter/af_apsyclip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[FFmpeg-devel] [PATCH 3/3] avfilter/af_apsyclip: increase protection for high frequencies

2022-01-28 Thread Jason Jang
This reduces sibilance distortion when sibilance and bass are present at the same time. Bringing the protection of high frequencies up to about the same level as for low frequencies should also make the quality less dependent on the frequency balance of the playback system. Signed-off-by: Jason