From 44657181a08ed81d7aaefe3ea711c75bd70cc73f Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Wed, 27 Mar 2024 21:00:52 +0100 Subject: [PATCH] Rename AV1NVDEC to AV1CUVID --- src/misc/coders/Decoders/index.js | 4 ++-- src/misc/coders/Decoders/video/{AV1NVDEC.js => AV1CUVID.js} | 5 ++--- src/misc/coders/Decoders/video/VideoToolbox.js | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) rename src/misc/coders/Decoders/video/{AV1NVDEC.js => AV1CUVID.js} (90%) diff --git a/src/misc/coders/Decoders/index.js b/src/misc/coders/Decoders/index.js index 0ea51bf..d8b1d26 100644 --- a/src/misc/coders/Decoders/index.js +++ b/src/misc/coders/Decoders/index.js @@ -16,7 +16,7 @@ import * as VideoDefault from './video/Default'; import * as VideoToolbox from './video/VideoToolbox'; import * as VP8CUVID from './video/VP8CUVID'; import * as VP9CUVID from './video/VP9CUVID'; -import * as AV1NVDEC from './video/AV1NVDEC'; +import * as AV1CUVID from './video/AV1CUVID'; class Registry { constructor(type) { @@ -113,7 +113,7 @@ const videoRegistry = new Registry('video'); videoRegistry.Register(VideoDefault); videoRegistry.Register(VideoToolbox); -videoRegistry.Register(AV1NVDEC); +videoRegistry.Register(AV1CUVID); videoRegistry.Register(NVDEC); videoRegistry.Register(H264MMAL); videoRegistry.Register(H264CUVID); diff --git a/src/misc/coders/Decoders/video/AV1NVDEC.js b/src/misc/coders/Decoders/video/AV1CUVID.js similarity index 90% rename from src/misc/coders/Decoders/video/AV1NVDEC.js rename to src/misc/coders/Decoders/video/AV1CUVID.js index 02823ad..d068401 100644 --- a/src/misc/coders/Decoders/video/AV1NVDEC.js +++ b/src/misc/coders/Decoders/video/AV1CUVID.js @@ -17,7 +17,6 @@ function createMapping(settings, stream, skills) { const mapping = { global: [], local: ['-hwaccel', 'cuda', '-c:v', 'av1_cuvid'], - // local: ['-hwaccel', 'cuda', '-hwaccel_output_format', 'cuda', '-c:v', 'av1_cuvid'], }; return mapping; @@ -55,8 +54,8 @@ Coder.defaultProps = { // -hwaccel nvdec -const coder = 'av1'; -const name = 'AV1 NVDEC (CUDA)'; +const coder = 'av1_cuvid'; +const name = 'AV1 (CUVID)'; const codecs = ['av1']; const type = 'video'; const hwaccel = true; diff --git a/src/misc/coders/Decoders/video/VideoToolbox.js b/src/misc/coders/Decoders/video/VideoToolbox.js index f8a793a..b38a962 100644 --- a/src/misc/coders/Decoders/video/VideoToolbox.js +++ b/src/misc/coders/Decoders/video/VideoToolbox.js @@ -53,7 +53,7 @@ Coder.defaultProps = { }; const coder = 'videotoolbox'; -const name = 'H264 (VideoToolbox)'; +const name = 'H.264 (VideoToolbox)'; const codecs = ['h264']; const type = 'video'; const hwaccel = true;