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.
Job results and library items report the length of the saved video
Bowen Xue3c39a6bfead2
diff --git a/freevideo_engine/agent/comfy.py b/freevideo_engine/agent/comfy.pyindex 8996f1f..3b2ff7d 100644--- a/freevideo_engine/agent/comfy.py+++ b/freevideo_engine/agent/comfy.py@@ -110,6 +110,9 @@ class ComfyPort:raise ValueError('Invalid library output')report = _report(path)summary = output_summary(report, Path(relative))+ if summary.get('geometry'):+ from .media import saved_geometry+ summary['geometry'] = saved_geometry(path, summary['geometry'])if report.get('result_cache_hit') is not None:summary['result_cache_hit'] = report['result_cache_hit']return summarydiff --git a/freevideo_engine/agent/media.py b/freevideo_engine/agent/media.pyindex a7aecad..c2038ac 100644--- a/freevideo_engine/agent/media.py+++ b/freevideo_engine/agent/media.py@@ -704,6 +704,21 @@ def _reading(path):raise ValueError('Cannot read %s: %s' % (path.name, error)) from None+def saved_geometry(path, geometry):+ """The report's geometry with the length the saved video really has.++ A continued clip's report also counts the frames it took over from the clip before it.+ """+ try:+ info = inspect(path)+ except Exception: # noqa: BLE001 - the report's own numbers stand when the file cannot be read here+ return geometry+ if not info.get('frames_exact') or info['frames'] == geometry.get('frames'):+ return geometry+ fps = geometry.get('fps') or info.get('fps')+ return dict(geometry, frames=info['frames'], **(dict(seconds=info['frames'] / fps) if fps else {}))++def _file(path, kind=None):if not isinstance(path, (str, Path)) or not str(path):raise ValueError('A media file path is required')diff --git a/freevideo_engine/agent/routes.py b/freevideo_engine/agent/routes.pyindex 502ef95..2f22dc5 100644--- a/freevideo_engine/agent/routes.py+++ b/freevideo_engine/agent/routes.py@@ -1176,6 +1176,9 @@ def register():from ..comfy_assets import output_summaryreport = _report(video)summary = output_summary(report, Path(port.output_relative(video)))+ if summary.get('geometry'):+ from .media import saved_geometry+ summary['geometry'] = saved_geometry(video, summary['geometry'])prompt = (folder / 'prompt.txt').read_text(encoding='utf-8') if (folder / 'prompt.txt').is_file() else Nonereturn dict(id=identity, video=library_view(port, port.output_relative(video)), prompt=prompt,seed=report.get('seed'), geometry={k: v for k, v in (summary.get('geometry') or {}).items()