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.
Restore the starter prompt shown as the original integrated_multimodal_description text in the box
Bowen Xue48b0f29b58f9
diff --git a/freevideo_engine/comfy_nodes.py b/freevideo_engine/comfy_nodes.pyindex cf1aa7f..f6143f7 100644--- a/freevideo_engine/comfy_nodes.py+++ b/freevideo_engine/comfy_nodes.py@@ -6,7 +6,7 @@ from comfy_api.latest import ComfyExtension, InputImpl, io, uifrom . import comfy_bridgefrom .comfy_continuation import optional_text, request_options-from .default_prompt import DEFAULT_PROMPT, DEFAULT_PROMPT_DISPLAY+from .default_prompt import DEFAULT_PROMPTReferences = io.Custom('FREEVIDEO_REFERENCES')LoRAs = io.Custom('FREEVIDEO_LORAS')@@ -22,7 +22,7 @@ class FreeVideoGenerate(io.ComfyNode):description='Generate a video with audio using your FreeVideo installation. Memory placement, ''caches and validated optimizations are automatic. Outputs and diagnostics are retained.',inputs=[- io.String.Input('text', display_name='Prompt', multiline=True, default=DEFAULT_PROMPT, placeholder=DEFAULT_PROMPT_DISPLAY,+ io.String.Input('text', display_name='Prompt', multiline=True, default=DEFAULT_PROMPT,tooltip='Describe the scene, motion, dialogue, sound and music.'),io.Int.Input('width', default=1344, min=256, max=4096, step=32),io.Int.Input('height', default=768, min=256, max=4096, step=32),diff --git a/freevideo_engine/default_prompt.py b/freevideo_engine/default_prompt.pyindex 8125c22..66997b0 100644--- a/freevideo_engine/default_prompt.py+++ b/freevideo_engine/default_prompt.py@@ -4,8 +4,6 @@ Written against MiniMax H3's official h3-prompt-writing/SKILL.md andreferences/base-en.txt. This is creative copy, not a benchmark input."""-import re-# Used only as a new-node default; saved and connected prompts stay authoritative.DEFAULT_PROMPT = ('integrated_multimodal_description: [Shot 1] A premium cinematic, photorealistic '@@ -37,15 +35,3 @@ DEFAULT_PROMPT = ('harmonics, expands into full strings and deep brass as the observatory opens, then ''resolves into one bright, confident chord under the final title.')---def display_prompt(prompt=DEFAULT_PROMPT):- """The same text as plain prose for the studio box; the structured labels stay in the prompt sent to the model."""- text = re.sub(r'^integrated_multimodal_description:\s*', '', prompt)- text = re.sub(r'\[Shot \d+\]\s*', '', text)- text = re.sub(r'At 00:0?(\d+)\.000,', lambda m: f'At {int(m.group(1))} seconds,', text)- text = re.sub(r'\n\noverall_soundscape:\s*', '\n\nSound: ', text)- return re.sub(r'\n\nnon_diegetic_music:\s*', '\n\nMusic: ', text)---DEFAULT_PROMPT_DISPLAY = display_prompt()diff --git a/web/freevideo.js b/web/freevideo.jsindex 01ddec7..cfc33d1 100644--- a/web/freevideo.js+++ b/web/freevideo.js@@ -659,7 +659,7 @@ app.registerExtension({return;}if (!["FreeVideoMedia", "FreeVideoGenerate", "FreeVideoLoRAStack"].includes(nodeData.name)) return;- if (nodeData.name === "FreeVideoGenerate") { const spec = nodeData.input?.required?.text?.[1] || {}; nodeType.prototype.freevideoStarterPrompt = spec.default || ''; nodeType.prototype.freevideoStarterShown = spec.placeholder || spec.default || ''; }+ if (nodeData.name === "FreeVideoGenerate") nodeType.prototype.freevideoStarterPrompt = nodeData.input?.required?.text?.[1]?.default || '';const created = nodeType.prototype.onNodeCreated;nodeType.prototype.onNodeCreated = function () {const result = created?.apply(this, arguments);diff --git a/web/studio.js b/web/studio.jsindex b33de3f..76cdd1b 100644--- a/web/studio.js+++ b/web/studio.js@@ -493,12 +493,12 @@ export function openStudio(node, {extendFrom = null} = {}) {syncReferencePrompt(node, t);// An untouched node shows its starter prompt as a placeholder and generates it.// Once something was typed, an emptied box stays empty and asks for a scene.- const starter = node.freevideoStarterPrompt || '', starterShown = node.freevideoStarterShown || starter;+ const starter = node.freevideoStarterPrompt || '';const untouched = () => Boolean(starter) && value(node, 'text') === starter;const shown = text => starter && text === starter ? '' : String(text || '');const prompt = el('textarea'); prompt.value = shown(value(node, 'text')); prompt.setAttribute('aria-label', t('Prompt', '提示词'));prompt.dataset.fvGuide = 'describe';- const placeholder = () => { prompt.placeholder = extension.source ? extendText(t, 'prompt') : untouched() ? starterShown : t('Describe the scene… Type @ to reference media', '描述画面… 输入 @ 引用素材'); };+ const placeholder = () => { prompt.placeholder = extension.source ? extendText(t, 'prompt') : untouched() ? starter : t('Describe the scene… Type @ to reference media', '描述画面… 输入 @ 引用素材'); };placeholder();prompt.disabled = linked(node, 'text'); prompt.oninput = () => { set(node, 'text', prompt.value); placeholder(); };const promptEditor = el('div', null, 'fv-prompt-editor'); promptEditor.append(prompt);