Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Restore customizable chunk lengths

Gabe Kangas5a7c16374c0e
diff --git a/ffmpeg.go b/ffmpeg.go
index 797f9b1286..f0be6a8b67 100644
--- a/ffmpeg.go
+++ b/ffmpeg.go
@@ -6,6 +6,7 @@ import (
"os"
"os/exec"
"path"
+ "strconv"
"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
"-f hls",
"-hls_list_size 30",
- "-hls_time 10",
+ "-hls_time " + strconv.Itoa(configuration.VideoSettings.ChunkLengthInSeconds),
"-strftime 1",
"-use_localtime 1",
"-hls_playlist_type event",