h264 keyframe fix to keep desired hls segment length
This commit is contained in:
parent
355b1bfa77
commit
82a426ef49
1 changed files with 1 additions and 0 deletions
|
@ -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 + "/",
|
||||
|
|
Loading…
Reference in a new issue