Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
feat: simplify console logs
Gabe Kangasaef28916a106
diff --git a/core/core.go b/core/core.goindex bf43ebb423..5b6e282627 100644--- a/core/core.go+++ b/core/core.go@@ -76,7 +76,9 @@ func Start() error {go rtmp.Start(setStreamAsConnected, setBroadcaster)rtmpPort := data.GetRTMPPortNumber()- log.Infof("RTMP is accepting inbound streams on port %d.", rtmpPort)+ if rtmpPort != 1935 {+ log.Infof("RTMP is accepting inbound streams on port %d.", rtmpPort)+ }webhooks.SetupWebhooks(GetStatus)@@ -108,7 +110,7 @@ func transitionToOfflineVideoStreamContent() {}_transcoder.SetInput(offlineFilePath)- go _transcoder.Start()+ go _transcoder.Start(false)// Copy the logo to be the thumbnaillogo := data.GetLogoPath()diff --git a/core/streamState.go b/core/streamState.goindex 99db86f767..05eca220b6 100644--- a/core/streamState.go+++ b/core/streamState.go@@ -65,7 +65,7 @@ func setStreamAsConnected(rtmpOut *io.PipeReader) {_currentBroadcast = nil}_transcoder.SetStdin(rtmpOut)- _transcoder.Start()+ _transcoder.Start(true)}()go webhooks.SendStreamStatusEvent(models.StreamStarted)diff --git a/core/transcoder/transcoder.go b/core/transcoder/transcoder.goindex 7a84d3714f..ff1bbaa720 100644--- a/core/transcoder/transcoder.go+++ b/core/transcoder/transcoder.go@@ -55,7 +55,6 @@ type HLSVariant struct {isVideoPassthrough bool // Override all settings and just copy the video streamisAudioPassthrough bool // Override all settings and just copy the audio stream-}// VideoSize is the scaled size of the video output.@@ -112,11 +111,13 @@ func (t *Transcoder) Stop() {}// Start will execute the transcoding process with the settings previously set.-func (t *Transcoder) Start() {+func (t *Transcoder) Start(shouldLog bool) {_lastTranscoderLogMessage = ""command := t.getString()- log.Infof("Video transcoder started using %s with %d stream variants.", t.codec.DisplayName(), len(t.variants))+ if shouldLog {+ log.Infof("Processing video using codec %s with %d output qualities configured.", t.codec.DisplayName(), len(t.variants))+ }createVariantDirectories()if config.EnableDebugFeatures {diff --git a/router/router.go b/router/router.goindex f8f1810937..c1866eb5f6 100644--- a/router/router.go+++ b/router/router.go@@ -433,8 +433,12 @@ func Start() error {Handler: compress(m),}- log.Infof("Web server is listening on IP %s port %d.", ip, port)- log.Infoln("The web admin interface is available at /admin.")+ if ip != "0.0.0.0" {+ log.Infof("Web server is listening at %s:%d.", ip, port)+ } else {+ log.Infof("Web server is listening on port %d.", port)+ }+ log.Infoln("Configure this server by visiting /admin.")return server.ListenAndServe()}