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.
The panel and the bottom bar show the same one estimate
Bowen Xuea7cc038e563d
diff --git a/scripts/test_freevideo_entry.mjs b/scripts/test_freevideo_entry.mjsindex 3c170a7..3e49e73 100644--- a/scripts/test_freevideo_entry.mjs+++ b/scripts/test_freevideo_entry.mjs@@ -361,9 +361,9 @@ test('main browser entry registers both views and preserves node hooks', async tremovalNode = new GenerateNode(); removalNode.id = 10; removalNode.onNodeCreated();removalNode.freevideoShowProgress({phase: 'load', received_at: 0});const progress = progressView;- assert.deepEqual(progress.element.children.slice(0, 9).map(child => child.className), [+ assert.deepEqual(progress.element.children.slice(0, 10).map(child => child.className), ['fv-generation-heading', 'fv-generation-track', 'fv-generation-label',- 'fv-generation-mini', 'fv-generation-frames', 'fv-generation-times', 'fv-generation-compatibility', 'fv-generation-status', 'fv-generation-live']);+ 'fv-generation-mini', 'fv-generation-frames', 'fv-generation-times', 'fv-generation-late', 'fv-generation-compatibility', 'fv-generation-status', 'fv-generation-live']);const activity = progress.snapshot().label;removalNode.freevideoShowProgress({compatibility: {level: 2, name_en: 'Compatible', name_zh: '兼容'}});assert.equal(progress.snapshot().label, activity, 'The node must not replace the activity for settings-only events');diff --git a/web/editor_entry.js b/web/editor_entry.jsindex 2420faa..d01abfe 100644--- a/web/editor_entry.js+++ b/web/editor_entry.js@@ -38,7 +38,10 @@ export function openEditorView(node, {studio, work = null, extend = false} = {})};// The block already shows the overall percentage; the bar keeps only the stage sentence.const stage = words('.fv-generation-label').replace(/(本步 \d+%)$| \(\d+% of this step\)$/, '');- return {stage, time: words('.fv-generation-status'), stall: words('.fv-generation-stall')};+ const eta = progressElement.querySelector('.fv-generation-eta');+ const shown = eta && !eta.hidden ? eta.dataset : null, left = shown?.seconds != null ? Number(shown.seconds) : null;+ return {stage, time: words('.fv-generation-status'), stall: words('.fv-generation-stall'),+ left: Number.isFinite(left) ? left : null, over: words('.fv-generation-late') !== ''};};}const handle = openEditor({api, app, panel, from: work ? {work, ...(extend ? {extend: true} : {})} : null, onView(view) {diff --git a/web/editor_genbar.js b/web/editor_genbar.jsindex d9aeb56..5a5692b 100644--- a/web/editor_genbar.js+++ b/web/editor_genbar.js@@ -99,7 +99,9 @@ export function createEditorGenbar(host, {state, t, actions, text = ''}) {// The creation panel's own sentences, so a long step says what it is and how long it has taken.// At a narrow width only the stage sentence is cut; the part number and the time stay.// A single part needs no number; with nothing else to say it reads "Preparing".- const time = words?.stall || words?.time || (remaining != null ? timeEstimate(remaining, t) : '');+ // The creation panel's own time when it has one, so the bar and the panel never differ; the job's sum until the panel has one.+ const left = words?.over ? null : words?.left ?? remaining;+ const time = words?.stall || (words?.over ? t('Taking longer than expected', '比预计久,仍在生成') : words?.time || (left != null ? timeEstimate(left, t) : ''));const stage = words?.stage || (count === 1 && !time ? t('Preparing', '正在准备') : '');const spans = [['fv-ed-gen-part', count > 1 ? t(`Part ${number}/${count}`, `第 ${number}/${count} 段`) : ''],['fv-ed-gen-stage', stage], ['fv-ed-gen-time', time]];diff --git a/web/generation_progress.css b/web/generation_progress.cssindex 8d2de7d..bd3c974 100644--- a/web/generation_progress.css+++ b/web/generation_progress.css@@ -19,7 +19,8 @@.fv-generation-note{font-size:var(--fv-micro);color:var(--fv-muted,#a2abba);margin:10px auto 0;max-width:400px;line-height:1.5}.fv-panel .fv-generation-progress{padding:12px 14px;margin-bottom:12px;border-radius:var(--fv-r-md)}.fv-generation-compact{max-width:820px}-.fv-generation-times>span[hidden],.fv-generation-status[hidden],.fv-generation-times[hidden]{display:none!important}+.fv-generation-late{margin-top:5px;text-align:center;font-size:12px;color:var(--fv-muted,#a2abba)}+.fv-generation-late[hidden],.fv-generation-times>span[hidden],.fv-generation-status[hidden],.fv-generation-times[hidden]{display:none!important}/* No reserved blank rows or clipped copy. Browser checks measure actual lines. */.fv-generation-status{box-sizing:border-box;width:100%;flex:none;margin-top:10px;font-size:12px;line-height:18px;color:var(--fv-muted,#a2abba);text-align:center;text-wrap:balance}.fv-generation-compatibility{box-sizing:border-box;width:100%;flex:none;margin-top:10px;font-size:12px;line-height:18px;color:var(--fv-ink,#e8edf5);text-align:center;text-wrap:balance}diff --git a/web/generation_progress.js b/web/generation_progress.jsindex 5d2b23f..1a4ddfe 100644--- a/web/generation_progress.js+++ b/web/generation_progress.js@@ -422,7 +422,8 @@ export function createGenerationProgress(t, now = () => Date.now(), {compact = fconst frames = el('img', 'fv-generation-frames'); frames.alt = ''; frames.hidden = true;frames.decoding = 'async'; frames.setAttribute('aria-hidden', 'true'); frames.draggable = false;const times = el('div', 'fv-generation-times');- const elapsed = el('span', ''), eta = el('span', ''); times.append(elapsed, eta);+ const elapsed = el('span', ''), eta = el('span', 'fv-generation-eta'); times.append(elapsed, eta);+ const late = el('div', 'fv-generation-late'); late.hidden = true;const status = el('div', 'fv-generation-status'); status.hidden = true;const compatibilityNote = el('div', 'fv-generation-compatibility'); compatibilityNote.hidden = true;const live = el('div', 'fv-generation-live');@@ -431,7 +432,7 @@ export function createGenerationProgress(t, now = () => Date.now(), {compact = fstall.setAttribute('role', 'status');const stallText = el('span', ''); stall.append(stallText);const trims = new Map();- element.append(heading, track, label, mini, frames, times, compatibilityNote, status, live);+ element.append(heading, track, label, mini, frames, times, late, compatibilityNote, status, live);let recovery = '', lowMemory = false, compatibility = null, samplingPlan = {}, secondPass = false, references = false, splitFailed = null;let hasHeartbeat = false;// Mac: the unified-memory notice of this request, and whether its first pass has ended.@@ -857,7 +858,11 @@ export function createGenerationProgress(t, now = () => Date.now(), {compact = f}}remainingAt = now();+ // The editor's bar reads this number, so both places always show the same time.eta.hidden = remainingSeconds === null;+ // Past the shown time the line says so once, instead of a number that only shrinks.+ late.hidden = !(remainingSeconds === null && remainingRetired && !ended);+ late.textContent = late.hidden ? '' : t('Taking longer than expected', '比预计久,仍在生成');const etaText = remainingSeconds === null ? '' : remainingSeconds >= 60? t(`About ${Math.ceil(remainingSeconds / 60)}\u00a0min left`, `预计还需约 ${Math.ceil(remainingSeconds / 60)}\u00a0分钟`): t('Less than a minute left', '预计还需不到 1\u00a0分钟');@@ -866,6 +871,10 @@ export function createGenerationProgress(t, now = () => Date.now(), {compact = fif (eta.textContent !== etaText && (!initial || !eta.textContent || now() - etaChangedAt >= 5000)) {eta.textContent = etaText; etaChangedAt = now();}+ // The bar takes the number behind the words on screen: while the shown minutes wait out their+ // spacing, the seconds wait with them.+ if (remainingSeconds === null) delete eta.dataset.seconds;+ else if (eta.textContent === etaText) eta.dataset.seconds = String(Math.ceil(remainingSeconds));elapsed.hidden = false; times.hidden = elapsed.hidden && eta.hidden;drawStall(age, ended);drawActivity(age, ended);