Skip to content

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.

Studio: a video that cannot be opened greys out download, extend and share

Bowen Xue285219a91c38
diff --git a/web/result_actions.css b/web/result_actions.css
index ac5e3f0..42313b4 100644
--- a/web/result_actions.css
+++ b/web/result_actions.css
@@ -63,3 +63,4 @@
@media(prefers-reduced-motion:reduce){.fv-result-links>.fv-report-tip .fv-report-tip-mark{transition:none}}
@keyframes fv-menu-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.fv-actions *{transition:none!important;animation:none!important}}
+.fv-actions[data-unavailable=true] :is(a.fv-action[download],.fv-action-extend,.fv-share-trigger){opacity:.45;cursor:default;pointer-events:none}
diff --git a/web/result_actions.js b/web/result_actions.js
index 735d131..f5f45ee 100644
--- a/web/result_actions.js
+++ b/web/result_actions.js
@@ -107,6 +107,16 @@ function deleteAction(t, remove) {
return menu;
}
+// The video cannot be opened: what works on the file (download, extend, share) goes quiet and cannot be used.
+export function actionsUnavailable(bar) {
+ if (!bar) return;
+ bar.dataset.unavailable = 'true';
+ for (const item of bar.querySelectorAll('a.fv-action[download], .fv-action-extend, .fv-share-trigger')) {
+ item.setAttribute('aria-disabled', 'true'); item.tabIndex = -1;
+ if (item.tagName === 'A') item.removeAttribute('href'); else item.disabled = true;
+ }
+}
+
// Download the video first; share and the report follow. A first-pass preview
// leads with `secondPass` instead, and saved creations end with `remove`.
// `diagnostic` downloads the redacted report (and may offer to send it); a
diff --git a/web/studio.css b/web/studio.css
index 21d79c3..5f5b5b1 100644
--- a/web/studio.css
+++ b/web/studio.css
@@ -102,6 +102,10 @@
.fv-studio .fv-stats{animation:fv-panel-enter .35s ease;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;text-align:center;margin:0;border:1px solid var(--fv-border);border-radius:14px;background:var(--fv-border);overflow:hidden}.fv-studio .fv-stat{padding:13px 6px 12px;background:var(--fv-card)}
.fv-studio .fv-stat strong{font-size:var(--fv-strong);font-weight:var(--fv-semibold);display:block;color:var(--fv-ink);font-variant-numeric:tabular-nums;white-space:nowrap}.fv-studio .fv-stat span{display:block;margin-top:3px;font-size:var(--fv-micro);color:var(--fv-muted)}
.fv-studio .fv-stats+.fv-budget{margin-top:-9px}
+.fv-studio .fv-stat[hidden]{display:none}
+.fv-studio .fv-stats[data-count="1"]{grid-template-columns:minmax(0,1fr)}
+.fv-studio .fv-stats[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
+.fv-studio .fv-stats[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.fv-studio .fv-result-links{animation:fv-panel-enter .35s ease;display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap}
.fv-studio .fv-runbar{position:sticky;bottom:0;padding:16px 0 22px;background:linear-gradient(transparent,var(--fv-bg) 12%);z-index:2}
.fv-studio .fv-runbar .fv-primary{width:100%;min-height:var(--fv-h-lg);font-size:14px}
diff --git a/web/studio.js b/web/studio.js
index 0a021c6..8afed58 100644
--- a/web/studio.js
+++ b/web/studio.js
@@ -25,7 +25,7 @@ import { attachMentionOverlay } from './cast_overlay.js';
import { openCastLibrary } from './cast_source.js';
import { reconcileLoraTriggers } from './lora_triggers.js';
import { createSamplingEffort } from './sampling_effort.js';
-import { resultActions, previewBadge, icon } from './result_actions.js';
+import { resultActions, previewBadge, icon, actionsUnavailable } from './result_actions.js';
import { createPromptEnhancer } from './prompt_enhance.js';
import { createRequestAssets, enabledLoras, referenceFiles } from './request_assets.js';
import { rememberPromptDraft, trackPromptDraft } from './prompt_draft.js';
@@ -1047,6 +1047,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
video.addEventListener('error', () => {
if (!disposed && result === r && video.isConnected) {
stageMedia.replaceChildren(el('p', videoUnavailableText(t), 'fv-note fv-video-problem'));
+ actionsUnavailable(links.querySelector('.fv-actions'));
if (r.preview) stageMedia.append(previewBadge(r, t));
}
}, {once: true});
@@ -1067,7 +1068,11 @@ export function openStudio(node, {extendFrom = null} = {}) {
const unified = r.memory_model === 'unified';
metricLabels[2].textContent = unified ? t('Unified memory', '统一内存总量') : t('Peak VRAM', '最高显存');
metricLabels[3].textContent = unified ? t('Process peak RAM', '进程最高内存') : t('Peak RAM', '最高内存');
- const shown = [number(r.sample_seconds), number(r.request_seconds), number(unified ? r.unified_total_bytes : r.vram_peak_bytes, 2 ** 30, 'GiB'), number(r.ram_peak_bytes, 2 ** 30, 'GiB')]; metrics.forEach((e, i) => e.textContent = shown[i]);
+ const shown = [number(r.sample_seconds), number(r.request_seconds), number(unified ? r.unified_total_bytes : r.vram_peak_bytes, 2 ** 30, 'GiB'), number(r.ram_peak_bytes, 2 ** 30, 'GiB')]; metrics.forEach((e, i) => { e.textContent = shown[i]; e.parentElement.hidden = shown[i] === '—'; });
+ // Cells without a number are left out, and the rest share the width; none at all hides the strip.
+ const present = shown.filter(value => value !== '—').length;
+ stats.dataset.count = String(present);
+ if (!present) stats.hidden = true;
budget.textContent = r.result_cache_hit || r.preview ? '' : unified
? (Number.isFinite(r.unified_reserve_bytes) ? `${t('Reserved unified memory', '预留统一内存')} ${number(r.unified_reserve_bytes, 2 ** 30, 'GiB')}` : '')
: (Number.isFinite(r.gpu_budget_bytes) ? `${t('VRAM budget', '可用显存预算')} ${number(r.gpu_budget_bytes, 2 ** 30, 'GiB')} · ${t('Device', '显卡总量')} ${number(r.gpu_total_bytes, 2 ** 30, 'GiB')}` : '');