Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Restore max num of segments in playlist value
Gabe Kangasa06395666028
diff --git a/config.go b/config.goindex d4c5cffbf1..465e0b9113 100644--- a/config.go+++ b/config.go@@ -35,7 +35,6 @@ type StreamQuality struct {// MaxNumberOnDisk must be at least as large as MaxNumberInPlaylisttype Files struct {MaxNumberInPlaylist int `yaml:"maxNumberInPlaylist"`- MaxNumberOnDisk int `yaml:"maxNumberOnDisk"`}type IPFS struct {diff --git a/config/config-example.yaml b/config/config-example.yamlindex ea44e5bfdd..b4292b0984 100644--- a/config/config-example.yaml+++ b/config/config-example.yaml@@ -14,7 +14,6 @@ videoSettings:files:maxNumberInPlaylist: 30- maxNumberOnDisk: 60ipfs:enabled: falsediff --git a/ffmpeg.go b/ffmpeg.goindex f0be6a8b67..b5e1618175 100644--- a/ffmpeg.go+++ b/ffmpeg.go@@ -69,14 +69,13 @@ func startFfmpeg(configuration Config) {"-sc_threshold 0", // don't create key frames on scene change - only according to -g"-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_list_size " + strconv.Itoa(configuration.Files.MaxNumberInPlaylist),"-hls_time " + strconv.Itoa(configuration.VideoSettings.ChunkLengthInSeconds),"-strftime 1","-use_localtime 1","-hls_playlist_type event","-hls_segment_filename " + path.Join(outputDir, "stream-%Y%m%d-%s.ts"),"-hls_flags delete_segments+program_date_time+temp_file",- "-segment_wrap 100","-tune zerolatency",streamMappingString,