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`;