owncast/core/ffmpeg/ffmpeg.go

15 lines
354 B
Go
Raw Normal View History

package ffmpeg
2020-05-30 04:08:33 +03:00
import (
"github.com/gabek/owncast/config"
2020-05-30 04:08:33 +03:00
)
//ShowStreamOfflineState generates and shows the stream's offline state
func ShowStreamOfflineState() {
transcoder := NewTranscoder()
transcoder.SetSegmentLength(10)
transcoder.SetAppendToStream(true)
transcoder.SetInput(config.Config.VideoSettings.OfflineContent)
transcoder.Start()
2020-05-30 04:08:33 +03:00
}