D136+: 修复xfade cut过渡duration=0导致只输出第一镜 — 改为0.01
Some checks failed
自动更新代码和重启 / update-and-restart (push) Has been cancelled
CI检查 + 自动部署 / check (push) Has been cancelled
CI检查 + 自动部署 / deploy (push) Has been cancelled

This commit is contained in:
冰朔 2026-06-21 16:19:40 +08:00
parent da2f182574
commit 02b51f996e

View File

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