diff mbox

[FFmpeg-devel] fate: add test for tremolo filter

Message ID HE1PR1001MB082739FADD2AFCCC3388D69DCE050@HE1PR1001MB0827.EURPRD10.PROD.OUTLOOK.COM
State Accepted
Headers show

Commit Message

Petru Rares Sincraian Aug. 2, 2016, 7:59 a.m. UTC
Hi there,

Here is a test for tremolo filter.


Regards,
Petru Rares :)

Comments

Michael Niedermayer Aug. 2, 2016, 10:49 a.m. UTC | #1
On Tue, Aug 02, 2016 at 07:59:43AM +0000, Petru Rares Sincraian wrote:
> 
> Hi there,
> 
> Here is a test for tremolo filter.
> 
> 
> Regards,
> Petru Rares :)

>  fate/filter-audio.mak   |    5 +++++
>  ref/fate/filter-tremolo |   25 +++++++++++++++++++++++++
>  2 files changed, 30 insertions(+)
> e9a7d7a1b0fffa6abd5bdc938bbcc66f98131243  0001-fate-add-test-for-tremolo-filter.patch
> From c83f7fadf860c9612dfa545703ba596f3c729cbf Mon Sep 17 00:00:00 2001
> From: Petru Rares Sincraian <psincraian@outlook.com>
> Date: Tue, 2 Aug 2016 09:38:17 +0200
> Subject: [PATCH] fate: add test for tremolo filter

applied

thx

[...]
diff mbox

Patch

From c83f7fadf860c9612dfa545703ba596f3c729cbf Mon Sep 17 00:00:00 2001
From: Petru Rares Sincraian <psincraian@outlook.com>
Date: Tue, 2 Aug 2016 09:38:17 +0200
Subject: [PATCH] fate: add test for tremolo filter

---
 tests/fate/filter-audio.mak   |  5 +++++
 tests/ref/fate/filter-tremolo | 25 +++++++++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 tests/ref/fate/filter-tremolo

diff --git a/tests/fate/filter-audio.mak b/tests/fate/filter-audio.mak
index ac4c3f4..d9db494 100644
--- a/tests/fate/filter-audio.mak
+++ b/tests/fate/filter-audio.mak
@@ -122,6 +122,11 @@  FATE_AFILTER_SAMPLES-$(call FILTERDEMDECENCMUX, STEREOTOOLS, WAV, PCM_S16LE, PCM
 fate-filter-stereotools: SRC = $(TARGET_SAMPLES)/audio-reference/luckynight_2ch_44kHz_s16.wav
 fate-filter-stereotools: CMD = framecrc -i $(SRC) -aframes 20 -af stereotools=mlev=0.015625
 
+FATE_AFILTER-$(call FILTERDEMDECENCMUX, TREMOLO, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-filter-tremolo
+fate-filter-tremolo: tests/data/asynth-44100-2.wav
+fate-filter-tremolo: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
+fate-filter-tremolo: CMD = framecrc -i $(SRC) -aframes 20 -af tremolo
+
 tests/data/hls-list.m3u8: TAG = GEN
 tests/data/hls-list.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
 	$(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \
diff --git a/tests/ref/fate/filter-tremolo b/tests/ref/fate/filter-tremolo
new file mode 100644
index 0000000..ed0e662
--- /dev/null
+++ b/tests/ref/fate/filter-tremolo
@@ -0,0 +1,25 @@ 
+#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 44100
+#channel_layout 0: 3
+0,          0,          0,     1024,     4096, 0x5d3be907
+0,       1024,       1024,     1024,     4096, 0xea151fbe
+0,       2048,       2048,     1024,     4096, 0xa5bc19f4
+0,       3072,       3072,     1024,     4096, 0x8706ec6d
+0,       4096,       4096,     1024,     4096, 0x334ff275
+0,       5120,       5120,     1024,     4096, 0xcd0ff7ad
+0,       6144,       6144,     1024,     4096, 0x29a1e9c9
+0,       7168,       7168,     1024,     4096, 0x1d41e77f
+0,       8192,       8192,     1024,     4096, 0x99e7fe07
+0,       9216,       9216,     1024,     4096, 0x4bbf09ce
+0,      10240,      10240,     1024,     4096, 0x94600236
+0,      11264,      11264,     1024,     4096, 0xc8af0c9e
+0,      12288,      12288,     1024,     4096, 0x70eef88f
+0,      13312,      13312,     1024,     4096, 0xb222ec47
+0,      14336,      14336,     1024,     4096, 0x1071ee27
+0,      15360,      15360,     1024,     4096, 0x7c390bd2
+0,      16384,      16384,     1024,     4096, 0x68bdf655
+0,      17408,      17408,     1024,     4096, 0x810cfacb
+0,      18432,      18432,     1024,     4096, 0x9639e41f
+0,      19456,      19456,     1024,     4096, 0xa30be70f
-- 
1.9.1