* A fix for issue https://github.com/owncast/owncast/issues/770
- merge CPU slider functionality into main video variant form
- move slider constants into contants file for consistency and to reduce clutter on variant form file
* disable other forms and add a notice about vieo passthrough enabling
* Prettified Code!
* Tweak message text
* Prettified Code!
Co-authored-by: gingervitis <gingervitis@users.noreply.github.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
Co-authored-by: gabek <gabek@users.noreply.github.com>
'Reducing your framerate will decrease the amount of video that needs to be encoded and sent to your viewers, saving CPU and bandwidth at the expense of smoothness. A lower value is generally is fine for most content.',
},
videoBitrate:{
min: 600,
max: 6000,
defaultValue: 1200,
unit:'kbps',
incrementBy: 100,
tip:'The overall quality of your stream is generally impacted most by bitrate.',
},
audioBitrate:{
min: 600,
max: 1200,
defaultValue: 800,
unit:'kbps',
incrementBy: 100,
tip:'nothing to see here',
},
videoPassthrough:{
tip:'If enabled, all other settings will be disabled. Otherwise configure as desired.',
},
audioPassthrough:{
tip:'If No is selected, then you should set your desired Audio Bitrate.',
},
scaledWidth:{
fieldName:'scaledWidth',
label:'Resized Width',
maxLength: 4,
placeholder:'1080',
tip:"Optionally resize this content's width.",
},
scaledHeight:{
fieldName:'scaledHeight',
label:'Resized Height',
maxLength: 4,
placeholder:'720',
tip:"Optionally resize this content's height.",
},
};
interfaceVideoVariantFormProps{
dataState: VideoVariant;
onUpdateField: FieldUpdaterFunc;
@ -66,6 +29,8 @@ export default function VideoVariantForm({
@@ -66,6 +29,8 @@ export default function VideoVariantForm({
tip:'If enabled, all other settings will be disabled. Otherwise configure as desired.',
},
audioPassthrough:{
tip:'If No is selected, then you should set your desired Audio Bitrate.',
},
scaledWidth:{
fieldName:'scaledWidth',
label:'Resized Width',
maxLength: 4,
placeholder:'1080',
tip:"Optionally resize this content's width.",
},
scaledHeight:{
fieldName:'scaledHeight',
label:'Resized Height',
maxLength: 4,
placeholder:'720',
tip:"Optionally resize this content's height.",
},
};
// VIDEO VARIANT FORM - framerate
exportconstFRAMERATE_DEFAULTS={
min: 24,
max: 120,
defaultValue: 24,
unit:'fps',
incrementBy: null,
tip:
'Reducing your framerate will decrease the amount of video that needs to be encoded and sent to your viewers, saving CPU and bandwidth at the expense of smoothness. A lower value is generally is fine for most content.',