owncast/core/ffmpeg/ffmpeg.go

15 lines
349 B
Go
Raw Normal View History

package ffmpeg
2020-05-30 03:08:33 +02:00
import (
"github.com/gabek/owncast/config"
2020-05-30 03:08:33 +02:00
)
//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()
2020-05-30 03:08:33 +02:00
}