• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1tests/data/mp4-to-ts.m3u8: TAG = GEN
2tests/data/mp4-to-ts.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
3	$(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \
4        -i $(TARGET_SAMPLES)/h264/interlaced_crop.mp4 \
5        -f ssegment -segment_time 1 -map 0 -flags +bitexact -codec copy \
6        -segment_list $(TARGET_PATH)/$@ -y $(TARGET_PATH)/tests/data/mp4-to-ts-%03d.ts 2>/dev/null
7
8tests/data/adts-to-mkv.m3u8: TAG = GEN
9tests/data/adts-to-mkv.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
10	$(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \
11        -i $(TARGET_SAMPLES)/audiomatch/tones_afconvert_16000_mono_aac_lc.m4a \
12        -f segment -segment_time 1 -map 0 -flags +bitexact -codec copy -segment_format_options live=1 \
13        -segment_list $(TARGET_PATH)/$@ -y $(TARGET_PATH)/tests/data/adts-to-mkv-%03d.mkv 2>/dev/null
14
15tests/data/adts-to-mkv-header.mkv: TAG = GEN
16tests/data/adts-to-mkv-header.mkv: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
17	$(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \
18        -i $(TARGET_SAMPLES)/audiomatch/tones_afconvert_16000_mono_aac_lc.m4a \
19        -f segment -segment_time 1 -map 0 -flags +bitexact -codec copy -segment_format_options live=1 \
20        -segment_header_filename $(TARGET_PATH)/tests/data/adts-to-mkv-header.mkv \
21        -y $(TARGET_PATH)/tests/data/adts-to-mkv-header-%03d.mkv 2>/dev/null
22
23tests/data/adts-to-mkv-header-%.mkv: tests/data/adts-to-mkv-header.mkv ;
24
25FATE_SEGMENT_PARTS += 000 001 002
26
27tests/data/adts-to-mkv-cated-all.mkv: TAG = GEN
28tests/data/adts-to-mkv-cated-all.mkv: tests/data/adts-to-mkv-header.mkv $(FATE_SEGMENT_PARTS:%=tests/data/adts-to-mkv-header-%.mkv) | tests/data
29	$(M)cat $^ >$@
30
31tests/data/adts-to-mkv-cated-%.mkv: TAG = GEN
32tests/data/adts-to-mkv-cated-%.mkv: tests/data/adts-to-mkv-header.mkv tests/data/adts-to-mkv-header-%.mkv | tests/data
33	$(M)cat $^ >$@
34
35FATE_SEGMENT += fate-segment-mp4-to-ts
36fate-segment-mp4-to-ts: tests/data/mp4-to-ts.m3u8
37fate-segment-mp4-to-ts: CMD = framecrc -flags +bitexact -i $(TARGET_PATH)/tests/data/mp4-to-ts.m3u8 -c copy
38FATE_SEGMENT-$(call ALLYES, MOV_DEMUXER H264_MP4TOANNEXB_BSF MPEGTS_MUXER MATROSKA_DEMUXER SEGMENT_MUXER HLS_DEMUXER) += fate-segment-mp4-to-ts
39
40FATE_SEGMENT += fate-segment-adts-to-mkv
41fate-segment-adts-to-mkv: tests/data/adts-to-mkv.m3u8
42fate-segment-adts-to-mkv: CMD = framecrc -flags +bitexact -i $(TARGET_PATH)/tests/data/adts-to-mkv.m3u8 -c copy
43fate-segment-adts-to-mkv: REF = $(SRC_PATH)/tests/ref/fate/segment-adts-to-mkv-header-all
44FATE_SEGMENT-$(call ALLYES, AAC_DEMUXER AAC_ADTSTOASC_BSF MATROSKA_MUXER MATROSKA_DEMUXER SEGMENT_MUXER HLS_DEMUXER) += fate-segment-adts-to-mkv
45
46FATE_SEGMENT_ALLPARTS = $(FATE_SEGMENT_PARTS)
47FATE_SEGMENT_ALLPARTS += all
48FATE_SEGMENT_SPLIT += $(FATE_SEGMENT_ALLPARTS:%=fate-segment-adts-to-mkv-header-%)
49$(foreach N,$(FATE_SEGMENT_ALLPARTS),$(eval $(N:%=fate-segment-adts-to-mkv-header-%): tests/data/adts-to-mkv-cated-$(N).mkv))
50fate-segment-adts-to-mkv-header-%: CMD = framecrc -flags +bitexact -i $(TARGET_PATH)/tests/data/$(@:fate-segment-adts-to-mkv-header-%=adts-to-mkv-cated-%).mkv -c copy
51FATE_SEGMENT-$(call ALLYES, AAC_DEMUXER AAC_ADTSTOASC_BSF MATROSKA_MUXER MATROSKA_DEMUXER SEGMENT_MUXER HLS_DEMUXER) += $(FATE_SEGMENT_SPLIT)
52
53FATE_SAMPLES_FFMPEG += $(FATE_SEGMENT-yes)
54
55fate-segment: $(FATE_SEGMENT-yes)
56