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

Petru Rares Sincraian git at videolan.org
Thu Jul 21 00:12:50 EEST 2016


ffmpeg | branch: master | Petru Rares Sincraian <psincraian at outlook.com> | Wed Jul 20 18:32:04 2016 +0200| [7403dcc34e0f9b1451e081e68c55c15c9a58cbc8] | committer: Michael Niedermayer

fate: add test for dcshift filter

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

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

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

diff --git a/tests/fate/filter-audio.mak b/tests/fate/filter-audio.mak
index 21f68ee..67340c1 100644
--- a/tests/fate/filter-audio.mak
+++ b/tests/fate/filter-audio.mak
@@ -99,6 +99,11 @@ fate-filter-chorus: tests/data/asynth-22050-1.wav
 fate-filter-chorus: SRC = $(TARGET_PATH)/tests/data/asynth-22050-1.wav
 fate-filter-chorus: CMD = framecrc -i $(SRC) -aframes 10 -af chorus=0.5:0.5:64:0.5:0.25:2
 
+FATE_AFILTER-$(call FILTERDEMDECENCMUX, DCSHIFT, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-filter-dcshift
+fate-filter-dcshift: tests/data/asynth-44100-2.wav
+fate-filter-dcshift: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
+fate-filter-dcshift: CMD = framecrc -i $(SRC) -aframes 20 -af dcshift=shift=0.25:limitergain=0.05
+
 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-dcshift b/tests/ref/fate/filter-dcshift
new file mode 100644
index 0000000..d04aa92
--- /dev/null
+++ b/tests/ref/fate/filter-dcshift
@@ -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, 0x96868842
+0,       1024,       1024,     1024,     4096, 0xeff98700
+0,       2048,       2048,     1024,     4096, 0x6ea28e1e
+0,       3072,       3072,     1024,     4096, 0x67b982be
+0,       4096,       4096,     1024,     4096, 0xd08a8302
+0,       5120,       5120,     1024,     4096, 0xfdf891dc
+0,       6144,       6144,     1024,     4096, 0xbec4784a
+0,       7168,       7168,     1024,     4096, 0x04ca910a
+0,       8192,       8192,     1024,     4096, 0xe4af87d0
+0,       9216,       9216,     1024,     4096, 0xc7f18c66
+0,      10240,      10240,     1024,     4096, 0x6448732a
+0,      11264,      11264,     1024,     4096, 0x98b89706
+0,      12288,      12288,     1024,     4096, 0xf47887f4
+0,      13312,      13312,     1024,     4096, 0x387290d2
+0,      14336,      14336,     1024,     4096, 0xc5716e84
+0,      15360,      15360,     1024,     4096, 0x94de8aa8
+0,      16384,      16384,     1024,     4096, 0x3a618d88
+0,      17408,      17408,     1024,     4096, 0xfeb56ec2
+0,      18432,      18432,     1024,     4096, 0x55fe8fb6
+0,      19456,      19456,     1024,     4096, 0x8ff788fa



More information about the ffmpeg-cvslog mailing list