From ae88a38acc488c1fe0725b40ab4a4f3ddf8c3a91 Mon Sep 17 00:00:00 2001 From: Lerk Date: Tue, 15 Mar 2022 08:05:46 +0100 Subject: [PATCH] Add description and name for VideoToolbox codec (#460) * add description and name for VideoToolbox codec * fix typo --- web/components/config/video-codec-selector.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/components/config/video-codec-selector.tsx b/web/components/config/video-codec-selector.tsx index 0cfd90752..09f40735f 100644 --- a/web/components/config/video-codec-selector.tsx +++ b/web/components/config/video-codec-selector.tsx @@ -90,6 +90,8 @@ export default function CodecSelector() { title = 'Video4Linux hardware encoding'; } else if (title === 'h264_omx') { title = 'OpenMax (omx) for Raspberry Pi'; + } else if (title === 'h264_videotoolbox') { + title = 'Apple VideoToolbox (hardware)'; } return ( @@ -102,7 +104,7 @@ export default function CodecSelector() { let description = ''; if (selectedCodec === 'libx264') { description = - 'libx264 is the default codec and generally the only working choice for shared VPS enviornments. This is likely what you should be using unless you know you have set up other options.'; + 'libx264 is the default codec and generally the only working choice for shared VPS environments. This is likely what you should be using unless you know you have set up other options.'; } else if (selectedCodec === 'h264_nvenc') { description = 'You can use your NVIDIA GPU for encoding if you have a modern NVIDIA card with encoding cores.'; @@ -117,6 +119,9 @@ export default function CodecSelector() { '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.'; + } else if (selectedCodec === 'h264_videotoolbox') { + description = + 'Apple VideoToolbox is a low-level framework that provides direct access to hardware encoders and decoders.'; } return (