[FFmpeg-devel] [PATCH v3 8/8] lavfi/silencedetect: New test for mono mode+logs
Nicolas Gaullier
nicolas.gaullier at arkena.com
Mon Feb 19 15:17:05 EET 2018
Includes test log of silence_end at eos
---
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
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
--
2.15.0
More information about the ffmpeg-devel
mailing list