From 4aa7f0cee17e46159227b553fd577dbe657dbef1 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Mon, 2 Oct 2023 06:56:06 +0100 Subject: [PATCH] Prioritise qsv --- .../FlowHelpers/1.0.0/hardwareUtils.js | 24 +++++++++---------- .../FlowHelpers/1.0.0/hardwareUtils.ts | 24 +++++++++---------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/FlowPlugins/FlowHelpers/1.0.0/hardwareUtils.js b/FlowPlugins/FlowHelpers/1.0.0/hardwareUtils.js index 7e903c84b..6b0efdd6c 100644 --- a/FlowPlugins/FlowHelpers/1.0.0/hardwareUtils.js +++ b/FlowPlugins/FlowHelpers/1.0.0/hardwareUtils.js @@ -187,6 +187,16 @@ var getEncoder = function (_a) { outputArgs: [], filter: '', }, + { + encoder: 'hevc_qsv', + enabled: false, + inputArgs: [ + '-hwaccel', + 'qsv', + ], + outputArgs: [], + filter: '', + }, { encoder: 'hevc_vaapi', inputArgs: [ @@ -201,16 +211,6 @@ var getEncoder = function (_a) { enabled: false, filter: '-vf format=nv12,hwupload', }, - { - encoder: 'hevc_qsv', - enabled: false, - inputArgs: [ - '-hwaccel', - 'qsv', - ], - outputArgs: [], - filter: '', - }, { encoder: 'hevc_videotoolbox', enabled: false, @@ -275,14 +275,14 @@ var getEncoder = function (_a) { filter: '', }, { - encoder: 'av1_vaapi', + encoder: 'av1_qsv', enabled: false, inputArgs: [], outputArgs: [], filter: '', }, { - encoder: 'av1_qsv', + encoder: 'av1_vaapi', enabled: false, inputArgs: [], outputArgs: [], diff --git a/FlowPluginsTs/FlowHelpers/1.0.0/hardwareUtils.ts b/FlowPluginsTs/FlowHelpers/1.0.0/hardwareUtils.ts index 39adb8ce5..c81ad5559 100644 --- a/FlowPluginsTs/FlowHelpers/1.0.0/hardwareUtils.ts +++ b/FlowPluginsTs/FlowHelpers/1.0.0/hardwareUtils.ts @@ -161,6 +161,16 @@ export const getEncoder = async ({ outputArgs: [], filter: '', }, + { + encoder: 'hevc_qsv', + enabled: false, + inputArgs: [ + '-hwaccel', + 'qsv', + ], + outputArgs: [], + filter: '', + }, { encoder: 'hevc_vaapi', inputArgs: [ @@ -175,16 +185,6 @@ export const getEncoder = async ({ enabled: false, filter: '-vf format=nv12,hwupload', }, - { - encoder: 'hevc_qsv', - enabled: false, - inputArgs: [ - '-hwaccel', - 'qsv', - ], - outputArgs: [], - filter: '', - }, { encoder: 'hevc_videotoolbox', enabled: false, @@ -251,14 +251,14 @@ export const getEncoder = async ({ filter: '', }, { - encoder: 'av1_vaapi', + encoder: 'av1_qsv', enabled: false, inputArgs: [], outputArgs: [], filter: '', }, { - encoder: 'av1_qsv', + encoder: 'av1_vaapi', enabled: false, inputArgs: [], outputArgs: [],