[FFmpeg-devel,v2,8/8] avfilter/silencedetect: new test for mono mode and logs (including log silence_end at end of stream)

Submitted by Gaullier Nicolas on Feb. 12, 2018, 9:48 a.m.

Details

Message ID 20180212094830.9304-8-nicolas.gaullier@arkena.com
State New
Headers show

Commit Message

Gaullier Nicolas Feb. 12, 2018, 9:48 a.m.
From: nicolas gaullier <nicolas.gaullier@arkena.com>

---
 tests/fate/filter-video.mak                   | 3 +++
 tests/ref/fate/filter-metadata-silencedetect2 | 4 ++++
 2 files changed, 7 insertions(+)
 create mode 100644 tests/ref/fate/filter-metadata-silencedetect2

Patch hide | download patch | download mbox

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index 0575fc6767..c69db2a680 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -722,6 +722,9 @@  FATE_METADATA_FILTER-$(call ALLYES, $(SILENCEDETECT_DEPS)) += fate-filter-metada
 fate-filter-metadata-silencedetect: SRC = $(TARGET_SAMPLES)/amrwb/seed-12k65.awb
 fate-filter-metadata-silencedetect: CMD = run $(FILTER_METADATA_COMMAND) "amovie='$(SRC)',silencedetect=n=-42dB:d=.3"
 
+FATE_METADATA_FILTER-$(call ALLYES, $(SILENCEDETECT_DEPS)) += fate-filter-metadata-silencedetect2
+fate-filter-metadata-silencedetect2: SRC = $(TARGET_SAMPLES)/ac3/millers_crossing_4.0.ac3
+fate-filter-metadata-silencedetect2: CMD = rungetavlogs "\[silencedetect.*\].*silence_(start|end)" $(FILTER_METADATA_COMMAND) "amovie='$(SRC)',silencedetect=n=0.02:d=.15:mono=1"
 
 EBUR128_METADATA_DEPS = FFPROBE AVDEVICE LAVFI_INDEV AMOVIE_FILTER FLAC_DEMUXER FLAC_DECODER EBUR128_FILTER
 FATE_METADATA_FILTER-$(call ALLYES, $(EBUR128_METADATA_DEPS)) += fate-filter-metadata-ebur128
diff --git a/tests/ref/fate/filter-metadata-silencedetect2 b/tests/ref/fate/filter-metadata-silencedetect2
new file mode 100644
index 0000000000..674bb34199
--- /dev/null
+++ b/tests/ref/fate/filter-metadata-silencedetect2
@@ -0,0 +1,4 @@ 
+channel: 3 | silence_start: 0 
+channel: 2 | silence_start: 1.52054 
+channel: 2 | silence_end: 1.90594 | silence_duration: 0.385396 
+channel: 3 | silence_end: 1.984 | silence_duration: 1.984