Replace presets with cpu usage levels

This commit is contained in:
Gabe Kangas
2021-01-30 22:53:00 -08:00
parent 362c421d05
commit 0c111c2c0b
7 changed files with 81 additions and 55 deletions

View File

@@ -173,21 +173,13 @@ export const FIELD_PROPS_YP = {
tip: 'Turn this ON if you want to show up in the Owncast directory at https://directory.owncast.online.',
};
export const ENCODER_PRESETS = [
'fast',
'faster',
'veryfast',
'superfast',
'ultrafast',
];
export const DEFAULT_VARIANT_STATE:VideoVariant = {
framerate: 24,
videoPassthrough: false,
videoBitrate: 800,
audioPassthrough: true, // if false, then CAN set audiobitrate
audioBitrate: 0,
encoderPreset: 'veryfast',
cpuUsageLevel: 3,
};
export const DEFAULT_SOCIAL_HANDLE:SocialHandle = {