Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Prettified Code!
gabek7da9a4dd0841
diff --git a/web/components/config/cpu-usage.tsx b/web/components/config/cpu-usage.tsxindex 9d46c8b281..b75aa8bc45 100644--- a/web/components/config/cpu-usage.tsx+++ b/web/components/config/cpu-usage.tsx@@ -49,8 +49,8 @@ export default function CPUUsageSelector({ defaultValue, disabled, onChange }: Preturn 'CPU usage selection is disabled when Video Passthrough is enabled.';}- return TOOLTIPS[selectedOption]- }+ return TOOLTIPS[selectedOption];+ };return (<div className="config-video-cpu-container">diff --git a/web/components/config/video-variant-form.tsx b/web/components/config/video-variant-form.tsxindex d5cf900938..2ac63ebd03 100644--- a/web/components/config/video-variant-form.tsx+++ b/web/components/config/video-variant-form.tsx@@ -228,10 +228,12 @@ export default function VideoVariantForm({<div className="form-module resolution-module"><Typography.Title level={3}>Resolution</Typography.Title><p className="description">- Resizing your content will take additional resources on your server. If you wish to- 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.{' '}- <a href="https://owncast.online/docs/video/#resolution">Read more about resolutions.</a>+ Resizing your content will take additional resources on your server. If you wish+ to 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.{' '}+ <a href="https://owncast.online/docs/video/#resolution">+ Read more about resolutions.+ </a></p><br /><TextField@@ -255,9 +257,19 @@ export default function VideoVariantForm({<div className="form-module video-passthroug-module"><Typography.Title level={3}>Video Passthrough</Typography.Title><p className="description">- <p>Enabling video passthrough may allow for less hardware utilization, but may also make your stream <strong>unplayable</strong>.</p>- <p>All other settings for this stream output will be disabled if passthrough is used.</p>- <p><a href="https://owncast.online/docs/video/#video-passthrough">Read the documentation before enabling, as it impacts your stream.</a></p>+ <p>+ Enabling video passthrough may allow for less hardware utilization, but may also+ make your stream <strong>unplayable</strong>.+ </p>+ <p>+ All other settings for this stream output will be disabled if passthrough is+ used.+ </p>+ <p>+ <a href="https://owncast.online/docs/video/#video-passthrough">+ Read the documentation before enabling, as it impacts your stream.+ </a>+ </p></p><Popconfirmdisabled={dataState.videoPassthrough === true}diff --git a/web/components/config/video-variants-table.tsx b/web/components/config/video-variants-table.tsxindex 38ab332151..48032fb2e1 100644--- a/web/components/config/video-variants-table.tsx+++ b/web/components/config/video-variants-table.tsx@@ -135,14 +135,16 @@ export default function CurrentVariantsTable() {title: 'Video bitrate',dataIndex: 'videoBitrate',key: 'videoBitrate',- render: (bitrate: number, variant: VideoVariant) => (!bitrate || variant.videoPassthrough ? 'Same as source' : `${bitrate} kbps`),+ render: (bitrate: number, variant: VideoVariant) =>+ !bitrate || variant.videoPassthrough ? 'Same as source' : `${bitrate} kbps`,},{title: 'CPU Usage',dataIndex: 'cpuUsageLevel',key: 'cpuUsageLevel',- render: (level: string, variant: VideoVariant) => (!level || variant.videoPassthrough ? 'n/a' : CPU_USAGE_LEVEL_MAP[level]),+ render: (level: string, variant: VideoVariant) =>+ !level || variant.videoPassthrough ? 'n/a' : CPU_USAGE_LEVEL_MAP[level],},{title: '',