From 02b51f996eb4f4d6395f4eaf1a50df7c1178e5ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E6=9C=94?= <565183519@qq.com> Date: Sun, 21 Jun 2026 16:19:40 +0800 Subject: [PATCH] =?UTF-8?q?D136+:=20=E4=BF=AE=E5=A4=8Dxfade=20cut=E8=BF=87?= =?UTF-8?q?=E6=B8=A1duration=3D0=E5=AF=BC=E8=87=B4=E5=8F=AA=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E7=AC=AC=E4=B8=80=E9=95=9C=20=E2=80=94=20=E6=94=B9?= =?UTF-8?q?=E4=B8=BA0.01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- video-ai-system/engines/video-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video-ai-system/engines/video-editor.js b/video-ai-system/engines/video-editor.js index 832849c..f660a1a 100644 --- a/video-ai-system/engines/video-editor.js +++ b/video-ai-system/engines/video-editor.js @@ -226,7 +226,7 @@ function composeXFadeChain(shots, output, fps) { const inputs = shots.map((s, i) => `-i "${s.file}"`).join(' '); for (let i = 1; i < shots.length; i++) { - const fadeDur = shots[i].transition === 'cut' ? 0 : 0.3; + const fadeDur = shots[i].transition === 'cut' ? 0.01 : 0.3; const offset = (accumDur - fadeDur).toFixed(2); const label = i < shots.length - 1 ? `v${i}` : 'vout'; filter += `[${prev}][${i}:v]xfade=transition=fade:duration=${fadeDur}:offset=${offset}[${label}];\n`;