summaryrefslogtreecommitdiffstats
path: root/tests/fate
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2019-04-14 21:22:22 +0800
committerSteven Liu <lq@chinaffmpeg.org>2019-04-17 16:10:23 +0800
commit2a50f1d9e414bdf3d97c6aa649769d17793f2991 (patch)
tree16106f5c5d165fed9e9009bbba4ca216d92e7431 /tests/fate
parente2f766e13f0350017a0c3c7111b54cda7317e500 (diff)
downloadffmpeg-streaming-2a50f1d9e414bdf3d97c6aa649769d17793f2991.zip
ffmpeg-streaming-2a50f1d9e414bdf3d97c6aa649769d17793f2991.tar.gz
tests/fate: add fate-hls-segment-size for hls_segment_size test
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'tests/fate')
-rw-r--r--tests/fate/hlsenc.mak11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/fate/hlsenc.mak b/tests/fate/hlsenc.mak
index 8053623..489d47b 100644
--- a/tests/fate/hlsenc.mak
+++ b/tests/fate/hlsenc.mak
@@ -41,3 +41,14 @@ fate-hls-live-endlist: CMD = md5 -i $(SRC) -af hdcd=process_stereo=false -t 20 -
fate-hls-live-endlist: CMP = oneline
fate-hls-live-endlist: REF = e189ce781d9c87882f58e3929455167b
+tests/data/hls_segment_size.m3u8: TAG = GEN
+tests/data/hls_segment_size.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
+ $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \
+ -f lavfi -i "aevalsrc=cos(2*PI*t)*sin(2*PI*(440+4*t)*t):d=20" -f hls -hls_segment_size 300000 -map 0 \
+ -hls_list_size 0 -codec:a mp2fixed -hls_segment_filename $(TARGET_PATH)/tests/data/live_endlist_%d.ts \
+ $(TARGET_PATH)/tests/data/hls_segment_size.m3u8 2>/dev/null
+
+FATE_AFILTER-$(call ALLYES, HLS_DEMUXER MPEGTS_MUXER MPEGTS_DEMUXER AEVALSRC_FILTER LAVFI_INDEV MP2FIXED_ENCODER) += fate-hls-segment-size
+fate-hls-segment-size: tests/data/hls_segment_size.m3u8
+fate-hls-segment-size: CMD = framecrc -flags +bitexact -i $(TARGET_PATH)/tests/data/hls_segment_size.m3u8 -vf setpts=N*23
+
OpenPOWER on IntegriCloud