summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-04-15 02:30:12 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-04-20 01:41:44 +0200
commit9a6ae7fbb2fda0aa0e3ec30d6b5860ff1b1b375f (patch)
tree49936a9293304383080c8bf4ffbb26ddbd762242
parent0b32aff83d87b3a7ddaa59e6dff347b267da99ef (diff)
downloadffmpeg-streaming-9a6ae7fbb2fda0aa0e3ec30d6b5860ff1b1b375f.zip
ffmpeg-streaming-9a6ae7fbb2fda0aa0e3ec30d6b5860ff1b1b375f.tar.gz
fate: Add test for ticket 1833 (Ogg/Vorbis Chapters)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rwxr-xr-xtests/fate-run.sh4
-rw-r--r--tests/fate/vorbis.mak7
-rw-r--r--tests/ref/fate/vorbis-1833-chapters36
3 files changed, 46 insertions, 1 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 68b552c..3d58080 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -96,6 +96,10 @@ probeframes(){
run ffprobe${PROGSUF} -show_frames -v 0 "$@"
}
+probechapters(){
+ run ffprobe${PROGSUF} -show_chapters -v 0 "$@"
+}
+
probegaplessinfo(){
filename="$1"
shift
diff --git a/tests/fate/vorbis.mak b/tests/fate/vorbis.mak
index 4b72373..1344180 100644
--- a/tests/fate/vorbis.mak
+++ b/tests/fate/vorbis.mak
@@ -80,6 +80,11 @@ FATE_VORBIS += fate-vorbis-20
fate-vorbis-20: CMD = pcm -i $(TARGET_SAMPLES)/vorbis/6.ogg
fate-vorbis-20: REF = $(SAMPLES)/vorbis/6.pcm
+FATE_VORBIS_FFPROBE-$(CONFIG_OGG_DEMUXER) += fate-vorbis-1833-chapters
+fate-vorbis-1833-chapters: CMD = probechapters $(TARGET_SAMPLES)/vorbis/vorbis_chapter_extension_demo.ogg
+
+FATE_SAMPLES_FFPROBE += $(FATE_VORBIS_FFPROBE-yes)
+
FATE_SAMPLES_AVCONV-$(call DEMDEC, OGG, VORBIS) += $(FATE_VORBIS)
-fate-vorbis: $(FATE_VORBIS)
+fate-vorbis: $(FATE_VORBIS) $(FATE_VORBIS_FFPROBE-yes)
$(FATE_VORBIS): CMP = oneoff
diff --git a/tests/ref/fate/vorbis-1833-chapters b/tests/ref/fate/vorbis-1833-chapters
new file mode 100644
index 0000000..46bd77a
--- /dev/null
+++ b/tests/ref/fate/vorbis-1833-chapters
@@ -0,0 +1,36 @@
+[CHAPTER]
+id=1
+time_base=1/1000
+start=0
+start_time=0.000000
+end=5000
+end_time=5.000000
+TAG:title=start
+[/CHAPTER]
+[CHAPTER]
+id=2
+time_base=1/1000
+start=5000
+start_time=5.000000
+end=10500
+end_time=10.500000
+TAG:title=Five Seconds
+[/CHAPTER]
+[CHAPTER]
+id=3
+time_base=1/1000
+start=10500
+start_time=10.500000
+end=15000
+end_time=15.000000
+TAG:title=Ten point 5 seconds
+[/CHAPTER]
+[CHAPTER]
+id=4
+time_base=1/1000
+start=15000
+start_time=15.000000
+end=19849
+end_time=19.849000
+TAG:title=15 sec - over soon
+[/CHAPTER]
OpenPOWER on IntegriCloud