D136+: 修复xfade cut过渡duration=0导致只输出第一镜 — 改为0.01
This commit is contained in:
parent
da2f182574
commit
02b51f996e
@ -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`;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user