Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Remove hardcoded urls
Gabe Kangasd9ce2c05758c
diff --git a/ffmpeg.go b/ffmpeg.goindex 4f30ae324b..72f0ce3c51 100644--- a/ffmpeg.go+++ b/ffmpeg.go@@ -40,11 +40,9 @@ func startFfmpeg(configuration Config) {var streamMappingString = ""if configuration.VideoSettings.EnablePassthrough || len(configuration.VideoSettings.StreamQualities) == 0 {fmt.Println("Enabling passthrough video")- // videoMaps = append(videoMaps, fmt.Sprintf("-map 0:v -c:v copy"))streamMaps = append(streamMaps, fmt.Sprintf("v:%d,a:%d", 0, 0))} else {for index, quality := range configuration.VideoSettings.StreamQualities {- // minRate := math.Floor(float64(quality.Bitrate) / 2)maxRate := math.Floor(float64(quality.Bitrate) * 0.8)videoMaps = append(videoMaps, fmt.Sprintf("-map v:0 -c:v:%d libx264 -b:v:%d %dk -maxrate %dk -bufsize %dk", index, index, int(quality.Bitrate), int(maxRate), int(maxRate)))streamMaps = append(streamMaps, fmt.Sprintf("v:%d,a:%d", index, index))@@ -54,7 +52,7 @@ func startFfmpeg(configuration Config) {}}- framerate := 30+ framerate := 25streamMappingString = "-var_stream_map \"" + strings.Join(streamMaps, " ") + "\""ffmpegFlags := []string{diff --git a/webroot/index.html b/webroot/index.htmlindex 7a95781c46..f4483e4ffb 100644--- a/webroot/index.html+++ b/webroot/index.html@@ -59,10 +59,10 @@autoplayplaysinlinemuted- poster="https://goth.land/thumbnail.png"+ poster="/thumbnail.png"data-setup='{}'>- <source src="https://goth.land/hls/stream.m3u8" type="application/x-mpegURL"/>+ <source src="hls/stream.m3u8" type="application/x-mpegURL"/></video></div>