diff --git a/rtmp/flv/writer.go b/rtmp/flv/writer.go index 67c79bb..cfe5beb 100644 --- a/rtmp/flv/writer.go +++ b/rtmp/flv/writer.go @@ -23,6 +23,7 @@ func NewFLVWriter(stream_key string) (*FLVWriter, error) { "-c:a", "aac", "-c:v", "h264", "-b:v", "1M", + "-g", "30", "-hls_time", "6", "-hls_list_size", "4", "-hls_base_url", "/vid/" + stream_key + "/",