From 97f6a95a5035d1ccb1c14a56fc60be0018e022f9 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Fri, 21 Jun 2024 11:02:14 +0300 Subject: [PATCH 1/2] Use yuv420p10le for libsvtav1 --- .../ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.ts index a72bd7fad..35ccf7218 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.ts @@ -40,6 +40,8 @@ const plugin = (args:IpluginInputArgs):IpluginOutputArgs => { if (stream.outputArgs.some((row) => row.includes('qsv')) && os.platform() !== 'win32') { stream.outputArgs.push('-vf', 'scale_qsv=format=p010le'); + } else if (stream.outputArgs.some((row) => row.includes('libsvtav1'))) { + stream.outputArgs.push('-pix_fmt:v:{outputTypeIndex}', 'yuv420p10le'); } else { stream.outputArgs.push('-pix_fmt:v:{outputTypeIndex}', 'p010le'); } From 4214854c5446777d3de6379a6ec79cb75ef3b63e Mon Sep 17 00:00:00 2001 From: HaveAGitGat Date: Fri, 21 Jun 2024 08:04:12 +0000 Subject: [PATCH 2/2] Apply auto-build changes --- .../ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.js index 90f7d2bbc..7bdfa6da9 100644 --- a/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommand10BitVideo/1.0.0/index.js @@ -39,6 +39,9 @@ var plugin = function (args) { if (stream.outputArgs.some(function (row) { return row.includes('qsv'); }) && os_1.default.platform() !== 'win32') { stream.outputArgs.push('-vf', 'scale_qsv=format=p010le'); } + else if (stream.outputArgs.some(function (row) { return row.includes('libsvtav1'); })) { + stream.outputArgs.push('-pix_fmt:v:{outputTypeIndex}', 'yuv420p10le'); + } else { stream.outputArgs.push('-pix_fmt:v:{outputTypeIndex}', 'p010le'); }