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)
|
2020-07-14 00:13:24 +02:00
|
|
|
transcoder.SetInput(config.Config.GetOfflineContentPath())
|
2020-06-26 02:44:47 +02:00
|
|
|
transcoder.Start()
|
2020-05-30 03:08:33 +02:00
|
|
|
}
|