mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fate/id3v2: Add test for id3v2 chapters
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
8364643f68
commit
b0afa10c8c
@ -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)
|
||||
|
66
tests/ref/fate/id3v2-chapters
Normal file
66
tests/ref/fate/id3v2-chapters
Normal file
@ -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]
|
Loading…
Reference in New Issue
Block a user