Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.
Editor: queued parts keep their label after a reload; an edit opens fitted to its content
Bowen Xue67a02f1f9acb
diff --git a/web/editor.js b/web/editor.jsindex 8df633a..1030562 100644--- a/web/editor.js+++ b/web/editor.js@@ -375,7 +375,11 @@ export function openEditor({api, app, from = null, panel = {}, components: givenconst found = described.filter(clip => clip.start < start).at(-1) || described.at(-1);return found ? {text: found.text, before: false} : null;}- const markHeld = (ids, queued) => { for (const id of ids) tracks?.setProgress(id, {state: 'waiting', fraction: 0, remainingSeconds: null, ...(queued ? {queued: true} : {})}); };+ // Kept in the progress map too: the tracks may not exist yet when a reopened edit restores its queued parts.+ const markHeld = (ids, queued) => { for (const id of ids) {+ const value = {state: 'waiting', fraction: 0, remainingSeconds: null, ...(queued ? {queued: true} : {})};+ progress.set(id, value); tracks?.setProgress(id, value);+ } };const queuedReady = () => t('Queued. It starts once generation is ready.', '已排队,准备好后自动开始。');function hold(selection, text, job = null) {const range = selectionRange(selection), selectedIds = selectionClips(selection).map(clip => clip.id), shown = selection === state.selection;@@ -555,7 +559,7 @@ export function openEditor({api, app, from = null, panel = {}, components: givenplayer.pause(); for (const stop of jobWatchers.values()) stop(); jobWatchers.clear(); jobStatuses.clear(); progress.clear(); runProgress.clear(); failures.clear(); progressConnection?.reset();mostRecentJob = null; submissionFailure = null; genbar?.update(null); queue.reset(record); stopExport?.(); stopExport = null; exportStatus = exportSnapshot = null; exportButton.textContent = t('Export', '导出');suppressSave = true; try { state.replace(record); savedContent = content(record); } finally { suppressSave = false; }- const width = tracksHost.clientWidth - 148; if (width > 0) state.setZoom(width / 90);+ const width = tracksHost.clientWidth - 148; if (width > 0) state.setZoom(model.openingZoom(width, record));tracks?.setScrollLeft(0);// An empty edit opens with one part's length selected at the start, ready to generate.const selectInitial = () => { if (!store.generationAvailable) return; initialSelection = state.select({kind: 'range', start: 0,diff --git a/web/editor_model.js b/web/editor_model.jsindex d6d007f..7587ebd 100644--- a/web/editor_model.js+++ b/web/editor_model.js@@ -223,6 +223,11 @@ export function serialize(record) {return value;}export const duration = record => Math.max(0, ...all(record).map(end));+// Pixels per second when an edit opens: what is there plus ten seconds of room, between twenty and ninety seconds wide.+export const openingZoom = (width, record) => {+ const frames = duration(record), seconds = frames ? Math.min(90, Math.max(20, frames / FPS + 10)) : 90;+ return width / seconds;+};// An export runs as long as the picture and sound; text after them is not exported.export const exportFrames = record => Math.max(0, ...record.tracks.filter(track => ['video', 'audio'].includes(track.kind)).flatMap(track => track.clips).map(end));export const find = (record, id) => all(record).find(clip => clip.id === id) ?? null;diff --git a/web/editor_tracks.js b/web/editor_tracks.jsindex 4b7f08a..3b202b9 100644--- a/web/editor_tracks.js+++ b/web/editor_tracks.js@@ -392,7 +392,7 @@ export function createTracks(host, {state, sources = {}, t = en => en, actions =// Defer the initial 90-second view until a detached shell is mounted.if (!mountedStates.has(state) && scroll.clientWidth) {mountedStates.add(state);- if (state.zoom === 12) state.setZoom(scroll.clientWidth / 90);+ if (state.zoom === 12) state.setZoom(model.openingZoom(scroll.clientWidth, state.record));}const duration = Math.max(model.duration(state.record), state.selection?.kind === 'range' ? state.selection.start + state.selection.frames : 0);contentWidth = Math.max(scroll.clientWidth, pixels(duration + 30 * model.FPS));