History

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

Steven Liu committed 1 year ago

Commit 78386481 parent 8be539b2 files · +65 −0Browse files

Unified · Split

2 files
  1. tests/fate/hlsenc.mak +15 −0
  2. tests/ref/fate/hls-cmfa +50 −0
tests/fate/hlsenc.mak+15−0
@@ -111,6 +111,21 @@ FATE_HLSENC_PROBE-$(call DEMMUX, HLS AC3, HLS MP4, AC3_DECODER) += fate-hls-fmp4 · 110 unmodified lines
111fate-hls-fmp4_ac3: tests/data/hls_fmp4_ac3.m3u8111fate-hls-fmp4_ac3: tests/data/hls_fmp4_ac3.m3u8
112fate-hls-fmp4_ac3: CMD = probeaudiostream $(TARGET_PATH)/tests/data/now_ac3.mp4112fate-hls-fmp4_ac3: CMD = probeaudiostream $(TARGET_PATH)/tests/data/now_ac3.mp4
113 113
114
115tests/data/hls_cmfa.m3u8: TAG = GEN
116tests/data/hls_cmfa.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
117 $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< -nostdin \
118 -i $(TARGET_SAMPLES)/aac/al06_44.mp4 -c copy -map 0 \
119 -hls_segment_type fmp4 -hls_fmp4_init_filename now.cmfa -hls_list_size 0 \
120 -hls_time 1 -hls_segment_filename "$(TARGET_PATH)/tests/data/hls_fmp4_%d.cmfa" \
121 -t 1 $(TARGET_PATH)/tests/data/hls_cmfa.m3u8 2>/dev/null
122
123FATE_HLSENC-yes := $(if $(call FRAMECRC), $(FATE_HLSENC-yes))
124
125FATE_HLSENC_PROBE-$(call FRAMECRC, HLS) += fate-hls-cmfa
126fate-hls-cmfa: tests/data/hls_cmfa.m3u8
127fate-hls-cmfa: CMD = framecrc -i $(TARGET_PATH)/tests/data/hls_cmfa.m3u8 -c copy
128
114FATE_SAMPLES_FFMPEG += $(FATE_HLSENC-yes)129FATE_SAMPLES_FFMPEG += $(FATE_HLSENC-yes)
115FATE_SAMPLES_FFMPEG_FFPROBE += $(FATE_HLSENC_PROBE-yes)130FATE_SAMPLES_FFMPEG_FFPROBE += $(FATE_HLSENC_PROBE-yes)
116fate-hlsenc: $(FATE_HLSENC-yes) $(FATE_HLSENC_PROBE-yes)131fate-hlsenc: $(FATE_HLSENC-yes) $(FATE_HLSENC_PROBE-yes)
tests/ref/fate/hls-cmfa+50−0
@@ -0,0 +1,50 @@
1#extradata 0: 9, 0x0196004f
2#tb 0: 1/44100
3#media_type 0: audio
4#codec_id 0: aac
5#sample_rate 0: 44100
6#channel_layout_name 0: 3.0
70, 0, 0, 1024, 561, 0x38071617
80, 1024, 1024, 1024, 521, 0x74daf7e7
90, 2048, 2048, 1024, 600, 0xe5141eb0
100, 3072, 3072, 1024, 604, 0xbd3828c4
110, 4096, 4096, 1024, 601, 0x15e52194
120, 5120, 5120, 1024, 599, 0x768d1ea3
130, 6144, 6144, 1024, 615, 0x9bfc30cc
140, 7168, 7168, 1024, 604, 0x645e2b63
150, 8192, 8192, 1024, 604, 0x98f72233
160, 9216, 9216, 1024, 583, 0xcd812a5c
170, 10240, 10240, 1024, 613, 0x41f92b61
180, 11264, 11264, 1024, 672, 0x70bc47e2
190, 12288, 12288, 1024, 693, 0x79a859da
200, 13312, 13312, 1024, 720, 0x45ac6f85
210, 14336, 14336, 1024, 610, 0x1c422466
220, 15360, 15360, 1024, 591, 0x69422883
230, 16384, 16384, 1024, 604, 0x79091a89
240, 17408, 17408, 1024, 612, 0xf12b2df0
250, 18432, 18432, 1024, 588, 0xe2f72a1f
260, 19456, 19456, 1024, 599, 0x79132242
270, 20480, 20480, 1024, 618, 0xd71a2cc1
280, 21504, 21504, 1024, 597, 0xefa42726
290, 22528, 22528, 1024, 613, 0x2c922b2e
300, 23552, 23552, 1024, 606, 0xc88b25ac
310, 24576, 24576, 1024, 684, 0x8786516f
320, 25600, 25600, 1024, 604, 0x7e6a26ff
330, 26624, 26624, 1024, 612, 0x19a72d6c
340, 27648, 27648, 1024, 611, 0x4eaf318c
350, 28672, 28672, 1024, 563, 0x01322454
360, 29696, 29696, 1024, 581, 0x46181649
370, 30720, 30720, 1024, 566, 0x29642165
380, 31744, 31744, 1024, 586, 0x7b1c23ab
390, 32768, 32768, 1024, 533, 0xd84e166b
400, 33792, 33792, 1024, 597, 0xa0801fd0
410, 34816, 34816, 1024, 527, 0x77fd11b4
420, 35840, 35840, 1024, 543, 0xc8520797
430, 36864, 36864, 1024, 599, 0xde86134b
440, 37888, 37888, 1024, 540, 0xe5321acd
450, 38912, 38912, 1024, 531, 0x73690921
460, 39936, 39936, 1024, 590, 0x5af82fbf
470, 40960, 40960, 1024, 543, 0xec29061b
480, 41984, 41984, 1024, 537, 0x23d618eb
490, 43008, 43008, 1024, 579, 0xe55a1967
500, 44032, 44032, 1024, 535, 0x588a180b

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t