2020-07-18 03:27:00 +02:00
|
|
|
package config
|
|
|
|
|
|
|
|
func getDefaults() config {
|
|
|
|
defaults := config{}
|
|
|
|
defaults.WebServerPort = 8080
|
|
|
|
defaults.VideoSettings.ChunkLengthInSeconds = 4
|
|
|
|
defaults.Files.MaxNumberInPlaylist = 5
|
2020-10-02 08:55:38 +02:00
|
|
|
defaults.YP.Enabled = false
|
|
|
|
defaults.YP.YPServiceURL = "https://yp.owncast.online"
|
2020-10-26 16:55:31 +01:00
|
|
|
defaults.DatabaseFilePath = "data/owncast.db"
|
2020-07-18 03:27:00 +02:00
|
|
|
|
|
|
|
defaultQuality := StreamQuality{
|
|
|
|
IsAudioPassthrough: true,
|
|
|
|
VideoBitrate: 1200,
|
|
|
|
EncoderPreset: "veryfast",
|
2020-08-06 21:19:35 +02:00
|
|
|
Framerate: 24,
|
2020-07-18 03:27:00 +02:00
|
|
|
}
|
|
|
|
defaults.VideoSettings.StreamQualities = []StreamQuality{defaultQuality}
|
|
|
|
|
|
|
|
return defaults
|
|
|
|
}
|