From ee109cacfb2f2800842764d7faa2b09ef1e887a0 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Tue, 19 Dec 2023 19:52:11 +0000 Subject: [PATCH] Update qsv check --- .../ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.js | 2 +- .../ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.js index e38eaa7..e04d4bc 100644 --- a/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.js @@ -32,7 +32,7 @@ var plugin = function (args) { var stream = args.variables.ffmpegCommand.streams[i]; if (stream.codec_type === 'video') { stream.outputArgs.push('-profile:v:{outputTypeIndex}', 'main10'); - if (stream.outputArgs.includes('qsv')) { + if (stream.outputArgs.some(function (row) { return row.includes('qsv'); })) { stream.outputArgs.push('-vf', 'scale_qsv=format=p010le'); } else { diff --git a/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.ts index b5da85c..ee44e30 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.ts @@ -37,7 +37,7 @@ const plugin = (args:IpluginInputArgs):IpluginOutputArgs => { if (stream.codec_type === 'video') { stream.outputArgs.push('-profile:v:{outputTypeIndex}', 'main10'); - if (stream.outputArgs.includes('qsv')) { + if (stream.outputArgs.some((row) => row.includes('qsv'))) { stream.outputArgs.push('-vf', 'scale_qsv=format=p010le'); } else { stream.outputArgs.push('-pix_fmt:v:{outputTypeIndex}', 'p010le');