The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(video): settle only the newest seam of a long clip (B18)
purple33ef302a65f5
diff --git a/src/lib/__tests__/long-video.test.ts b/src/lib/__tests__/long-video.test.tsindex e9151cbd..9dc4c364 100644--- a/src/lib/__tests__/long-video.test.ts+++ b/src/lib/__tests__/long-video.test.ts@@ -174,8 +174,9 @@ describe('runLongVideo: section after section, one clip in the gallery', () => {...f.deps,settle: async (item, seams) => { seen.push([...seams]); return item },})+ // One seam per step, at the frame the new section starts.expect(seen[0]).toEqual([81])- expect(seen[1]).toEqual([81, 157])+ expect(seen[1]).toEqual([157])})})diff --git a/src/lib/long-video-run.ts b/src/lib/long-video-run.tsindex 60aa1be6..ca1b5647 100644--- a/src/lib/long-video-run.ts+++ b/src/lib/long-video-run.ts@@ -154,8 +154,11 @@ export async function runLongVideo(plan: LongVideoPlan, start: LongRunStart, depseams.push(frames)frames += sectionFrames - plan.overlap}+ // Only the newest seam: everything before it was settled in the step+ // before, and this section was made from those settled frames. Passing+ // every seam would only re-encode the old ones again.if (deps.settle && seams.length > 0) {- const settled = await deps.settle(current, seams).catch(() => null)+ const settled = await deps.settle(current, seams.slice(-1)).catch(() => null)if (settled) current = settled}}