segment.mak 3.2 KB

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