@ -16,7 +16,7 @@ const VIDEO_VARIANT_DEFAULTS = {
defaultValue : 24 ,
defaultValue : 24 ,
unit : 'fps' ,
unit : 'fps' ,
incrementBy : null ,
incrementBy : null ,
tip : 'You prob wont need to touch this unless youre a hardcore gamer and need all the bitties ' ,
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. ' ,
} ,
} ,
videoBitrate : {
videoBitrate : {
min : 600 ,
min : 600 ,
@ -24,7 +24,7 @@ const VIDEO_VARIANT_DEFAULTS = {
defaultValue : 1200 ,
defaultValue : 1200 ,
unit : 'kbps' ,
unit : 'kbps' ,
incrementBy : 100 ,
incrementBy : 100 ,
tip : 'This is importatnt yo ' ,
tip : 'The overall quality of your stream is generally impacted most by bitrate. ' ,
} ,
} ,
audioBitrate : {
audioBitrate : {
min : 600 ,
min : 600 ,
@ -117,9 +117,9 @@ export default function VideoVariantForm({
const selectedVideoBRnote = ( ) = > {
const selectedVideoBRnote = ( ) = > {
let note = ` Selected: ${ dataState . videoBitrate } ${ videoBRUnit } ` ;
let note = ` Selected: ${ dataState . videoBitrate } ${ videoBRUnit } ` ;
if ( dataState . videoBitrate < 3 000) {
if ( dataState . videoBitrate < 2 000) {
note = ` ${ note } - Good for low bandwidth environments. ` ;
note = ` ${ note } - Good for low bandwidth environments. ` ;
} else if ( dataState . videoBitrate < 4 500) {
} else if ( dataState . videoBitrate < 3 500) {
note = ` ${ note } - Good for most bandwidth environments. ` ;
note = ` ${ note } - Good for most bandwidth environments. ` ;
} else {
} else {
note = ` ${ note } - Good for high bandwidth environments. ` ;
note = ` ${ note } - Good for high bandwidth environments. ` ;
@ -150,9 +150,7 @@ export default function VideoVariantForm({
return (
return (
< div className = "config-variant-form" >
< div className = "config-variant-form" >
< p className = "description" >
< p className = "description" >
Say a thing here about how this all works . Read more { ' ' }
< a href = "https://owncast.online/docs/video" > Learn more < / a > about how each of these settings can impact the performance of your server .
< a href = "https://owncast.online/docs/configuration/" > here < / a > . Click the OK button below to
save your information .
< / p >
< / p >
< Row gutter = { 16 } >
< Row gutter = { 16 } >
@ -163,6 +161,7 @@ export default function VideoVariantForm({
defaultValue = { dataState . cpuUsageLevel }
defaultValue = { dataState . cpuUsageLevel }
onChange = { handleVideoCpuUsageLevelChange }
onChange = { handleVideoCpuUsageLevelChange }
/ >
/ >
< p className = "read-more-subtext" > < a href = "https://owncast.online/docs/video/#cpu-usage" > Read more about CPU usage . < / a > < / p >
< / div >
< / div >
{ /* VIDEO PASSTHROUGH FIELD - currently disabled */ }
{ /* VIDEO PASSTHROUGH FIELD - currently disabled */ }
@ -180,9 +179,8 @@ export default function VideoVariantForm({
< Col sm = { 24 } md = { 12 } >
< Col sm = { 24 } md = { 12 } >
{ /* VIDEO BITRATE FIELD */ }
{ /* VIDEO BITRATE FIELD */ }
< div
< div
className = { ` form-module bitrate-container ${
className = { ` form-module bitrate-container ${ dataState . videoPassthrough ? 'disabled' : ''
dataState . videoPassthrough ? 'disabled' : ''
} ` }
} ` }
>
>
< Typography.Title level = { 3 } > Video Bitrate < / Typography.Title >
< Typography.Title level = { 3 } > Video Bitrate < / Typography.Title >
< p className = "description" > { VIDEO_VARIANT_DEFAULTS . videoBitrate . tip } < / p >
< p className = "description" > { VIDEO_VARIANT_DEFAULTS . videoBitrate . tip } < / p >
@ -200,6 +198,7 @@ export default function VideoVariantForm({
/ >
/ >
< p className = "selected-value-note" > { selectedVideoBRnote ( ) } < / p >
< p className = "selected-value-note" > { selectedVideoBRnote ( ) } < / p >
< / div >
< / div >
< p className = "read-more-subtext" > < a href = "https://owncast.online/docs/video/#bitrate" > Read more about bitrates . < / a > < / p >
< / div >
< / div >
< / Col >
< / Col >
< / Row >
< / Row >
@ -207,8 +206,9 @@ export default function VideoVariantForm({
< Panel header = "Advanced Settings" key = "1" >
< Panel header = "Advanced Settings" key = "1" >
< p className = "description" >
< p className = "description" >
Resizing your content will take additional resources on your server . If you wish to
Resizing your content will take additional resources on your server . If you wish to
optionally resize your output for this stream variant then you should either set the
optionally resize your content for this stream output then you should either set the
width < strong > or < / strong > the height to keep your aspect ratio .
width < strong > or < / strong > the height to keep your aspect ratio . { ' ' }
< a href = "https://owncast.online/docs/video/#resolution" > Read more about resolutions . < / a >
< / p >
< / p >
< TextField
< TextField
@ -241,6 +241,7 @@ export default function VideoVariantForm({
/ >
/ >
< p className = "selected-value-note" > { selectedFramerateNote ( ) } < / p >
< p className = "selected-value-note" > { selectedFramerateNote ( ) } < / p >
< / div >
< / div >
< p className = "read-more-subtext" > < a href = "https://owncast.online/docs/video/#framerate" > Read more about framerates . < / a > < / p >
< / div >
< / div >
< / Panel >
< / Panel >
< / Collapse >
< / Collapse >