FFMPEG Tee muxer not displaying video stream for HLS

I am attempting to generate an HLS stream, but when I open the stream, only audio is being received. The video is not being displayed. I suspect that I may have missed some parameters in the “tee” configuration. Please help me figuring out the issue?

ffmpeg -hwaccel_output_format cuda -i test_video.ts \
-filter_complex \
"[0:v]split=2[h1][h2];\
[h1]scale=w=3840:h=2160[h1_out];\
[h2]scale=w=1920:h=1080[h2_out]" \
-map [h1_out] -c:v:0 hevc_nvenc -preset fast -b:v:0 10M -minrate:v:0 10M -maxrate:v:0 10M  -bufsize:v:0 100M -g 48 -sc_threshold 0 -keyint_min 48 \
-map [h2_out] -c:v:1 hevc_nvenc -preset fast -b:v:0 10M -minrate:v:0 10M -maxrate:v:0 10M  -bufsize:v:0 100M -g 48 -sc_threshold 0 -keyint_min 48 \
-map a:0 -c:a:0 aac -b:a:0 48k \
-map a:0 -c:a:1 aac -b:a:1 48k \
-f hls \
-hls_time 2 \
-tag:v hvc1 -bsf:v hevc_mp4toannexb -ac 2 \
-hls_flags independent_segments \
-hls_segment_type fmp4 \
-f tee \
"[var_stream_map=\'v:0,a:0 v:1,a:1\':hls_list_size=10:master_pl_name=master.m3u8]http://my-service:9999/stream/my-id/stream_%v/stream.m3u8| \
[var_stream_map=\'v:0,a:0 v:1,a:1\':hls_list_size=0:master_pl_name=master_vod.m3u8:hls_playlist_type=vod]http://my-service:9999/stream/my-id/stream_vod_%v/stream_vod.m3u8"

Read more here: Source link