owncast/core/ffmpeg/ffmpeg.go
2020-07-13 15:13:24 -07:00

15 lines
349 B
Go

package ffmpeg
import (
"github.com/gabek/owncast/config"
)
//ShowStreamOfflineState generates and shows the stream's offline state
func ShowStreamOfflineState() {
transcoder := NewTranscoder()
transcoder.SetSegmentLength(10)
transcoder.SetAppendToStream(true)
transcoder.SetInput(config.Config.GetOfflineContentPath())
transcoder.Start()
}