fate: add test for firequalizer filter
authorMuhammad Faiz <mfcc64@gmail.com>
Thu, 13 Oct 2016 01:43:50 +0000 (08:43 +0700)
committerMuhammad Faiz <mfcc64@gmail.com>
Thu, 13 Oct 2016 18:46:37 +0000 (01:46 +0700)
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
tests/fate/filter-audio.mak
tests/filtergraphs/firequalizer [new file with mode: 0644]

index 809bf4e..9c6f7cd 100644 (file)
@@ -114,6 +114,15 @@ 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 = oneoff
+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 (file)
index 0000000..ee432e2
--- /dev/null
@@ -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