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 的完整操作指南,定義了開發者或 AI 智能體如何利用 `npx hyperframes` 指令執行影片製作工作流程。它支援 Node.js >= 22 和 FFmpeg,並涵蓋從專案初始化(scaffold)、組合編寫(HTML composition)、程式碼檢查(lint)、預覽(preview)到最終渲染(render)的完整生命週期。此外,還包含音訊轉錄(transcribe,使用 Whisper)、文字轉語音(TTS,支援多種語音)以及環境診斷(doctor、browser、info、upgrade)等輔助功能。這項技能對於需要自動化影片生成、批次處理或 CI/CD 整合的開發者特別有用,因為它提供了明確的指令選項、品質標誌(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 composition(參見 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/智能體)

模板: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/name_timestamp.mp4輸出路徑
--fps24, 30, 603060fps 會使渲染時間加倍
--qualitydraft, standard, highstandarddraft 用於迭代
--formatmp4, webmmp4WebM 支援透明度
--workers1-8 或 autoauto每個 worker 啟動一個 Chrome
--docker旗標off可重複的輸出
--gpu旗標offGPU 加速編碼
--strict旗標off遇到錯誤即失敗
--strict-all旗標off錯誤和警告都視為失敗

品質建議: 迭代時使用 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   # 列出專案中的 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.

相關技能