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.
Agent: say plainly when editing is not available here; state how lengths are cut into parts
Bowen Xue9ceaa879c3e1
diff --git a/freevideo_engine/agent/editor_runtime.py b/freevideo_engine/agent/editor_runtime.pyindex 23515e9..db97afa 100644--- a/freevideo_engine/agent/editor_runtime.py+++ b/freevideo_engine/agent/editor_runtime.py@@ -267,6 +267,24 @@ def bundle(web=WEB, modules=MODULES, start='editor_actions', entry=None, preludereturn ''.join(parts)+def _editing_unavailable():+ """The answer when the rules engine is missing. Adding it is not always ours to do (the user's own+ ComfyUI), so this says what does not work here instead of sending the user to repair."""+ from . import errors+ from .jobs import JobError++ class EditingUnavailable(JobError):+ def view(self):+ answer = errors.build(self.code, validation=True, details=[], message=self.message, next_action=(+ 'Tell the user that editing videos and images is not available here for now, and go on with what '+ 'does not need it. features in the status reply shows these as false.'))+ answer['retryable'] = False+ return answer++ return EditingUnavailable('not_ready', 'Editing videos and images is not available in this installation for now. '+ 'Generation and everything else work.')++class ScriptRuntime:"""A QuickJS context with linked page modules. Calls are serialized by alock; a failed or interrupted call discards the context."""@@ -280,8 +298,7 @@ class ScriptRuntime:try:import quickjsexcept ImportError:- from .jobs import JobError- raise JobError('not_ready', 'The editor rules engine is not installed; repair FreeVideo.') from None+ raise _editing_unavailable() from Nonecontext = quickjs.Context()context.set_memory_limit(MEMORY_LIMIT)context.set_max_stack_size(STACK_LIMIT)diff --git a/freevideo_engine/agent/guide.py b/freevideo_engine/agent/guide.pyindex ce01af2..9a9a813 100644--- a/freevideo_engine/agent/guide.py+++ b/freevideo_engine/agent/guide.py@@ -60,7 +60,8 @@ GUIDE = {],'timing': ['Single-block frames are 24 fps on a 17n+5 grid (6 s -> 6.583 s, 10 s -> 10.125 s). '- 'Generation uses the continuous backend; longer requests split, continue and join automatically. '+ 'Generation uses the continuous backend. A request of up to 15 s is one generation; a longer one is made '+ 'in parts of up to 15 s (30 s is 15 + 15) that continue one another and join automatically. ''Continuing (longer than 15 s, or continue_from) needs two-pass text generation: quality "light" ''or sampling.two_pass=true, no preview and no media. ''Multi-block output is cut to the planned duration. POST /plan shows the chain plan.',@@ -162,7 +163,8 @@ RULES = ['Cut by default. Wherever the film can change shot, make the new shot from the reference pictures it should ''have (cast cards, scene pictures) instead of continuing the previous video. Continue a video only for a ''long take that cannot be cut, an action that must stay unbroken, or sound that must stay unbroken, and '- 'continuing again and again is not recommended. One video has at most 5 parts (the first and 4 '+ 'continuing again and again is not recommended. Content of 16 to 29 seconds is better made as shots of '+ 'up to 15 seconds each. One video has at most 5 parts (the first and 4 ''continuations), each continued part at least 10 seconds, about 70 seconds in all; filling that is not ''recommended. Past it, cut to a new shot.',]