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
111111 fate-hls-fmp4_ac3: tests/data/hls_fmp4_ac3.m3u8
112112 fate-hls-fmp4_ac3: CMD = probeaudiostream $(TARGET_PATH)/tests/data/now_ac3.mp4
113113
114+
115+tests/data/hls_cmfa.m3u8: TAG = GEN
116+tests/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+
123+FATE_HLSENC-yes := $(if $(call FRAMECRC), $(FATE_HLSENC-yes))
124+
125+FATE_HLSENC_PROBE-$(call FRAMECRC, HLS) += fate-hls-cmfa
126+fate-hls-cmfa: tests/data/hls_cmfa.m3u8
127+fate-hls-cmfa: CMD = framecrc -i $(TARGET_PATH)/tests/data/hls_cmfa.m3u8 -c copy
128+
114129 FATE_SAMPLES_FFMPEG += $(FATE_HLSENC-yes)
115130 FATE_SAMPLES_FFMPEG_FFPROBE += $(FATE_HLSENC_PROBE-yes)
116131 fate-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
7+0, 0, 0, 1024, 561, 0x38071617
8+0, 1024, 1024, 1024, 521, 0x74daf7e7
9+0, 2048, 2048, 1024, 600, 0xe5141eb0
10+0, 3072, 3072, 1024, 604, 0xbd3828c4
11+0, 4096, 4096, 1024, 601, 0x15e52194
12+0, 5120, 5120, 1024, 599, 0x768d1ea3
13+0, 6144, 6144, 1024, 615, 0x9bfc30cc
14+0, 7168, 7168, 1024, 604, 0x645e2b63
15+0, 8192, 8192, 1024, 604, 0x98f72233
16+0, 9216, 9216, 1024, 583, 0xcd812a5c
17+0, 10240, 10240, 1024, 613, 0x41f92b61
18+0, 11264, 11264, 1024, 672, 0x70bc47e2
19+0, 12288, 12288, 1024, 693, 0x79a859da
20+0, 13312, 13312, 1024, 720, 0x45ac6f85
21+0, 14336, 14336, 1024, 610, 0x1c422466
22+0, 15360, 15360, 1024, 591, 0x69422883
23+0, 16384, 16384, 1024, 604, 0x79091a89
24+0, 17408, 17408, 1024, 612, 0xf12b2df0
25+0, 18432, 18432, 1024, 588, 0xe2f72a1f
26+0, 19456, 19456, 1024, 599, 0x79132242
27+0, 20480, 20480, 1024, 618, 0xd71a2cc1
28+0, 21504, 21504, 1024, 597, 0xefa42726
29+0, 22528, 22528, 1024, 613, 0x2c922b2e
30+0, 23552, 23552, 1024, 606, 0xc88b25ac
31+0, 24576, 24576, 1024, 684, 0x8786516f
32+0, 25600, 25600, 1024, 604, 0x7e6a26ff
33+0, 26624, 26624, 1024, 612, 0x19a72d6c
34+0, 27648, 27648, 1024, 611, 0x4eaf318c
35+0, 28672, 28672, 1024, 563, 0x01322454
36+0, 29696, 29696, 1024, 581, 0x46181649
37+0, 30720, 30720, 1024, 566, 0x29642165
38+0, 31744, 31744, 1024, 586, 0x7b1c23ab
39+0, 32768, 32768, 1024, 533, 0xd84e166b
40+0, 33792, 33792, 1024, 597, 0xa0801fd0
41+0, 34816, 34816, 1024, 527, 0x77fd11b4
42+0, 35840, 35840, 1024, 543, 0xc8520797
43+0, 36864, 36864, 1024, 599, 0xde86134b
44+0, 37888, 37888, 1024, 540, 0xe5321acd
45+0, 38912, 38912, 1024, 531, 0x73690921
46+0, 39936, 39936, 1024, 590, 0x5af82fbf
47+0, 40960, 40960, 1024, 543, 0xec29061b
48+0, 41984, 41984, 1024, 537, 0x23d618eb
49+0, 43008, 43008, 1024, 579, 0xe55a1967
50+0, 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