Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Add friendly name and description for h264_omx. Fixes https://github.com/owncast/owncast/issues/1521

Gabe Kangas7a712a7ae3b5
diff --git a/web/components/config/video-codec-selector.tsx b/web/components/config/video-codec-selector.tsx
index bbd9bef8f2..0cfd907529 100644
--- a/web/components/config/video-codec-selector.tsx
+++ b/web/components/config/video-codec-selector.tsx
@@ -15,6 +15,7 @@ import {
import { ServerStatusContext } from '../../utils/server-status-context';
import FormStatusIndicator from './form-status-indicator';
+// eslint-disable-next-line react/function-component-definition
export default function CodecSelector() {
const serverStatusData = useContext(ServerStatusContext);
const { serverConfig, setFieldInConfigState } = serverStatusData || {};
@@ -87,6 +88,8 @@ export default function CodecSelector() {
title = 'Intel QuickSync';
} else if (title === 'h264_v4l2m2m') {
title = 'Video4Linux hardware encoding';
+ } else if (title === 'h264_omx') {
+ title = 'OpenMax (omx) for Raspberry Pi';
}
return (
@@ -112,6 +115,8 @@ export default function CodecSelector() {
} else if (selectedCodec === 'h264_v4l2m2m') {
description =
'Video4Linux is an interface to multiple different hardware encoding platforms such as Intel and AMD.';
+ } else if (selectedCodec === 'h264_omx') {
+ description = 'OpenMax is a codec most often used with a Raspberry Pi.';
}
return (