[FFmpeg-cvslog] fate: add test for compand filter

Petru Rares Sincraian git at videolan.org
Sat Aug 13 01:05:35 EEST 2016


ffmpeg | branch: master | Petru Rares Sincraian <psincraian at outlook.com> | Fri Aug 12 19:00:09 2016 +0200| [777697a62c00fe17093f383388aaccaca486be93] | committer: Michael Niedermayer

fate: add test for compand filter

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=777697a62c00fe17093f383388aaccaca486be93
---

 tests/fate/filter-audio.mak   |  6 ++++++
 tests/filtergraphs/compand    |  1 +
 tests/ref/fate/filter-compand | 25 +++++++++++++++++++++++++
 3 files changed, 32 insertions(+)

diff --git a/tests/fate/filter-audio.mak b/tests/fate/filter-audio.mak
index d9db494..d1d9d59 100644
--- a/tests/fate/filter-audio.mak
+++ b/tests/fate/filter-audio.mak
@@ -127,6 +127,12 @@ 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
 
+FATE_AFILTER-$(call FILTERDEMDECENCMUX, COMPAND, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-filter-compand
+fate-filter-compand: tests/data/asynth-44100-2.wav
+fate-filter-compand: tests/data/filtergraphs/compand
+fate-filter-compand: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
+fate-filter-compand: CMD = framecrc -i $(SRC) -aframes 20 -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/compand
+
 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/filtergraphs/compand b/tests/filtergraphs/compand
new file mode 100644
index 0000000..b1fdd98
--- /dev/null
+++ b/tests/filtergraphs/compand
@@ -0,0 +1 @@
+compand='points=-80/-80|-9/-9|0/-5.3|20/2.9'
diff --git a/tests/ref/fate/filter-compand b/tests/ref/fate/filter-compand
new file mode 100644
index 0000000..14fe0b2
--- /dev/null
+++ b/tests/ref/fate/filter-compand
@@ -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, 0xfc10e61b
+0,       1024,       1024,     1024,     4096, 0x8801ef13
+0,       2048,       2048,     1024,     4096, 0xba55fc17
+0,       3072,       3072,     1024,     4096, 0x70f203a0
+0,       4096,       4096,     1024,     4096, 0x9f2ff593
+0,       5120,       5120,     1024,     4096, 0x52f0fb77
+0,       6144,       6144,     1024,     4096, 0x435502ec
+0,       7168,       7168,     1024,     4096, 0xaacfe4bb
+0,       8192,       8192,     1024,     4096, 0x38010f44
+0,       9216,       9216,     1024,     4096, 0x8a79e351
+0,      10240,      10240,     1024,     4096, 0x3d66ec91
+0,      11264,      11264,     1024,     4096, 0x03031b7e
+0,      12288,      12288,     1024,     4096, 0xd9c310ec
+0,      13312,      13312,     1024,     4096, 0x076af28b
+0,      14336,      14336,     1024,     4096, 0xb80fdfe3
+0,      15360,      15360,     1024,     4096, 0xff0fe68d
+0,      16384,      16384,     1024,     4096, 0x679efb4d
+0,      17408,      17408,     1024,     4096, 0xf84fe6e3
+0,      18432,      18432,     1024,     4096, 0x01ebf175
+0,      19456,      19456,     1024,     4096, 0xe7cdea1b



More information about the ffmpeg-cvslog mailing list