h264 keyframe fix to keep desired hls segment length

This commit is contained in:
Muaz Ahmad 2023-08-22 15:08:55 +05:00
parent 355b1bfa77
commit 82a426ef49

View file

@ -23,6 +23,7 @@ func NewFLVWriter(stream_key string) (*FLVWriter, error) {
"-c:a", "aac", "-c:a", "aac",
"-c:v", "h264", "-c:v", "h264",
"-b:v", "1M", "-b:v", "1M",
"-g", "30",
"-hls_time", "6", "-hls_time", "6",
"-hls_list_size", "4", "-hls_list_size", "4",
"-hls_base_url", "/vid/" + stream_key + "/", "-hls_base_url", "/vid/" + stream_key + "/",