Communitygithub.com

zroeschen/Video-Production-Factory

HyperFrames CLI 工具 — 用于 hyperframes init、lint、preview、render、transcribe、tts、doctor、browser、info、upgrade、compositions、docs、benchmark 等操作。适用于项目脚手架搭建、校验或验证合成、在工作室预览、渲染视频、转录音频、生成 TTS 以及排查 HyperFrames 环境问题。

Video-Production-Factory 是什么?

HyperFrames CLI 是一个强大的命令行工具,专为视频制作流程而设计,提供从项目初始化到最终渲染的完整工作流。它支持脚手架搭建、代码 lint、实时预览、视频渲染、音频转录、文本转语音以及环境诊断等核心功能,旨在帮助开发者快速创建并迭代复杂视频项目。该工具需要 Node.js >= 22 和 FFmpeg 环境,兼容所有主流操作系统和终端,适用于个人开发者、团队以及 CI/agent 自动化场景。其核心优势在于通过统一的 CLI 接口简化视频制作复杂性,内置 Whisper 转录、多质量级别渲染选项(draft/standard/high)以及 Docker 可复现输出,极大提升了视频生产效率和可靠性。

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/zroeschen/Video-Production-Factory/tree/HEAD/.agents/skills/hyperframes-cli

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

HyperFrames CLI

所有操作均通过 npx hyperframes 运行。需要 Node.js >= 22 和 FFmpeg。

工作流程

  1. 脚手架搭建 — npx hyperframes init my-video
  2. 编写 — 创作 HTML 合成(参见 hyperframes 技能)
  3. 代码检查 — npx hyperframes lint
  4. 预览 — npx hyperframes preview
  5. 渲染 — npx hyperframes render

在预览前先进行代码检查 — 可以捕获缺失的 data-composition-id、重叠轨道、未注册的时间线等问题。

脚手架搭建

npx hyperframes init my-video                        # 交互式向导
npx hyperframes init my-video --example warm-grain   # 选择示例模板
npx hyperframes init my-video --video clip.mp4        # 附带视频文件
npx hyperframes init my-video --audio track.mp3       # 附带音频文件
npx hyperframes init my-video --non-interactive       # 跳过提示(CI/agent 场景)

模板:blank、warm-grain、play-mode、swiss-grid、vignelli、decision-tree、kinetic-type、product-promo、nyt-graph。

init 命令会创建正确的文件结构、复制媒体文件、使用 Whisper 转录音频,并安装 AI 编码技能。请使用它代替手动创建文件。

代码检查

npx hyperframes lint                  # 当前目录
npx hyperframes lint ./my-project     # 指定项目
npx hyperframes lint --verbose        # 显示信息级别的问题
npx hyperframes lint --json           # 机器可读格式输出

检查 index.html 和 compositions/ 目录下的所有文件。报告错误(必须修复)、警告(建议修复)以及信息(使用 --verbose)。

预览

npx hyperframes preview                   # 提供当前目录服务
npx hyperframes preview --port 4567       # 自定义端口(默认 3002)

文件变更时自动热重载。会自动在浏览器中打开工作室。

渲染

npx hyperframes render                                # 标准 MP4
npx hyperframes render --output final.mp4             # 指定输出文件
npx hyperframes render --quality draft                # 快速迭代
npx hyperframes render --fps 60 --quality high        # 最终交付
npx hyperframes render --format webm                  # 透明 WebM
npx hyperframes render --docker                       # 字节一致输出
标志选项默认值说明
--output路径renders/名称_时间戳.mp4输出路径
--fps24、30、603060fps 会使渲染时间翻倍
--qualitydraft、standard、highstandarddraft 用于迭代
--formatmp4、webmmp4WebM 支持透明度
--workers1-8 或 autoauto每个工作者会启动一个 Chrome
--docker标志关闭可复现输出
--gpu标志关闭GPU 加速编码
--strict标志关闭遇到 lint 错误时失败
--strict-all标志关闭遇到错误和警告时都失败

质量建议: 迭代时使用 draft,审阅时使用 standard,最终交付时使用 high。

转录

npx hyperframes transcribe audio.mp3
npx hyperframes transcribe video.mp4 --model medium.en --language en
npx hyperframes transcribe subtitles.srt   # 导入现有的字幕文件
npx hyperframes transcribe subtitles.vtt
npx hyperframes transcribe openai-response.json

文本转语音

npx hyperframes tts "文本内容" --voice af_nova --output narration.wav
npx hyperframes tts script.txt --voice bf_emma
npx hyperframes tts --list  # 显示所有可用语音

故障排除

npx hyperframes doctor       # 检查环境(Chrome、FFmpeg、Node、内存)
npx hyperframes browser      # 管理捆绑的 Chrome
npx hyperframes info         # 版本和环境详细信息
npx hyperframes upgrade      # 检查更新

如果渲染失败,请先运行 doctor。常见问题:缺少 FFmpeg、缺少 Chrome、内存不足。

其他

npx hyperframes compositions   # 列出项目中的合成
npx hyperframes docs           # 打开文档
npx hyperframes benchmark .    # 基准测试渲染性能

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

zroeschen/Video-Production-Factory

Agent 2 of the video editing pipeline. Finds and removes spoken mistakes — stutters, repeated words, false starts, and retakes (re-recorded lines) — from a talking-head recording. Use after cut-silences, when asked to cut mistakes, remove stutters / repeats / filler restarts, clean up flubs, or keep the best take. Works review-gated: it proposes every cut with context and a reason for approval, then renders only the approved cuts via ffmpeg. Requires a word-level transcript.

zroeschen/Video-Production-Factory

Agent 1 of the video editing pipeline. Removes silences and dead air from a talking-head recording. Use when asked to cut silences, trim pauses, remove dead air / gaps, or tighten the pacing of a raw video, given a word-level transcript. Produces an edit list (EDL), a re-timed transcript for downstream agents, and optionally the cut video via ffmpeg. Does NOT cut mistakes, repeats, or false starts — that is the cut-mistakes agent.

zroeschen/Video-Production-Factory

Edit a raw talking-head video through transcription, silence trimming, mistake review, visual storytelling, motion graphics, and verified HyperFrames rendering. Use for a complete edit; route a single requested operation directly to its specialist skill.

zroeschen/Video-Production-Factory

GSAP animation reference for HyperFrames. Covers gsap.to(), from(), fromTo(), easing, stagger, defaults, timelines (gsap.timeline(), position parameter, labels, nesting, playback), and performance (transforms, will-change, quickTo). Use when writing GSAP animations in HyperFrames compositions.

相关技能