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:
@@ -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)
|
||||
|
||||
@@ -21,6 +21,7 @@ func getDefaults() config {
|
||||
IsAudioPassthrough: true,
|
||||
VideoBitrate: 1200,
|
||||
EncoderPreset: "veryfast",
|
||||
Framerate: 24,
|
||||
}
|
||||
defaults.VideoSettings.StreamQualities = []StreamQuality{defaultQuality}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user