Transcoder updates for bitrate validator warnings (#106)

* Transcoder updates for validator warnings (gop, max-bitrates) for #50

* Make the variant settings easier to set/read in code

* Update test to reflect update to transcoder

* Reduce the buffer to give it a little more room to improve the quality. It feels a bit crunched right now.

* Fix test due to changed bitrate buffer ratios

* Tweak buffer size one more time to get errors in the validator to zero

* Saw errors w/ different bitrates, so tweaking it again
This commit is contained in:
Gabe Kangas
2020-08-06 12:19:35 -07:00
committed by GitHub
parent df04af0f38
commit d21f136120
4 changed files with 45 additions and 29 deletions

View File

@@ -197,6 +197,15 @@ func (c *config) GetVideoStreamQualities() []StreamQuality {
return _default.VideoSettings.StreamQualities
}
// GetFramerate returns the framerate or default
func (q *StreamQuality) GetFramerate() int {
if q.Framerate > 0 {
return q.Framerate
}
return _default.VideoSettings.StreamQualities[0].Framerate
}
//Load tries to load the configuration file
func Load(filePath string, versionInfo string) error {
Config = new(config)

View File

@@ -21,6 +21,7 @@ func getDefaults() config {
IsAudioPassthrough: true,
VideoBitrate: 1200,
EncoderPreset: "veryfast",
Framerate: 24,
}
defaults.VideoSettings.StreamQualities = []StreamQuality{defaultQuality}