mirror of
https://github.com/owncast/owncast.git
synced 2024-12-19 07:44:26 +03:00
04dc0796d8
* New video transcoder * Set a smaller max muxing size + logging tweaks * No need to return an err since it wiill panic anyway * Use a default encoder preset if one is not supplied * Rename to NewTranscoder. Add comments. * Rename Bitrate to VideoBitrate. Config file changes required with this rename. * Allow overrides of segment length. Allow offline stream to live in a single segment * Append offline state video to existin HLS stream instead of overwriting because players do not like that * Make properties private as they do not need to be exported
14 lines
354 B
Go
14 lines
354 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.VideoSettings.OfflineContent)
|
|
transcoder.Start()
|
|
}
|