Commit 9a6ae7fb authored by Michael Niedermayer's avatar Michael Niedermayer

fate: Add test for ticket 1833 (Ogg/Vorbis Chapters)

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 0b32aff8
...@@ -96,6 +96,10 @@ probeframes(){ ...@@ -96,6 +96,10 @@ probeframes(){
run ffprobe${PROGSUF} -show_frames -v 0 "$@" run ffprobe${PROGSUF} -show_frames -v 0 "$@"
} }
probechapters(){
run ffprobe${PROGSUF} -show_chapters -v 0 "$@"
}
probegaplessinfo(){ probegaplessinfo(){
filename="$1" filename="$1"
shift shift
......
...@@ -80,6 +80,11 @@ FATE_VORBIS += fate-vorbis-20 ...@@ -80,6 +80,11 @@ FATE_VORBIS += fate-vorbis-20
fate-vorbis-20: CMD = pcm -i $(TARGET_SAMPLES)/vorbis/6.ogg fate-vorbis-20: CMD = pcm -i $(TARGET_SAMPLES)/vorbis/6.ogg
fate-vorbis-20: REF = $(SAMPLES)/vorbis/6.pcm 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_SAMPLES_AVCONV-$(call DEMDEC, OGG, VORBIS) += $(FATE_VORBIS)
fate-vorbis: $(FATE_VORBIS) fate-vorbis: $(FATE_VORBIS) $(FATE_VORBIS_FFPROBE-yes)
$(FATE_VORBIS): CMP = oneoff $(FATE_VORBIS): CMP = oneoff
[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]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment