[FFmpeg-cvslog] fate/id3v2: Add test for id3v2 chapters
Andreas Rheinhardt
git at videolan.org
Sun Apr 18 03:45:03 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Apr 12 20:38:24 2021 +0200| [b0afa10c8cf590907a93f1a6a9c49e73d78c3649] | committer: Andreas Rheinhardt
fate/id3v2: Add test for id3v2 chapters
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b0afa10c8cf590907a93f1a6a9c49e73d78c3649
---
tests/fate/id3v2.mak | 5 ++++
tests/ref/fate/id3v2-chapters | 66 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 71 insertions(+)
diff --git a/tests/fate/id3v2.mak b/tests/fate/id3v2.mak
index 1bf95129bd..fea7545270 100644
--- a/tests/fate/id3v2.mak
+++ b/tests/fate/id3v2.mak
@@ -6,6 +6,11 @@ FATE_ID3V2_FFMPEG_FFPROBE-$(call ALLYES, FILE_PROTOCOL MP3_DEMUXER MP3_MUXER \
+= fate-id3v2-priv-remux
fate-id3v2-priv-remux: CMD = transcode mp3 $(TARGET_SAMPLES)/id3v2/id3v2_priv.mp3 mp3 "-c copy" "-c copy -t 0.1" "" "-show_entries format_tags"
+FATE_ID3V2_FFMPEG_FFPROBE-$(call ALLYES, FILE_PROTOCOL WAV_DEMUXER AIFF_MUXER \
+ AIFF_DEMUXER FRAMECRC_MUXER PIPE_PROTOCOL) \
+ += fate-id3v2-chapters
+fate-id3v2-chapters: CMD = transcode wav $(TARGET_SAMPLES)/wav/200828-005.wav aiff "-c copy -metadata:c:0 description=foo -metadata:c:0 date=2021 -metadata:c copyright=none -metadata:c:1 genre=nonsense -write_id3v2 1" "-c copy -t 0.05" "" "-show_entries format_tags:chapters"
+
FATE_SAMPLES_FFPROBE += $(FATE_ID3V2_FFPROBE-yes)
FATE_SAMPLES_FFMPEG_FFPROBE += $(FATE_ID3V2_FFMPEG_FFPROBE-yes)
fate-id3v2: $(FATE_ID3V2_FFPROBE-yes) $(FATE_ID3V2_FFMPEG_FFPROBE-yes)
diff --git a/tests/ref/fate/id3v2-chapters b/tests/ref/fate/id3v2-chapters
new file mode 100644
index 0000000000..5aa8f82af9
--- /dev/null
+++ b/tests/ref/fate/id3v2-chapters
@@ -0,0 +1,66 @@
+4a68428e97f0af8d222a91404ae0839c *tests/data/fate/id3v2-chapters.aiff
+2458466 tests/data/fate/id3v2-chapters.aiff
+#tb 0: 1/48000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 48000
+#channel_layout 0: 3
+#channel_layout_name 0: stereo
+0, 0, 0, 1024, 4096, 0xc5b6547b
+0, 1024, 1024, 1024, 4096, 0x0f27633e
+0, 2048, 2048, 1024, 4096, 0x6c66e3dc
+[CHAPTER]
+id=0
+time_base=1/1000
+start=3104
+start_time=3.104000
+end=4720
+end_time=4.720000
+TAG:title=01
+TAG:description=foo
+TAG:date=2021
+TAG:copyright=none
+[/CHAPTER]
+[CHAPTER]
+id=1
+time_base=1/1000
+start=4720
+start_time=4.720000
+end=6286
+end_time=6.286000
+TAG:title=02
+TAG:genre=nonsense
+[/CHAPTER]
+[CHAPTER]
+id=2
+time_base=1/1000
+start=6286
+start_time=6.286000
+end=6542
+end_time=6.542000
+TAG:title=03
+[/CHAPTER]
+[CHAPTER]
+id=3
+time_base=1/1000
+start=6542
+start_time=6.542000
+end=8261
+end_time=8.261000
+TAG:title=04
+[/CHAPTER]
+[CHAPTER]
+id=4
+time_base=1/1000
+start=8261
+start_time=8.261000
+end=12801
+end_time=12.801000
+TAG:title=05
+[/CHAPTER]
+[FORMAT]
+TAG:encoded_by=ZOOM Handy Recorder H4n
+TAG:date=2020-08-28
+TAG:coding_history=A=PCM,F=48000,W=16,M=stereo,T=ZOOM Handy Recorder H4n
+TAG:time_reference=2350992000
+[/FORMAT]
More information about the ffmpeg-cvslog
mailing list