Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Prettified Code!
gabek259ac676ff6d
diff --git a/web/components/config/video-variant-form.tsx b/web/components/config/video-variant-form.tsxindex 0830e3d60e..3ec73c5665 100644--- a/web/components/config/video-variant-form.tsx+++ b/web/components/config/video-variant-form.tsx@@ -16,7 +16,8 @@ const VIDEO_VARIANT_DEFAULTS = {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.',+ 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: {min: 600,@@ -150,7 +151,8 @@ export default function VideoVariantForm({return (<div className="config-variant-form"><p className="description">- <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/video">Learn more</a> about how each of these settings+ can impact the performance of your server.</p><Row gutter={16}>@@ -161,7 +163,9 @@ export default function VideoVariantForm({defaultValue={dataState.cpuUsageLevel}onChange={handleVideoCpuUsageLevelChange}/>- <p className="read-more-subtext"><a href="https://owncast.online/docs/video/#cpu-usage">Read more about CPU usage.</a></p>+ <p className="read-more-subtext">+ <a href="https://owncast.online/docs/video/#cpu-usage">Read more about CPU usage.</a>+ </p></div>{/* VIDEO PASSTHROUGH FIELD - currently disabled */}@@ -179,8 +183,9 @@ export default function VideoVariantForm({<Col sm={24} md={12}>{/* VIDEO BITRATE FIELD */}<div- className={`form-module bitrate-container ${dataState.videoPassthrough ? 'disabled' : ''- }`}+ className={`form-module bitrate-container ${+ dataState.videoPassthrough ? 'disabled' : ''+ }`}><Typography.Title level={3}>Video Bitrate</Typography.Title><p className="description">{VIDEO_VARIANT_DEFAULTS.videoBitrate.tip}</p>@@ -198,7 +203,9 @@ export default function VideoVariantForm({/><p className="selected-value-note">{selectedVideoBRnote()}</p></div>- <p className="read-more-subtext"><a href="https://owncast.online/docs/video/#bitrate">Read more about bitrates.</a></p>+ <p className="read-more-subtext">+ <a href="https://owncast.online/docs/video/#bitrate">Read more about bitrates.</a>+ </p></div></Col></Row>@@ -241,7 +248,9 @@ export default function VideoVariantForm({/><p className="selected-value-note">{selectedFramerateNote()}</p></div>- <p className="read-more-subtext"><a href="https://owncast.online/docs/video/#framerate">Read more about framerates.</a></p>+ <p className="read-more-subtext">+ <a href="https://owncast.online/docs/video/#framerate">Read more about framerates.</a>+ </p></div></Panel></Collapse>diff --git a/web/pages/config-video.tsx b/web/pages/config-video.tsxindex d6e3bf39c8..a62bfb936a 100644--- a/web/pages/config-video.tsx+++ b/web/pages/config-video.tsx@@ -12,8 +12,10 @@ export default function ConfigVideoSettings() {<Title>Video configuration</Title><p className="description">Before changing your video configuration{' '}- <a href="https://owncast.online/docs/video">visit the video documentation</a> to learn- how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.+ <a href="https://owncast.online/docs/video">visit the video documentation</a> to learn how+ it impacts your stream performance. The general rule is to start conservatively by having+ one middle quality stream output variant and experiment with adding more of varied+ qualities.</p><Row gutter={[16, 16]}>diff --git a/web/styles/config-video-variants.scss b/web/styles/config-video-variants.scssindex 32b29d67b6..a0d57711c1 100644--- a/web/styles/config-video-variants.scss+++ b/web/styles/config-video-variants.scss@@ -1,7 +1,6 @@// styles for Video variant editor (table + modal).config-video-variants {-.variants-table {margin-top: 2em;}@@ -9,7 +8,6 @@.variants-table-module {min-width: 400px;}-}// modal content@@ -28,7 +26,6 @@}}-.variants-table {.actions {display: flex;@@ -36,11 +33,11 @@justify-content: center;}.delete-button {- margin-left: .5em;- opacity: .8;+ margin-left: 0.5em;+ opacity: 0.8;}}.read-more-subtext {font-size: 0.8rem;-}\ No newline at end of file+}