diff options
author | Paul B Mahol <[email protected]> | 2015-12-28 20:20:32 +0100 |
---|---|---|
committer | Paul B Mahol <[email protected]> | 2015-12-28 20:38:06 +0100 |
commit | 4020787b5bbd2ac159c860d1d1ec983837bf31bb (patch) | |
tree | 3bc249fecc700834c3087867069b0e40a4c00df9 | |
parent | f88546b426af6d38f76a8d1b7dc05109a12c7bb9 (diff) |
avfilter/avf_showspectrum: make colors for log scale more user friendly
Previosly output was almost useless because background noise, due to
windowing function picked and which is not actually present in audio,
had too much brightness.
Now output of sine wave matches more with SoX.
Signed-off-by: Paul B Mahol <[email protected]>
-rw-r--r-- | libavfilter/avf_showspectrum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c index 433400dd62..0e2e84be5d 100644 --- a/libavfilter/avf_showspectrum.c +++ b/libavfilter/avf_showspectrum.c @@ -380,7 +380,7 @@ static int plot_spectrum_column(AVFilterLink *inlink, AVFrame *insamples) a = cbrt(a); break; case LOG: - a = 1 + log10(FFMAX(FFMIN(1, a), 1e-6)) / 6; // zero = -120dBFS + a = 1 + log10(FFMAX(FFMIN(1, a), 1e-6)) / 5; // zero = -120dBFS break; default: av_assert0(0); |