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