[FFmpeg-cvslog] fate: add wav chapters test
Paul B Mahol
git at videolan.org
Mon Sep 7 20:06:23 EEST 2020
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Sep 4 20:45:53 2020 +0200| [03415f25d295b1e16d07851a773ff30280dc8b9e] | committer: Paul B Mahol
fate: add wav chapters test
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=03415f25d295b1e16d07851a773ff30280dc8b9e
---
tests/fate/lavf-audio.mak | 5 +++++
tests/ref/fate/wav-chapters | 45 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 50 insertions(+)
diff --git a/tests/fate/lavf-audio.mak b/tests/fate/lavf-audio.mak
index 0be7a3a050..a0600491a8 100644
--- a/tests/fate/lavf-audio.mak
+++ b/tests/fate/lavf-audio.mak
@@ -36,3 +36,8 @@ fate-lavf-peak_only.wav: CMD = lavf_audio "" "-write_peak only"
FATE_AVCONV += $(FATE_LAVF_AUDIO)
fate-lavf-audio fate-lavf: $(FATE_LAVF_AUDIO)
+
+FATE_WAV_FFPROBE-$(CONFIG_WAV_DEMUXER) += fate-wav-chapters
+fate-wav-chapters: CMD = probechapters $(TARGET_SAMPLES)/wav/200828-005.wav
+
+FATE_SAMPLES_FFPROBE += $(FATE_WAV_FFPROBE-yes)
diff --git a/tests/ref/fate/wav-chapters b/tests/ref/fate/wav-chapters
new file mode 100644
index 0000000000..b47c560786
--- /dev/null
+++ b/tests/ref/fate/wav-chapters
@@ -0,0 +1,45 @@
+[CHAPTER]
+id=1
+time_base=1/48000
+start=148992
+start_time=3.104000
+end=226560
+end_time=4.720000
+TAG:title=01
+[/CHAPTER]
+[CHAPTER]
+id=2
+time_base=1/48000
+start=226560
+start_time=4.720000
+end=301728
+end_time=6.286000
+TAG:title=02
+[/CHAPTER]
+[CHAPTER]
+id=3
+time_base=1/48000
+start=301728
+start_time=6.286000
+end=314016
+end_time=6.542000
+TAG:title=03
+[/CHAPTER]
+[CHAPTER]
+id=4
+time_base=1/48000
+start=314016
+start_time=6.542000
+end=396528
+end_time=8.261000
+TAG:title=04
+[/CHAPTER]
+[CHAPTER]
+id=5
+time_base=1/48000
+start=396528
+start_time=8.261000
+end=614464
+end_time=12.801333
+TAG:title=05
+[/CHAPTER]
More information about the ffmpeg-cvslog
mailing list