1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

tests/fate/hlsenc: add testcase of hls fragment mp4 named cmfa

Add allow extension name cmfa and cmfv test, this testcase only
cover fragment mp4 named cmfa.

ticket description in ticket/11526
This commit is contained in:
Steven Liu
2025-08-05 12:11:29 +08:00
committed by michaelni
parent 8be539b022
commit 7838648be2
2 changed files with 65 additions and 0 deletions

View File

@@ -111,6 +111,21 @@ FATE_HLSENC_PROBE-$(call DEMMUX, HLS AC3, HLS MP4, AC3_DECODER) += fate-hls-fmp4
fate-hls-fmp4_ac3: tests/data/hls_fmp4_ac3.m3u8
fate-hls-fmp4_ac3: CMD = probeaudiostream $(TARGET_PATH)/tests/data/now_ac3.mp4
tests/data/hls_cmfa.m3u8: TAG = GEN
tests/data/hls_cmfa.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
$(M)$(TARGET_EXEC) $(TARGET_PATH)/$< -nostdin \
-i $(TARGET_SAMPLES)/aac/al06_44.mp4 -c copy -map 0 \
-hls_segment_type fmp4 -hls_fmp4_init_filename now.cmfa -hls_list_size 0 \
-hls_time 1 -hls_segment_filename "$(TARGET_PATH)/tests/data/hls_fmp4_%d.cmfa" \
-t 1 $(TARGET_PATH)/tests/data/hls_cmfa.m3u8 2>/dev/null
FATE_HLSENC-yes := $(if $(call FRAMECRC), $(FATE_HLSENC-yes))
FATE_HLSENC_PROBE-$(call FRAMECRC, HLS) += fate-hls-cmfa
fate-hls-cmfa: tests/data/hls_cmfa.m3u8
fate-hls-cmfa: CMD = framecrc -i $(TARGET_PATH)/tests/data/hls_cmfa.m3u8 -c copy
FATE_SAMPLES_FFMPEG += $(FATE_HLSENC-yes)
FATE_SAMPLES_FFMPEG_FFPROBE += $(FATE_HLSENC_PROBE-yes)
fate-hlsenc: $(FATE_HLSENC-yes) $(FATE_HLSENC_PROBE-yes)

50
tests/ref/fate/hls-cmfa Normal file
View File

@@ -0,0 +1,50 @@
#extradata 0: 9, 0x0196004f
#tb 0: 1/44100
#media_type 0: audio
#codec_id 0: aac
#sample_rate 0: 44100
#channel_layout_name 0: 3.0
0, 0, 0, 1024, 561, 0x38071617
0, 1024, 1024, 1024, 521, 0x74daf7e7
0, 2048, 2048, 1024, 600, 0xe5141eb0
0, 3072, 3072, 1024, 604, 0xbd3828c4
0, 4096, 4096, 1024, 601, 0x15e52194
0, 5120, 5120, 1024, 599, 0x768d1ea3
0, 6144, 6144, 1024, 615, 0x9bfc30cc
0, 7168, 7168, 1024, 604, 0x645e2b63
0, 8192, 8192, 1024, 604, 0x98f72233
0, 9216, 9216, 1024, 583, 0xcd812a5c
0, 10240, 10240, 1024, 613, 0x41f92b61
0, 11264, 11264, 1024, 672, 0x70bc47e2
0, 12288, 12288, 1024, 693, 0x79a859da
0, 13312, 13312, 1024, 720, 0x45ac6f85
0, 14336, 14336, 1024, 610, 0x1c422466
0, 15360, 15360, 1024, 591, 0x69422883
0, 16384, 16384, 1024, 604, 0x79091a89
0, 17408, 17408, 1024, 612, 0xf12b2df0
0, 18432, 18432, 1024, 588, 0xe2f72a1f
0, 19456, 19456, 1024, 599, 0x79132242
0, 20480, 20480, 1024, 618, 0xd71a2cc1
0, 21504, 21504, 1024, 597, 0xefa42726
0, 22528, 22528, 1024, 613, 0x2c922b2e
0, 23552, 23552, 1024, 606, 0xc88b25ac
0, 24576, 24576, 1024, 684, 0x8786516f
0, 25600, 25600, 1024, 604, 0x7e6a26ff
0, 26624, 26624, 1024, 612, 0x19a72d6c
0, 27648, 27648, 1024, 611, 0x4eaf318c
0, 28672, 28672, 1024, 563, 0x01322454
0, 29696, 29696, 1024, 581, 0x46181649
0, 30720, 30720, 1024, 566, 0x29642165
0, 31744, 31744, 1024, 586, 0x7b1c23ab
0, 32768, 32768, 1024, 533, 0xd84e166b
0, 33792, 33792, 1024, 597, 0xa0801fd0
0, 34816, 34816, 1024, 527, 0x77fd11b4
0, 35840, 35840, 1024, 543, 0xc8520797
0, 36864, 36864, 1024, 599, 0xde86134b
0, 37888, 37888, 1024, 540, 0xe5321acd
0, 38912, 38912, 1024, 531, 0x73690921
0, 39936, 39936, 1024, 590, 0x5af82fbf
0, 40960, 40960, 1024, 543, 0xec29061b
0, 41984, 41984, 1024, 537, 0x23d618eb
0, 43008, 43008, 1024, 579, 0xe55a1967
0, 44032, 44032, 1024, 535, 0x588a180b