Signed-off-by: Steven Liu <l...@chinaffmpeg.org>
---
 tests/fate/hlsenc.mak                      | 15 +++++++++++++++
 tests/ref/fate/hls-with-vtt-var-stream_map |  1 +
 2 files changed, 16 insertions(+)
 create mode 100644 tests/ref/fate/hls-with-vtt-var-stream_map

diff --git a/tests/fate/hlsenc.mak b/tests/fate/hlsenc.mak
index 98341b2b81..0befe7de7a 100644
--- a/tests/fate/hlsenc.mak
+++ b/tests/fate/hlsenc.mak
@@ -85,6 +85,21 @@ FATE_HLSENC-$(call ALLYES, HLS_DEMUXER MPEGTS_MUXER 
MPEGTS_DEMUXER AEVALSRC_FILT
 fate-hls-list-size: tests/data/hls_list_size.m3u8
 fate-hls-list-size: CMD = framecrc -auto_conversion_filters -flags +bitexact 
-i $(TARGET_PATH)/tests/data/hls_list_size.m3u8 -vf setpts=N*23
 
+tests/data/with_vtt_var_stream_map.m3u8: TAG = GEN
+tests/data/with_vtt_var_stream_map.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | 
tests/data
+       $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< -nostdin \
+        -stream_loop 9 -i $(TARGET_SAMPLES)/mov/buck480p30_na.mp4 \
+        -stream_loop 120 -i 
$(TARGET_SAMPLES)/audiomatch/tones_dolby_44100_stereo_aac_lc.mp4 \
+        -i $(TARGET_SAMPLES)/sub/WebVTT_capability_tester.vtt \
+        -c copy -map 0:v:0 -map 0:v:0 -map 0:v:0 -map 1:a:0 -map 1:a:0 -map 
2:s:0 -map 2:s:0 \
+        -f hls -master_pl_name "with_vtt_var_stream_map.m3u8" \
+        -var_stream_map 
"a:0,name:en_audio,agroup:audio,language:en,default:YES 
a:1,name:nl_audio,agroup:audio,language:nl,default:NO 
v:0,name:en,s:0,sgroup:subtitle,language:en,default:NO 
v:1,name:nl,s:1,sgroup:subtitle,language:nl,default:NO 
v:2,name:high,agroup:audio" \
+        "$(TARGET_PATH)/tests/data/%v.m3u8" 2>/dev/null
+
+FATE_HLSENC-$(call ALLYES, HLS_DEMUXER MPEGTS_MUXER WEBVTT_DEMUXER) += 
fate-hls-with-vtt-var-stream_map
+fate-hls-with-vtt-var-stream_map: tests/data/with_vtt_var_stream_map.m3u8
+fate-hls-with-vtt-var-stream_map: CMD = do_md5sum 
$(TARGET_PATH)/tests/data/with_vtt_var_stream_map.m3u8
+
 tests/data/hls_fmp4.m3u8: TAG = GEN
 tests/data/hls_fmp4.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
        $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< -nostdin \
diff --git a/tests/ref/fate/hls-with-vtt-var-stream_map 
b/tests/ref/fate/hls-with-vtt-var-stream_map
new file mode 100644
index 0000000000..94540963b8
--- /dev/null
+++ b/tests/ref/fate/hls-with-vtt-var-stream_map
@@ -0,0 +1 @@
+d52c10274103e68e8818654e2c2c6545 
*/data/upstream/ubuild/tests/data/with_vtt_var_stream_map.m3u8
-- 
2.43.0

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to