D136+: 修复xfade cut最小duration从0.01→0.1 — 修复只输出第一镜的bug
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:21:34 +08:00
parent 02b51f996e
commit c60461dae0

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.01 : 0.3;
const fadeDur = shots[i].transition === 'cut' ? 0.1 : 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`;