[FFmpeg-devel] [PATCH] fate: add test for firequalizer filter
Muhammad Faiz
mfcc64 at gmail.com
Thu Oct 13 01:14:38 EEST 2016
Signed-off-by: Muhammad Faiz <mfcc64 at gmail.com>
---
tests/fate/filter-audio.mak | 10 ++++++++++
tests/filtergraphs/firequalizer | 27 +++++++++++++++++++++++++++
2 files changed, 37 insertions(+)
create mode 100644 tests/filtergraphs/firequalizer
diff --git a/tests/fate/filter-audio.mak b/tests/fate/filter-audio.mak
index 809bf4e..a20ff74 100644
--- a/tests/fate/filter-audio.mak
+++ b/tests/fate/filter-audio.mak
@@ -114,6 +114,16 @@ fate-filter-extrastereo: tests/data/asynth-44100-2.wav
fate-filter-extrastereo: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
fate-filter-extrastereo: CMD = framecrc -i $(SRC) -aframes 20 -af extrastereo=m=2
+FATE_AFILTER-$(call FILTERDEMDECENCMUX, FIREQUALIZER ATRIM VOLUME, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-filter-firequalizer
+fate-filter-firequalizer: tests/data/asynth-44100-2.wav
+fate-filter-firequalizer: tests/data/filtergraphs/firequalizer
+fate-filter-firequalizer: REF = tests/data/asynth-44100-2.wav
+fate-filter-firequalizer: CMD = ffmpeg -i $(TARGET_PATH)/tests/data/asynth-44100-2.wav -filter_script $(TARGET_PATH)/tests/data/filtergraphs/firequalizer -f wav -acodec pcm_s16le -
+fate-filter-firequalizer: CMP = stddev
+fate-filter-firequalizer: FUZZ = 0.01
+fate-filter-firequalizer: CMP_UNIT = s16
+fate-filter-firequalizer: SIZE_TOLERANCE = 1058400 - 1097208
+
FATE_AFILTER_SAMPLES-$(call FILTERDEMDECENCMUX, SILENCEREMOVE, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-filter-silenceremove
fate-filter-silenceremove: SRC = $(TARGET_SAMPLES)/audio-reference/divertimenti_2ch_96kHz_s24.wav
fate-filter-silenceremove: CMD = framecrc -i $(SRC) -aframes 30 -af silenceremove=0:0:0:-1:0:-90dB
diff --git a/tests/filtergraphs/firequalizer b/tests/filtergraphs/firequalizer
new file mode 100644
index 0000000..ee432e2
--- /dev/null
+++ b/tests/filtergraphs/firequalizer
@@ -0,0 +1,27 @@
+firequalizer =
+ gain = 'sin(0.001*f) - 1':
+ delay = 0.05,
+
+firequalizer =
+ gain = 'if (ch, -0.7 * sin(0.001*f), -0.2 * sin(0.001*f)) - 1':
+ delay = 0.1:
+ fixed = on:
+ multi = on:
+ zero_phase = on:
+ wfunc = nuttall,
+
+firequalizer =
+ gain = 'if (ch, -0.3 * sin(0.001*f), -0.8 * sin(0.001*f)) - 1':
+ delay = 0.05:
+ multi = on,
+
+firequalizer =
+ gain_entry = 'entry(1000, 0); entry(5000, 0.1); entry(10000, 0.2)',
+
+firequalizer =
+ gain_entry = 'entry(1000, 0.2); entry(5000, 0.1); entry(10000, 0)',
+
+volume = 2.8dB,
+
+atrim =
+ start = 0.12
--
2.5.0
More information about the ffmpeg-devel
mailing list