From 7b5021f8d2387881539d11843ad0b73b27810ba8 Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Tue, 22 Aug 2023 14:58:01 +0500 Subject: [PATCH] switch to fragmented mp4 from ts --- rtmp/flv/writer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rtmp/flv/writer.go b/rtmp/flv/writer.go index 3b5f60a..67c79bb 100644 --- a/rtmp/flv/writer.go +++ b/rtmp/flv/writer.go @@ -26,6 +26,7 @@ func NewFLVWriter(stream_key string) (*FLVWriter, error) { "-hls_time", "6", "-hls_list_size", "4", "-hls_base_url", "/vid/" + stream_key + "/", + "-hls_segment_type", "fmp4", "-hls_flags", "delete_segments", "-hls_flags", "+program_date_time", "stream.m3u8",