HyperFrames CLI
すべての操作は npx hyperframes を通して実行します。Node.js >= 22 と FFmpeg が必要です。
ワークフロー
- スキャフォールディング —
npx hyperframes init my-video - 作成 — HTMLコンポジションを作成(
hyperframesスキルを参照) - リント —
npx hyperframes lint - プレビュー —
npx hyperframes preview - レンダリング —
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 | 出力パス |
--fps | 24, 30, 60 | 30 | 60fpsはレンダリング時間が2倍 |
--quality | draft, standard, high | standard | draft はイテレーション用 |
--format | mp4, webm | mp4 | WebMは透明対応 |
--workers | 1-8 または auto | auto | 各ワーカーがChromeを起動 |
--docker | フラグ | off | 再現可能な出力 |
--gpu | フラグ | off | GPUアクセラレーションエンコード |
--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
テキスト読み上げ(TTS)
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 . # レンダリングパフォーマンスのベンチマーク