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 # info レベルの結果も表示
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 | フラグ | オフ | 再現可能な出力 |
--gpu | フラグ | オフ | GPU アクセラレーションエンコード |
--strict | フラグ | オフ | リントエラーで失敗 |
--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
テキスト読み上げ (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 . # レンダリングパフォーマンスのベンチマーク