From 33da091ba77e956838a44028f85fd8aca96e9937 Mon Sep 17 00:00:00 2001 From: matty Date: Thu, 7 Mar 2024 20:08:06 -0500 Subject: [PATCH] maybe fix a thing --- package.json | 2 +- src/main.ts | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index b4af14e..d1fcb2f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "peertube-plugin-nctv-nvenc-transcode", - "version": "1.0.0", + "version": "1.0.1", "license": "MIT", "description": "Plugin that adds transcode profiles which use NVIDIA NVENC for hardware acceleration", "engine": { diff --git a/src/main.ts b/src/main.ts index 643994b..b946aef 100644 --- a/src/main.ts +++ b/src/main.ts @@ -175,12 +175,14 @@ function printResolution(resolution : VideoResolution) : string { function buildInitOptions() { if (pluginSettings.hardwareDecode) { return [ - '-vcodec h264_nvenc' - ] - } else { + '-hwaccel cuda', + '-hwaccel_output_format cuda' + ]; + } + else { return [ - '-vcodec h264_nvenc' - ] + '-hwaccel cuda' + ]; } }