Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
8211848
Linux ARM64 setup, step two: NVIDIA's ARM server toolkit archives, co…
KBRASK Nov 19, 2026
6d79df9
Linux ARM64: the voice pack takes its aarch64 runtime wheels, and the…
KBRASK Nov 19, 2026
58d34b8
Public CI: a Linux ARM64 job checks on a real ARM machine what setup …
KBRASK Nov 19, 2026
d62074a
MOSS-Image layout: boxes drawn on the picture are written as the layo…
KBRASK Nov 19, 2026
2f44a8f
Keep the editor's update bar inside the window, full width
KBRASK Nov 19, 2026
1760df8
Reference video: "Composition only" uses a line drawing of the clip, …
KBRASK Nov 19, 2026
a4eec7f
Assistant: a picture that cannot start says why and what to change (p…
KBRASK Nov 19, 2026
706a280
Image view, MOSS-Image: Layout draws boxes on the next picture's fram…
KBRASK Nov 19, 2026
19092ca
MOSS-Image on a card too small for the whole model keeps as many laye…
KBRASK Nov 19, 2026
c70c02a
Original audio: an MP3 is copied into the MP4 as it is, with the star…
KBRASK Nov 19, 2026
13c4365
Creations: run details name the stored sound line when a sound was ke…
KBRASK Nov 19, 2026
ce3a1ca
LoRA menu: the chosen name reads from the left like a field instead o…
KBRASK Nov 19, 2026
31c6dc8
Redo sound: keep the picture, draw only new sound
KBRASK Nov 17, 2026
bf4e373
Sliders: touch scrolling stays on, no engine-only fill, real-browser …
KBRASK Nov 19, 2026
201c753
A frame saved from the Edit view is copied into the output folder lik…
KBRASK Nov 19, 2026
479562b
Make the settings confirm sheet opaque under the stage look
KBRASK Nov 19, 2026
f2259fa
Make setup dialogs and popovers opaque under the stage look
KBRASK Nov 19, 2026
0aa4ed3
Error report and prefilled issue name the ComfyUI frontend version wh…
KBRASK Nov 19, 2026
253f7c6
Video mask: redraw selected parts of a clip while everything else kee…
KBRASK Nov 19, 2026
b550523
Editor on a narrow screen: the Media button no longer sits on the pre…
KBRASK Nov 19, 2026
97ba801
Editor: when the empty preview is too short to hold the hint, only th…
KBRASK Nov 19, 2026
183e72b
Picture sessions with co-residency: the room check counts MOSS-Image'…
KBRASK Nov 19, 2026
34e3419
Number fields bring a typed value into range and say so on a line und…
KBRASK Nov 19, 2026
549ebe5
Empty stage hint no longer names one button label
KBRASK Nov 19, 2026
10402af
View switch animation turns itself off on slower computers (four core…
KBRASK Nov 19, 2026
cdec5b3
Editor: the empty picture's hint wraps in even lines and shows the ic…
KBRASK Nov 19, 2026
4dcb9ae
Hover tips: text that is not a control no longer shows the browser's …
KBRASK Nov 19, 2026
ced7e65
Page tip: solid background instead of a see-through tint
KBRASK Nov 19, 2026
d66f7df
Sliders: a view's own track rule wins over the shared slider sheet
KBRASK Nov 19, 2026
6a094e6
Play bar writes its fill by whole pixels (two or more, at most 20 a s…
KBRASK Nov 19, 2026
872a4da
Ignore the local agent service address, its token and the token tempo…
KBRASK Nov 20, 2026
47d1aae
Tutorial: export at 48 or 60 fps, the frame rate is chosen before Exp…
KBRASK Nov 20, 2026
d0aae74
Linux ARM64 setup, step one: uv, the private Python and their folders…
KBRASK Nov 19, 2026
c3c31ac
Setup starts the Git repository again when it disappears right after …
KBRASK Nov 10, 2026
a3c9584
Light theme: input boxes in ComfyUI windows follow the window
KBRASK Nov 20, 2026
51f5de6
Tutorial, export: the missing frame rate note joins the export window…
KBRASK Nov 20, 2026
fe050da
Tutorial, picture chapter: MOSS layout boxes are explained on the ref…
KBRASK Nov 20, 2026
72c1e6e
Release 0.6.6: update notes
KBRASK Nov 20, 2026
4e36174
The page check lists the ComfyUI templates window script, so its list…
KBRASK Nov 20, 2026
c967106
Reference video, lines only: disk space, clip change, memory stop and…
KBRASK Nov 20, 2026
2cca855
Public CI: the Linux ARM64 job is removed for now, because the public…
KBRASK Nov 20, 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
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,8 @@ engine-gpu-*.lock
*.gguf
/out/
!freevideo_engine/frame_preview_decoder.safetensors

# Local agent service: address and access token written at run time
/agent/endpoint.json
/agent/token
/agent/.token-*.tmp
2 changes: 1 addition & 1 deletion freevideo_engine/adaptive.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ def complete_observation(metrics, canvas, output, artifacts, telemetry):
output_frames = expected - hidden
original_audio = metrics.get('original_audio')
if original_audio is not None:
if (not isinstance(original_audio, dict) or original_audio.get('sample_identical') is not True
if (not isinstance(original_audio, dict) or original_audio.get('mode') not in ('stream_copy', 'aac320')
or type(original_audio.get('samples_per_channel')) is not int
or type(original_audio.get('sample_rate')) is not int
or original_audio['samples_per_channel'] <= 0 or original_audio['sample_rate'] <= 0):
Expand Down
25 changes: 24 additions & 1 deletion freevideo_engine/agent/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,16 @@
'invalid_media': ('The reference image could not be read. Choose another one.',
'参考图读不出来,请换一张。'),
'invalid_request': ('The image settings are invalid. Adjust them and try again.', '图片设置有误,请调整后重试。'),
'invalid_prompt': ('The prompt is empty, or longer than 2,000 characters once the picture references are counted. Shorten it and try again.',
'提示词为空,或加上图片引用后超过 2000 字。请缩短提示词后重试。'),
'invalid_dimensions': ('The image size is outside what the chosen model supports. Change the size and try again.',
'图片尺寸超出所选模型支持的范围。请调整尺寸后重试。'),
'invalid_seed': ('The seed is not valid. Clear it or use a smaller whole number, then try again.',
'随机种子无效。请清空种子或改用较小的整数后重试。'),
'too_many_images': ('There are more reference images than the chosen model supports. Remove some and try again.',
'参考图超过所选模型支持的数量。请减少参考图后重试。'),
'output_unwritable': ('The folder that keeps the pictures cannot be written (freevideo-image in the ComfyUI input folder). Check that it exists, is writable and has no file of the same name, then try again.',
'无法写入保存图片的文件夹(ComfyUI 的 input 目录下的 freevideo-image)。请确认该目录存在、可写,且没有同名文件,然后重试。'),
'busy': ('Another picture is being generated. Try again when it finishes.', '已有一张图在生成,完成后再试。'),
'cancelled': ('The picture was cancelled.', '已取消这张图片。'),
}
Expand All @@ -181,7 +191,7 @@ def image_failure(code, report_id=None):
valid = isinstance(report_id, str) and re.fullmatch(r'[0-9a-f]{32}', report_id)
return dict(reason=dict(en=en, zh=zh), report_id=report_id if valid and code not in LORA_ERRORS and code not in (
'busy', 'cancelled', 'invalid_request', 'invalid_media', 'invalid_prompt', 'invalid_dimensions',
'invalid_seed', 'too_many_images', 'disk_full') else None)
'invalid_seed', 'too_many_images', 'disk_full', 'output_unwritable') else None)


# Recovery is a function of the committed task and phase, not just an error code.
Expand All @@ -208,6 +218,7 @@ def image_failure(code, report_id=None):
'generation_failed': IMAGE_REASONS['generation_failed'][0],
'worker_exit': 'The image worker stopped before finishing this picture.',
'disk_full': IMAGE_REASONS['disk_full'][0],
'output_unwritable': 'The folder that keeps the pictures cannot be written; tell the user to check that the freevideo-image folder in the input directory exists, is writable and has no file of the same name, then submit again with a new ref.',
'cancelled': 'The picture job was cancelled.',
}
IMAGE_REASONS.update({code: (LORA_MESSAGE_EN[code], LORA_MESSAGE_ZH[code]) for code in LORA_ERRORS})
Expand Down Expand Up @@ -342,6 +353,7 @@ def safe_details(value):
'invalid_output': '生成的结果无法读取或保存',
'storage_unavailable': '任务记录或素材无法写入磁盘',
'disk_full': '磁盘空间不够,图片没能保存',
'output_unwritable': '保存图片的文件夹无法写入',
'submit_interrupted': '提交生成时服务中断,尚未确认任务是否开始',
'timeout': '生成等了太久没有结果',
'invalid_media': '参考素材无法读取',
Expand Down Expand Up @@ -449,6 +461,7 @@ def safe_details(value):
'invalid_output': 'The result could not be read or saved',
'storage_unavailable': 'The task record or media could not be written to disk',
'disk_full': 'Saving the image failed: the disk is full',
'output_unwritable': 'The folder that keeps the pictures cannot be written',
'submit_interrupted': 'The service stopped during submission, so it is not confirmed whether the task started',
'timeout': 'Generation took too long without a result',
'invalid_media': 'The reference media could not be read',
Expand Down Expand Up @@ -547,6 +560,11 @@ def safe_details(value):
'stems_download_failed': '检查网络连接后再试',
'voice_model_missing': '先安装配音模型',
'no_speech': '选择有人说话的一段声音',
'invalid_prompt': '缩短图片描述后再试',
'invalid_dimensions': '调整图片尺寸后再试',
'invalid_seed': '清空种子或改用较小的整数后再试',
'too_many_images': '减少参考图后再试',
'output_unwritable': '确认输入目录下的 freevideo-image 文件夹存在、可写且没有同名文件后再试',
}
FAILURE_NEXT_EN = {
'generation_failed': 'If it happens again, use "Report a problem"',
Expand Down Expand Up @@ -574,6 +592,11 @@ def safe_details(value):
'stems_download_failed': 'Check the network connection, then try again',
'voice_model_missing': 'Install the dubbing model first',
'no_speech': 'Choose a stretch of sound with someone speaking',
'invalid_prompt': 'Shorten the description, then try again',
'invalid_dimensions': 'Change the picture size, then try again',
'invalid_seed': 'Clear the seed or use a smaller whole number, then try again',
'too_many_images': 'Remove some reference pictures, then try again',
'output_unwritable': 'Check that the freevideo-image folder in the input directory exists, is writable and has no file of the same name, then try again',
}
FAILURE_MESSAGES_ZH = {
'The previous video is too short to continue; it needs to be at least 1.7 s long.': '接续的上一段视频太短,至少需要 1.7 秒',
Expand Down
3 changes: 2 additions & 1 deletion freevideo_engine/agent/mcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,8 @@ def shell_quote(value, *, windows=None):

def linux_wrapper_supported():
import platform
return sys.platform.startswith('linux') and platform.machine() == 'x86_64'
from ..environments import linux_machine
return sys.platform.startswith('linux') and linux_machine(platform.machine()) is not None


def python_shell_command(config, module):
Expand Down
29 changes: 16 additions & 13 deletions freevideo_engine/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from .install_tuning import build_parallelism, required_models, cache_compatible, wheel_key
from .terminal_ui import TerminalUI, LogProgress
from .locking import runtime_lock, LOCK_ENV
from .environments import (ENVIRONMENTS, environment_names, select_layout, role_pythons, constraints_file,
from .environments import (ENVIRONMENTS, environment_names, select_layout, role_pythons, constraints_file, setup_supported, uv_folder, conda_lock, conda_triple,
bootstrap_versions, uv_file_arguments, uv_build_environment)
from . import disk_space
from . import network
Expand Down Expand Up @@ -655,18 +655,21 @@ def plan(args, *, local_progress=None, stage=None):
from .macos_bootstrap import preflight
snapshot, resources, errors = preflight(args, fixture, ram_gib=ram_gib, vram_gib=vram_gib)
system, windows_target, layout = 'Darwin', False, 'unified'
target_machine = None
cache_format = dict(capability=None, scale_granularity='int8_convrot')
prepared_format = 'int8_convrot'
else:
if not args.hardware_json and (platform.system() not in ('Linux', 'Windows') or platform.machine().lower() not in ('x86_64', 'amd64')):
raise RuntimeError('One-click setup supports Linux x86_64 and native Windows x64.')
if not args.hardware_json and not setup_supported(platform.system(), platform.machine()):
raise RuntimeError('One-click setup supports Linux x86_64 or ARM64 and native Windows x64.')
snapshot = json.loads(args.hardware_json.read_text(encoding='utf-8')) if args.hardware_json else inventory(args.gpu)
warnings.extend(snapshot.get('warnings', []))
hardware = Hardware.from_dict(snapshot['hardware'])
errors = []
if snapshot.get('machine', '').lower() not in ('x86_64', 'amd64') or hardware.system not in ('Linux', 'Windows'):
errors.append('This installer supports Linux x86_64 and native Windows x64.')
if not setup_supported(hardware.system, snapshot.get('machine', '')):
errors.append('This installer supports Linux x86_64 or ARM64 and native Windows x64.')
windows_target = hardware.system == 'Windows'
# A replayed snapshot (--hardware-json) plans for its own processor, not this machine's.
target_machine = snapshot.get('machine') or None
if windows_target and layout != 'unified':
errors.append('Native Windows uses the unified environment. Rerun with --environment unified.')
layout = 'unified'
Expand Down Expand Up @@ -883,7 +886,7 @@ def plan(args, *, local_progress=None, stage=None):
dependencies = dependency_status(root, layout, system)
environments_ready = all(r['exists'] and not r['missing'] and not r['mismatched'] for r in dependencies.values())
python_version = None if mac_target else bootstrap_versions(
json.loads((PACKAGE / 'bootstrap_versions.json').read_text(encoding='utf-8')), system)['python']
json.loads((PACKAGE / 'bootstrap_versions.json').read_text(encoding='utf-8')), system, target_machine)['python']
linux_target = not mac_target and not windows_target
environment_gib = environment_allowance_gib(dependencies, mac=mac_target, layout=layout, python_version=python_version,
linux=linux_target)
Expand Down Expand Up @@ -924,7 +927,7 @@ def native_git_available():
if stage:
stage('Testing download sources')
networking = network.plan(json.loads((PACKAGE / 'dependencies.json').read_text(encoding='utf-8')),
bootstrap_versions(json.loads((PACKAGE / 'bootstrap_versions.json').read_text(encoding='utf-8')), system), layout,
bootstrap_versions(json.loads((PACKAGE / 'bootstrap_versions.json').read_text(encoding='utf-8')), system, target_machine), layout,
mode=getattr(args, 'network', 'auto'), timeout=getattr(args, 'network_timeout', 5),
offline=bool(args.hardware_json or errors),
git_available=not mac_target or bool(args.hardware_json) or native_git_available(),
Expand Down Expand Up @@ -1276,8 +1279,8 @@ def prepare_uv(system, root, uv_spec, networking, env, fetch):
except OSError:
shutil.copyfile(previous, archive)
fetch(uv_spec['url'], archive, uv_spec['sha256'])
unpack_folder(archive, root / 'tools', 'uv-x86_64-unknown-linux-gnu')
return root / 'tools' / 'uv-x86_64-unknown-linux-gnu' / 'uv'
unpack_folder(archive, root / 'tools', uv_folder())
return root / 'tools' / uv_folder() / 'uv'


def unpack_folder(archive, destination, name):
Expand Down Expand Up @@ -2185,7 +2188,7 @@ def host_compiler(self, cuda):
`env` is empty when the system compiler is used; `identity` names the compiler in the wheel cache key.
A portable compiler is only installed when a build is needed (see install_compiler_linux).
"""
spec = json.loads((PACKAGE / 'gcc_linux.json').read_text(encoding='utf-8'))
spec = conda_lock(json.loads((PACKAGE / 'gcc_linux.json').read_text(encoding='utf-8')))
below = spec['host_compiler_below'].get(cuda)
# Without any system g++, FreeVideo's own compiler builds Sage2.
if not shutil.which('g++', path=self.env['PATH']):
Expand All @@ -2199,9 +2202,9 @@ def host_compiler(self, cuda):

def install_compiler_linux(self):
"""GCC from conda-forge, pinned by package hashes, for a system compiler newer than the toolkit accepts."""
spec = json.loads((PACKAGE / 'gcc_linux.json').read_text(encoding='utf-8'))
spec = conda_lock(json.loads((PACKAGE / 'gcc_linux.json').read_text(encoding='utf-8')))
prefix = self.root / 'tools' / ('gcc-' + spec['version'])
triple = 'x86_64-conda-linux-gnu'
triple = conda_triple()
compilers = {'CC': prefix / 'bin' / (triple + '-gcc'), 'CXX': prefix / 'bin' / (triple + '-g++')}
receipt, content = prefix / '.freevideo-gcc.json', {k: spec[k] for k in ('version', 'packages')}
if not (receipt.is_file() and json.loads(receipt.read_text(encoding='utf-8')) == content
Expand Down Expand Up @@ -2258,7 +2261,7 @@ def install_git_linux(self):
self.install_git_conda('git_linux.json', 'git-linux', self.fetch_git_linux)

def install_git_conda(self, filename, folder, fetch, wrapper=False):
spec = json.loads((PACKAGE / filename).read_text(encoding='utf-8'))
spec = conda_lock(json.loads((PACKAGE / filename).read_text(encoding='utf-8')))
prefix = self.root / 'tools' / ('git-' + spec['version'])
executable = prefix / 'bin' / 'git'
receipt, content = prefix / '.freevideo-git.json', {k: spec[k] for k in ('version', 'packages')}
Expand Down
81 changes: 81 additions & 0 deletions freevideo_engine/bootstrap_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,87 @@
"url": "https://github.com/astral-sh/uv/releases/download/0.9.0/uv-x86_64-unknown-linux-gnu.tar.gz",
"sha256": "4dadaa5ff5009ccd6a0a43f6ccfa32bf36ed2eff18df7011275a9b1d81950e7b"
},
"linux_aarch64": {
"uv": {
"version": "0.9.0",
"url": "https://github.com/astral-sh/uv/releases/download/0.9.0/uv-aarch64-unknown-linux-gnu.tar.gz",
"sha256": "ca410766024d2d726c937bda2e9441823e2848894ac5a2f8b608902384fc391f"
},
"cuda_toolkits": {
"12.9": {
"components": {
"cuda_nvcc": {
"relative_path": "cuda_nvcc/linux-sbsa/cuda_nvcc-linux-sbsa-12.9.86-archive.tar.xz",
"sha256": "0aa1fce92dbae76c059c27eefb9d0ffb58e1291151e44ff7c7f1fc2dd9376c0d",
"md5": "1322a14e4d6482f69d4b8a14a7d5f4c5",
"size": "73407012"
},
"cuda_cudart": {
"relative_path": "cuda_cudart/linux-sbsa/cuda_cudart-linux-sbsa-12.9.79-archive.tar.xz",
"sha256": "8b422a3b2cb8452cb678181b0bf9d7aa7342df168b5319c5488ae3b8514101fc",
"md5": "c4b3e0d206f5dc3aceaddb78a32424d3",
"size": "1521596"
},
"cuda_cccl": {
"relative_path": "cuda_cccl/linux-sbsa/cuda_cccl-linux-sbsa-12.9.27-archive.tar.xz",
"sha256": "8c3da24801b500f1d9217d191bb4b63e5d2096c8e7d0b7695e876853180ba82f",
"md5": "b39d03cfac57a3b2ded8e9b0a6b0e782",
"size": "997840"
}
},
"required_files": [
"bin/nvcc",
"include/cuda_runtime.h",
"include/crt/host_config.h",
"include/cub/cub.cuh",
"nvvm/bin/cicc",
"nvvm/libdevice/libdevice.10.bc"
]
},
"13.0": {
"components": {
"cuda_nvcc": {
"relative_path": "cuda_nvcc/linux-sbsa/cuda_nvcc-linux-sbsa-13.0.88-archive.tar.xz",
"sha256": "01b01e10aa2662ad1b3aeab3317151d7d6d4a650eeade55ded504f6b7fced18e",
"md5": "4defe04ac10e7231bfa63cbd72dd8e21",
"size": "22383012"
},
"cuda_cudart": {
"relative_path": "cuda_cudart/linux-sbsa/cuda_cudart-linux-sbsa-13.0.96-archive.tar.xz",
"sha256": "e2c78564330a09d890f98a066a2082a32c78256ffcc6bccca1696bd2abbaf445",
"md5": "ff3140b2fb00f583295484fe36f77995",
"size": "1489276"
},
"cuda_cccl": {
"relative_path": "cuda_cccl/linux-sbsa/cuda_cccl-linux-sbsa-13.0.85-archive.tar.xz",
"sha256": "eca22ded176804a78afcba3fe1909e7d473366ee1cb9f3784080df23bc8e74d5",
"md5": "e50b07ae0a9920ce07a107a5c7030157",
"size": "990368"
},
"cuda_crt": {
"relative_path": "cuda_crt/linux-sbsa/cuda_crt-linux-sbsa-13.0.88-archive.tar.xz",
"sha256": "c03b92941ba7bf58a4992231ceb572477784ef450ce678f6545bed02392cae50",
"md5": "3db54b1fb543f00c1cca085569bffd9e",
"size": "79916"
},
"libnvvm": {
"relative_path": "libnvvm/linux-sbsa/libnvvm-linux-sbsa-13.0.88-archive.tar.xz",
"sha256": "f94feb1a0da0c55ceb5c7f039c1f0ffad5d162e0fedfb565efb87771187ddcfd",
"md5": "b9730ee7e25db76caa843c858af31d98",
"size": "38570872"
}
},
"required_files": [
"bin/nvcc",
"include/cuda_runtime.h",
"include/crt/host_config.h",
"include/cccl/cub/cub.cuh",
"nvvm/bin/cicc",
"nvvm/libdevice/libdevice.10.bc"
]
}
}
},
"cuda_redist_base": "https://developer.download.nvidia.com/compute/cuda/redist/",
"cuda_toolkits": {
"12.9": {
Expand Down
7 changes: 7 additions & 0 deletions freevideo_engine/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ def main():
generate.add_argument('--audio', type=Path, help='Audio file; may be combined with image/video references in --media')
generate.add_argument('--audio-use', choices=('reference', 'original'),
help='Audio use (default: reference); with --media alone, applies to its single audio file')
generate.add_argument('--redo-sound', type=Path,
help='Make new sound for an existing MP4 (absolute path); its picture is kept as it is')
generate.add_argument('--continue-from', type=Path, help='Continue an existing MP4 using its absolute path')
generate.add_argument('--first-frame-reference', action='store_true',
help='With --continue-from: also give the model the first frame of the whole film as a '
Expand Down Expand Up @@ -174,6 +176,11 @@ def main():
args = parser.parse_args()
if args.command == 'generate':
from .continuation import validate_frames, validate_route
if args.redo_sound is not None:
if (args.continue_from is not None or args.refine_from or args.preview or args.audio is not None
or args.media or args.hide_tail):
raise ValueError('--redo-sound cannot be combined with continuing, previewing, refining, hiding a tail or other media')
args.two_pass = False
if args.continue_anchor is not None and args.continue_from is None:
raise ValueError('--continue-anchor requires --continue-from')
if args.continue_from is not None:
Expand Down
Loading