Restore customizable chunk lengths

This commit is contained in:
Gabe Kangas
2020-06-12 14:14:05 -07:00
parent d53fe98543
commit 5a7c16374c

View File

@@ -6,6 +6,7 @@ import (
"os" "os"
"os/exec" "os/exec"
"path" "path"
"strconv"
"strings" "strings"
) )
@@ -69,7 +70,7 @@ func startFfmpeg(configuration Config) {
"-profile:v main", // Main for standard definition (SD) to 640×480, High for high definition (HD) to 1920×1080 "-profile:v main", // Main for standard definition (SD) to 640×480, High for high definition (HD) to 1920×1080
"-f hls", "-f hls",
"-hls_list_size 30", "-hls_list_size 30",
"-hls_time 10", "-hls_time " + strconv.Itoa(configuration.VideoSettings.ChunkLengthInSeconds),
"-strftime 1", "-strftime 1",
"-use_localtime 1", "-use_localtime 1",
"-hls_playlist_type event", "-hls_playlist_type event",