Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
90b3331
Editor, image view, task float and notifications: a failure states th…
KBRASK Nov 19, 2026
126b959
Export at 48/60 fps: a full disk is reported as a full disk, and plai…
KBRASK Nov 19, 2026
a49453b
Image and video failures name their reason and next step: engine stop…
KBRASK Nov 19, 2026
ec9f37f
Release 0.6.4: update notes
KBRASK Nov 19, 2026
b22e96a
Image models kept on another drive through a link (a symbolic link or…
KBRASK Nov 19, 2026
987d089
Show the known fix first when reporting a failure that has one
KBRASK Nov 19, 2026
69acb6c
H3 Image: the picture worker runs on CUDA's native allocator where Co…
KBRASK Nov 19, 2026
e947987
Export at 48 or 60 fps: the frames in between are made on the graphic…
KBRASK Nov 19, 2026
1269db0
LoRA with one alpha for layers of different ranks: the check names th…
KBRASK Nov 19, 2026
5b8ae57
Face close-up with new clothes: a too-wide close-up is redrawn larger…
KBRASK Nov 19, 2026
36ede3f
Report a problem: the issue text starts with the display adapter mode…
KBRASK Nov 19, 2026
e18f9c2
Image warm-up: the package check, read-ahead and planning follow the …
KBRASK Nov 19, 2026
5683be0
LoRA choice opens FreeVideo's own menu: long lists scroll, filter as …
KBRASK Nov 19, 2026
6ca3b93
Pictures are also copied into the output folder (Settings: on by defa…
KBRASK Nov 19, 2026
3821203
Image model downloads no longer pause as "a video is generating" whil…
KBRASK Nov 19, 2026
64a87cc
The page check lists every shipped page script, including the LoRA me…
KBRASK Nov 19, 2026
f727e23
Image generation: a prompt, size, seed or reference count that is out…
KBRASK Nov 19, 2026
75464d8
Image generation: MOSS-Image on Windows no longer stops at the prompt…
KBRASK Nov 19, 2026
9540e63
Editor: in a narrow window the unsaved-changes words stay inside thei…
KBRASK Nov 19, 2026
620140e
Create panel: an empty run status takes no room in the line above the…
KBRASK Nov 19, 2026
10b9dd8
Release 0.6.5: update notes
KBRASK Nov 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ FreeVideo code uses [Apache-2.0](LICENSE). Its dependencies and models retain th
| [Three.js](https://threejs.org/) r160 and its TransformControls (examples/jsm; import path and handle colours changed), © 2010–2023 three.js authors (bundled whitebox renderer and mannequin) | [MIT](web/vendor/three/LICENSE) |
| [Depth Anything V2 Small](https://github.com/DepthAnything/Depth-Anything-V2/tree/a561b849ebae10a6f5ef49e26c83cbbcd36c71bf), © 2024 Depth Anything authors; DINOv2 © Meta Platforms, Inc. and affiliates. Small-only DPT/DINOv2 inference and preprocessing are adapted and bundled; Small weights are an optional download pinned at `03876f8651c73a60fe4c2c48294e09fcb6838fcf`. | [Apache-2.0 (code and Small weights)](freevideo_engine/licenses/Depth-Anything-V2-Apache-2.0.txt) |
| [Real-ESRGAN](https://github.com/xinntao/Real-ESRGAN/tree/685d429c81888252bdb10f56c7754baededc3823) realesr-general-x4v3, © 2021 Xintao Wang. The SRVGGNetCompact inference network is adapted and bundled for upscaling finished videos to 4K; the weights are an optional download (4,885,111 bytes, SHA-256 `8dc7edb9ac80ccdc30c3a5dca6616509367f05fbc184ad95b731f05bece96292`, the v0.2.5.0 release file). | [BSD-3-Clause (code and weights)](freevideo_engine/licenses/Real-ESRGAN-BSD-3-Clause.txt) |
| [RIFE (Practical-RIFE) 4.25](https://github.com/hzwer/Practical-RIFE/tree/bbfd2ea90910789a860ea3e2b32a240cd577b75e), © 2021 hzwer. The IFNet inference network is adapted and bundled for 48/60 fps export; the 4.25 weights are an optional download pinned at Comfy-Org/Frame-Interpolation `aa7009be4d1471ea0bac91d6fe4d7e4b637cbbfc`. | [MIT (code and weights)](freevideo_engine/licenses/Practical-RIFE-MIT.txt) |
| Qt, PySide6 and Shiboken6 | LGPL-3.0; [component notices](freevideo_engine/launcher/licenses/NOTICE.txt) |
| PyInstaller bootloader | GPL-2.0 with the bootloader exception |
| CPython / psutil | PSF / BSD-3-Clause |
Expand Down
2 changes: 1 addition & 1 deletion constraints/engine.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ accelerate==1.14.0
annotated-doc==0.0.5
antlr4-python3-runtime==4.9.3
anyio==4.15.1
apache-tvm-ffi==0.1.14rc3
apache-tvm-ffi==0.1.14.post1
av==18.1.0
certifi==2026.7.22
cffi==2.1.1
Expand Down
9 changes: 6 additions & 3 deletions freevideo_engine/agent/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def voice_ready(port):
return voice_state(port)[0]


def features(continuation, vlm, stems=False, voice=True, voice_install=False):
def features(continuation, vlm, stems=False, voice=True, voice_install=False, fps=False):
"""What an agent can use here (ready says whether the engine can run now). A missing name is not offered."""
from .editor_runtime import available
rules = available()
Expand All @@ -219,7 +219,9 @@ def features(continuation, vlm, stems=False, voice=True, voice_install=False):
'finish_sound')},
'projects.stems': bool(rules and stems), 'projects.voice': bool(rules and stems and voice),
# The machine could change a voice but the dubbing model is not there yet: the page offers its download.
'projects.voice.install': bool(rules and stems and voice_install and not voice)}
'projects.voice.install': bool(rules and stems and voice_install and not voice),
# 48/60 fps export makes the frames in between on the graphics card (far too slow without one).
'projects.export.fps': bool(rules and fps)}


def whitebox_support(jobs):
Expand Down Expand Up @@ -258,7 +260,8 @@ def capabilities(port, jobs):
return dict(
api_version=API_VERSION, freevideo_version=release or __version__, build=__version__, ready=ready, problem=problem,
continuation=continuation,
features=features(continuation, vlm, stems=stems_supported(machine), voice=voice[0], voice_install=voice[1]),
features=features(continuation, vlm, stems=stems_supported(machine), voice=voice[0], voice_install=voice[1],
fps=bool(machine) and machine.get('device_backend', 'cuda') == 'cuda'),
whitebox=whitebox_support(jobs),
device=dict(backend=machine.get('device_backend', 'cuda') if machine else None,
vram_limit_gib=machine.get('vram_gib'), ram_limit_gib=machine.get('ram_gib')),
Expand Down
2 changes: 1 addition & 1 deletion freevideo_engine/comfy_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ async def output_settings_route(request):
from .output_settings import available, read
value = dict(read(installation_root()), available=await asyncio.to_thread(available))
except Exception:
value = dict(ten_bit=False, available=False)
value = dict(ten_bit=False, image_copy=True, available=False)
return web.json_response(value, headers={'Cache-Control': 'no-store'})

@server.routes.post('/freevideo/node-view-opened')
Expand Down
2 changes: 1 addition & 1 deletion freevideo_engine/comfy_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def output_settings(self, value=None):
root = installation_root(self.source)
if value is None:
return dict(read(root), available=available())
return dict(write(root, value.get('ten_bit')), available=available())
return dict(write(root, value.get('ten_bit'), value.get('image_copy')), available=available())

def downloads(self, root=None):
from .download_settings import read
Expand Down
10 changes: 10 additions & 0 deletions freevideo_engine/component_licenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ def row(key, name, licence, link, text=None, terms=None):
UPSCALE = row('frame-upscale', ('Real-ESRGAN realesr-general-x4v3 code and weights', 'Real-ESRGAN realesr-general-x4v3 代码和权重'),
('BSD 3-Clause License', 'BSD 三条款许可证'),
'https://github.com/xinntao/Real-ESRGAN/blob/685d429c81888252bdb10f56c7754baededc3823/LICENSE')
RIFE = row('frame-interpolation', ('RIFE frame interpolation code and weights', 'RIFE 补帧代码和权重'),
('MIT License', 'MIT 许可证'),
'https://github.com/hzwer/Practical-RIFE/blob/bbfd2ea90910789a860ea3e2b32a240cd577b75e/LICENSE')


def depth_license():
Expand All @@ -51,6 +54,10 @@ def depth_license():

def upscale_license():
return local(UPSCALE, HERE / 'licenses/Real-ESRGAN-BSD-3-Clause.txt')


def rife_license():
return local(RIFE, HERE / 'licenses/Practical-RIFE-MIT.txt')
# Libraries a runtime may carry, found by file name: versioned Windows names and Linux
# lib*.so.* alike. A CUDA build of Torch counts for CUDA, so a runtime whose CUDA files
# are named otherwise still lists it.
Expand Down Expand Up @@ -135,6 +142,9 @@ def bundle(root, value):
if any(entry['path'].replace('\\', '/').endswith('freevideo_engine/frame_upscale.py')
or entry['path'].endswith('realesr-general-x4v3.pth') for entry in value['files']):
rows.append(upscale_license())
if any('freevideo_engine/rife/' in entry['path'].replace('\\', '/')
or entry['path'].endswith('rife_v4.25.safetensors') for entry in value['files']):
rows.append(rife_license())
return rows


Expand Down
81 changes: 80 additions & 1 deletion freevideo_engine/editor_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"""
import asyncio
import copy
import dataclasses
import errno
import importlib
import json
Expand Down Expand Up @@ -46,7 +47,8 @@
class ExportError(Exception):
"""A public reason code; never retain a decoder's path-bearing message."""
def __init__(self, reason='failed'):
self.reason = reason if reason in ('source_missing', 'unreadable', 'disk_full', 'not_writable', 'failed') else 'failed'
self.reason = reason if reason in ('source_missing', 'unreadable', 'disk_full', 'not_writable', 'failed',
'interp_download', 'interp_memory') else 'failed'
super().__init__(self.reason)


Expand Down Expand Up @@ -646,6 +648,18 @@ def render(project: dict, resolve, target: Path, *, progress=None, cancelled=Non
Raises ExportError(reason) or ExportCancelled and removes owned partials.
Existing destinations are refused and never removed.
"""
try:
width, height, total, tracks = _layout(project)
settings = editor_export_options.effective(options, width, height, total)
except Exception:
settings = None # _render_once reports it the usual way
if settings is not None and settings.only == 'video' and settings.fps != FPS:
return _render_faster(project, resolve, target, settings, tracks.get('v1', []),
progress=progress, cancelled=cancelled)
return _render_seams(project, resolve, target, progress=progress, cancelled=cancelled, options=options)


def _render_seams(project, resolve, target, *, progress, cancelled, options):
try:
return _render_once(project, resolve, target, progress=progress, cancelled=cancelled,
options=options, repair_seams=True)
Expand All @@ -657,6 +671,71 @@ def render(project: dict, resolve, target: Path, *, progress=None, cancelled=Non
options=options, repair_seams=False)


# Share of the progress bar for the 24 fps picture; interpolation and its encode take the rest (measured at 1080p).
_FIRST_PASS_SHARE = .4


def _render_faster(project, resolve, target, settings, clips, *, progress, cancelled):
"""48/60 fps: the usual 24 fps render to a near-lossless file next to the target, then frame interpolation."""
from . import frame_interp
target = Path(target)
if target.exists() or target.is_symlink():
raise ExportError()
target.parent.mkdir(parents=True, exist_ok=True)
base = target.with_name('.editor-export-24-' + uuid.uuid4().hex + '.mp4')
faster = _checked_target(target.with_name('.editor-export-' + uuid.uuid4().hex + '.mp4'))
first = (lambda fraction: progress(min(fraction, .99) * _FIRST_PASS_SHARE)) if progress else None
published = False
try:
_render_seams(project, resolve, base, progress=first, cancelled=cancelled,
options=dataclasses.replace(settings, fps=FPS, intermediate=True))
_check(cancelled)
if _clearly_too_full(base, settings):
raise ExportError('disk_full')

def moved(value):
if progress and value.get('stage') == frame_interp.STAGE and value.get('total'):
progress(_FIRST_PASS_SHARE + (1 - _FIRST_PASS_SHARE) * .99 * value['done'] / value['total'])
try:
frame_interp.convert(base, faster, fps=settings.fps, video_options=settings.video_options,
cuts=frame_interp.cuts_of(clips, settings.start, settings.frames),
progress=moved, cancelled=cancelled)
except frame_interp.InterpolationError as error:
raise ExportError(error.code) from error
_check(cancelled)
_checked_target(faster)
with faster.open('r+b') as stream:
os.fsync(stream.fileno())
_check(cancelled)
_checked_target(target)
faster.replace(target)
published = True
if progress:
progress(1.)
return target
except BaseException:
if published:
target.unlink(missing_ok=True)
raise
finally:
base.unlink(missing_ok=True)
faster.unlink(missing_ok=True)


def _clearly_too_full(base, settings):
"""Whether the disk plainly cannot take the faster file, said before the graphics card spends minutes on it.

The final file is estimated from the near-lossless 24 fps one: more frames, and about half the size for every 6 steps
of quality given up. Only half of that is asked for, so a close call is left to the write itself."""
from .disk_space import free_bytes
try:
size, free = base.stat().st_size, free_bytes(base.parent)
except (OSError, ValueError):
return False
crf = int(settings.video_options['crf'])
return free < size * settings.fps / FPS * 2 ** ((10 - crf) / 6) / 2


def _render_once(project, resolve, target, *, progress, cancelled, options, repair_seams):
import av
import numpy as np
Expand Down
23 changes: 19 additions & 4 deletions freevideo_engine/editor_export_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class ExportOptions:
quality: str = 'high'
sound_format: str = 'm4a'
subtitles: str = 'burn'
# Above 24 the picture is first rendered at 24 fps (intermediate) and then interpolated.
fps: int = 24
intermediate: bool = False

@property
def filename(self):
Expand All @@ -30,6 +33,9 @@ def container_options(self):

@property
def video_options(self):
if self.intermediate:
# Near-lossless and quick: only the interpolation step reads it, then it is removed.
return {'crf': '10', 'preset': 'veryfast'}
return {'crf': str({'high': 23, 'standard': 25, 'small': 30}[self.quality]), 'preset': 'medium'}

@property
Expand All @@ -41,12 +47,16 @@ def status(self):
only=self.only, quality=self.quality if self.only == 'video' else None,
range=dict(start=self.start, frames=self.frames),
sound_format=self.sound_format if self.only == 'sound' else None,
**({'subtitles': 'none'} if self.only == 'video' and self.subtitles == 'none' else {}))
**({'subtitles': 'none'} if self.only == 'video' and self.subtitles == 'none' else {}),
**({'fps': self.fps} if self.only == 'video' and self.fps != 24 else {}))


FRAME_RATES = (24, 48, 60)


def validate(options, width, height, frames):
"""Validate wire values once; the queue passes the immutable result to render."""
if not isinstance(options, dict) or set(options) - {'short', 'quality', 'range', 'only', 'sound_format', 'subtitles'}:
if not isinstance(options, dict) or set(options) - {'short', 'quality', 'range', 'only', 'sound_format', 'subtitles', 'fps'}:
raise ValueError('Invalid export options')
if 'short' in options and (type(options['short']) is not int
or not 144 <= options['short'] <= 4320 or options['short'] % 2):
Expand All @@ -63,6 +73,8 @@ def validate(options, width, height, frames):
or span['start'] < 0 or span['frames'] < 1 or span['start'] + span['frames'] > frames):
raise ValueError('Invalid export range')
start, count = span['start'], span['frames']
if 'fps' in options and (type(options['fps']) is not int or options['fps'] not in FRAME_RATES):
raise ValueError('Invalid export fps')
if options.get('only') == 'sound':
return ExportOptions(0, 0, start, count, only='sound', sound_format=options.get('sound_format', 'm4a'))
output_width, output_height = width, height
Expand All @@ -74,7 +86,7 @@ def validate(options, width, height, frames):
if max(output_width, output_height) > 8192:
raise ValueError('Export picture is too large')
return ExportOptions(output_width, output_height, start, count, quality=options.get('quality', 'high'),
subtitles=options.get('subtitles', 'burn'))
subtitles=options.get('subtitles', 'burn'), fps=options.get('fps', 24))


def effective(options, width, height, frames):
Expand Down Expand Up @@ -105,12 +117,15 @@ def sound_samples(mixed, options):

def report_values(report, options):
geometry = report['geometry']
if (options.only == 'video' and options.quality == 'high' and options.start == 0
if (options.only == 'video' and options.quality == 'high' and options.start == 0 and options.fps == 24
and (options.width, options.height, options.frames) ==
(geometry['width'], geometry['height'], geometry['frames'])):
return # Preserve the original default completion marker as well as media.
report['geometry'].update(width=options.width, height=options.height,
frames=options.frames, seconds=options.frames / 24)
if options.only == 'video' and options.fps != 24:
# The picture has fps times as many frames per second; the length stays the same.
report['geometry'].update(fps=options.fps, frames=-(-options.frames * options.fps // 24))
if options.only == 'sound':
report.pop('video', None)
report['audio'] = dict(format=options.sound_format)
Expand Down
7 changes: 6 additions & 1 deletion freevideo_engine/failure_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@
'busy_video': ('A video is using the graphics card; try again when it finishes.', '视频正在使用显卡,完成后再试。'),
'needs_repair': ('The image model files are incomplete or damaged; repair them in the launcher.', '图像模型文件不完整或已损坏,请在启动器里修复。'),
'changed': ('The image model files changed during the check; they were kept, so check again.', '图像模型文件在检查期间发生变化,已保留,请重新检查。'),
'unsafe_path': ('The image model folder contains a link that cannot be safely changed.', '图像模型目录含有无法安全修改的链接。'),
'unsafe_path': ("One of FreeVideo's own record files in the image model folder (image_gen) is a link or leads outside that folder, so it was not written; delete that link and try again.",
'图像模型目录(image_gen)里 FreeVideo 自己的记录文件是链接或指向目录之外,所以没有写入;请删掉这个链接后重试。'),
'broken_link': ('A link in the image model folder leads to a place that does not exist, for example a drive that is not connected; connect that drive or folder, or delete the link and download the model again.',
'图像模型目录里有链接指向不存在的位置(例如没接上的硬盘);请接上它指向的盘或文件夹,或删掉这个链接后重新下载模型。'),
'link_mismatch': ('A model file in the image model folder is a link to a file that is damaged or a different version; delete the link so FreeVideo can download the file again, or point the link to the right file.',
'图像模型目录里有模型文件是链接,它指向的文件已损坏或版本不对;请删掉这个链接让 FreeVideo 重新下载,或把链接改指向正确的文件。'),
'failed': ('The image model operation stopped because of an unexpected error. Export the report, then use "Report a problem" and attach it.',
'图像模型操作因意外错误停止。请先导出报告,再点击“提交问题”并附上报告。'),
}
Expand Down
Loading