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