[FFmpeg-devel] [PATCH] fate: fix silenceremove test

Paul B Mahol onemda at gmail.com
Thu Sep 9 22:14:17 EEST 2021


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 tests/fate/filter-audio.mak         |  5 +--
 tests/ref/fate/filter-silenceremove | 67 ++++++++++++++---------------
 2 files changed, 35 insertions(+), 37 deletions(-)

diff --git a/tests/fate/filter-audio.mak b/tests/fate/filter-audio.mak
index 8b38ee5e75..db70f26438 100644
--- a/tests/fate/filter-audio.mak
+++ b/tests/fate/filter-audio.mak
@@ -178,9 +178,8 @@ fate-filter-pan-downmix2: tests/data/asynth-44100-11.wav
 fate-filter-pan-downmix2: SRC = $(TARGET_PATH)/tests/data/asynth-44100-11.wav
 fate-filter-pan-downmix2: CMD = framecrc -ss 3.14 -i $(SRC) -frames:a 20 -filter:a "pan=5C|c0=0.7*c0+0.7*c10|c1=c9|c2=c8|c3=c7|c4=c6"
 
-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) -frames:a 30 -af aresample,silenceremove=start_periods=0:start_duration=0:start_threshold=0:stop_periods=-1:stop_duration=0:stop_threshold=-90dB,aresample
+FATE_AFILTER-$(call ALLYES, LAVFI_INDEV, AEVALSRC_FILTER SILENCEREMOVE_FILTER) += fate-filter-silenceremove
+fate-filter-silenceremove: CMD = framecrc -auto_conversion_filters -f lavfi -i "aevalsrc=between(t\,1\,2)+between(t\,4\,5)+between(t\,7\,9):d=10:n=8192,silenceremove=start_periods=0:start_duration=0:start_threshold=0:stop_periods=-1:stop_duration=0:stop_threshold=-90dB:window=0:detection=peak"
 
 FATE_AFILTER_SAMPLES-$(call FILTERDEMDECENCMUX, STEREOTOOLS, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-filter-stereotools
 fate-filter-stereotools: SRC = $(TARGET_SAMPLES)/audio-reference/luckynight_2ch_44kHz_s16.wav
diff --git a/tests/ref/fate/filter-silenceremove b/tests/ref/fate/filter-silenceremove
index 81647c60ba..58b5a38607 100644
--- a/tests/ref/fate/filter-silenceremove
+++ b/tests/ref/fate/filter-silenceremove
@@ -1,36 +1,35 @@
-#tb 0: 1/192000
+#tb 0: 1/44100
 #media_type 0: audio
 #codec_id 0: pcm_s16le
-#sample_rate 0: 192000
-#channel_layout 0: 3
-#channel_layout_name 0: stereo
-0,          0,          0,        1,        4, 0x00200008
-0,          1,          1,        1,        4, 0x00180006
-0,          2,          2,        1,        4, 0x001c0007
-0,          3,          3,        1,        4, 0x03250208
-0,          4,          4,        1,        4, 0x03290208
-0,          5,          5,        1,        4, 0x03230207
-0,          6,          6,        1,        4, 0x031f0206
-0,          7,          7,        1,        4, 0x03250208
-0,          8,          8,        1,        4, 0x00220009
-0,          9,          9,        1,        4, 0x00200009
-0,         10,         10,        1,        4, 0x03250208
-0,         11,         11,        1,        4, 0x0335020c
-0,         12,         12,        1,        4, 0x034b0211
-0,         13,         13,        1,        4, 0x034b020f
-0,         14,         14,        1,        4, 0x0343020e
-0,         15,         15,        1,        4, 0x00440011
-0,         16,         16,        1,        4, 0x00400011
-0,         17,         17,        1,        4, 0x003a000f
-0,         18,         18,        1,        4, 0x0339020d
-0,         19,         19,        1,        4, 0x003a000f
-0,         20,         20,        1,        4, 0x0034000d
-0,         21,         21,        1,        4, 0x0034000d
-0,         22,         22,        1,        4, 0x0036000e
-0,         23,         23,        1,        4, 0x03290208
-0,         24,         24,        1,        4, 0x03230204
-0,         25,         25,        1,        4, 0x03170201
-0,         26,         26,        1,        4, 0x030701fd
-0,         27,         27,        1,        4, 0x02fd01fc
-0,         28,         28,        1,        4, 0x00060002
-0,         29,         29,        1,        4, 0x000c0004
+#sample_rate 0: 44100
+#channel_layout 0: 4
+#channel_layout_name 0: mono
+0,          0,          0,     8192,    16384, 0x00000000
+0,       8192,       8192,     8192,    16384, 0x00000000
+0,      16384,      16384,     8192,    16384, 0x00000000
+0,      24576,      24576,     8192,    16384, 0x00000000
+0,      32768,      32768,     8192,    16384, 0x00000000
+0,      40960,      40960,     8192,    16384, 0xec1f743b
+0,      49152,      49152,     8192,    16384, 0x6f17c2c1
+0,      57344,      57344,     8192,    16384, 0x6f17c2c1
+0,      65536,      65536,     8192,    16384, 0x6f17c2c1
+0,      73728,      73728,     8192,    16384, 0x6f17c2c1
+0,      81920,      81920,     6281,    12562, 0x1db69e8a
+0,      88201,      88201,     3824,     7648, 0xa34b4b6a
+0,      92025,      92025,     8192,    16384, 0x6f17c2c1
+0,     100217,     100217,     8192,    16384, 0x6f17c2c1
+0,     108409,     108409,     8192,    16384, 0x6f17c2c1
+0,     116601,     116601,     8192,    16384, 0x6f17c2c1
+0,     124793,     124793,     7509,    15018, 0x104cc75b
+0,     132302,     132302,     2596,     5192, 0x06872299
+0,     134898,     134898,     8192,    16384, 0x6f17c2c1
+0,     143090,     143090,     8192,    16384, 0x6f17c2c1
+0,     151282,     151282,     8192,    16384, 0x6f17c2c1
+0,     159474,     159474,     8192,    16384, 0x6f17c2c1
+0,     167666,     167666,     8192,    16384, 0x6f17c2c1
+0,     175858,     175858,     8192,    16384, 0x6f17c2c1
+0,     184050,     184050,     8192,    16384, 0x6f17c2c1
+0,     192242,     192242,     8192,    16384, 0x6f17c2c1
+0,     200434,     200434,     8192,    16384, 0x6f17c2c1
+0,     208626,     208626,     8192,    16384, 0x6f17c2c1
+0,     216818,     216818,     3685,     7370, 0xd40a7bf1
-- 
2.17.1



More information about the ffmpeg-devel mailing list