Skip to content
Documentation
Skill

/video-editor

TikTok/YouTube向け動画編集スキル。ffmpegでキャプション焼き込み、 Ken Burnsエフェクト、シーン結合、音声合成を行う。 scenes.jsonから自動的に編集指示を読み取り最終動画を出力する。 Remotionコンポーネントも同梱(ローカル環境用)。 「動画編集」「キャプション追加」「テロップ付き動画」等で発動。

From plugin
ai-agent-camp
349101 skills8 agents200 commands

Claude Code

$ npx -y skills add minicoohei/ai-agent-camp --skill video-editor --agent claude-code

SKILL.md

video-editor.SKILL.md
name: video-editor
description: "TikTok/YouTube向け動画編集スキル。ffmpegでキャプション焼き込み、 Ken Burnsエフェクト、シーン結合、音声合成を行う。 scenes.jsonから自動的に編集指示を読み取り最終動画を出力する。 Remotionコンポーネントも同梱(ローカル環境用)。 「動画編集」「キャプション追加」「テロップ付き動画」等で発動。"
triggers:
  - 動画を編集
  - キャプションを追加
  - テロップ付き動画を作成
  - シーンを結合
  - 動画を書き出し
  - video-editor
  - ffmpeg 編集

Video Editor

scenes.json + フレーム画像/動画クリップから最終動画を生成する。

2つの実行モード

🟢 ffmpegモード(サンドボックス対応・推奨)

Chromium不要。サンドボックスでも動作する。

python skills/video-editor/scripts/compose_video.py \
  --storyboard-dir output/storyboard/YYYYMMDD_session \
  --captions \
  --output output/final_tiktok.mp4

🔵 Remotionモード(ローカル環境用)

Chromium + Node.js必要。より高度なアニメーション。

npx remotion render TikTokVideo --output=out/tiktok_video.mp4 --root=remotion-editor/src/Root.tsx

ffmpegパイプライン

1. 素材準備

scenes.json → 各フレームのmotion_type確認
  i2v        → video/{frame}_i2v.mp4 を使用
  ken_burns  → ffmpeg zoompan フィルターで画像→動画
  static     → ffmpeg loop で画像→動画
  motion_graphics → ffmpeg で画像→動画(将来テキストアニメ追加)

2. 正規化

全クリップを統一仕様に:

  • 解像度: 1080×1920 (9:16) or 1920×1080 (16:9)
  • FPS: 30
  • コーデック: h264 / yuv420p
  • 横向きi2V動画 → ぼかし背景付き縦型に変換

3. キャプション焼き込み(drawtext)

ffmpeg -i clip.mp4 -vf "drawtext=text='テキスト':fontfile=/path/to/NotoSansJP-Bold.otf:\
  fontsize=64:fontcolor=white:borderw=3:bordercolor=black:\
  x=(w-text_w)/2:y=h*0.58" output.mp4

キャプション仕様: | 項目 | TikTok推奨 | |------|-----------| | フォントサイズ | 54-76px (画面幅の5-7%) | | 文字数/行 | 日本語5-8文字 / 英語2-3語 | | 最大行数 | 2行 | | フォント | Noto Sans JP Bold | | 色 | 白 + 黒ストローク(3px) + シャドウ | | 位置 | Y: 55-65% (TikTokセーフゾーン内) |

4. 結合

ffmpeg -f concat -safe 0 -i concat.txt -c:v libx264 -pix_fmt yuv420p final.mp4

5. 音声合成(オプション)

ffmpeg -i video.mp4 -i narration.mp3 -c:v copy -c:a aac -shortest final_with_audio.mp4

TikTokセーフゾーン

┌─────────────────────┐
│  ⚠️ 上15% 避ける     │ ← ユーザー名/フォローボタン
├─────────────────────┤
│   メインコンテンツ    │
│  ┌───────────────┐  │
│  │ キャプション    │  │ ← Y: 55-65%
│  └───────────────┘  │
├─────────────────────┤
│  ⚠️ 下20% 避ける     │ ← いいね/コメント/シェア
└─────────────────────┘

scenes.json フォーマット

{
  "title": "動画タイトル",
  "scenes": [
    {
      "frame_number": 1,
      "timestamp": "0:00-0:02",
      "motion_type": "i2v | ken_burns | static | motion_graphics",
      "narration": "ナレーション台本",
      "text_overlay": {
        "main_text": "メインテロップ",
        "sub_text": "サブテロップ",
        "position": "top | center | bottom",
        "style": "bold | subtitle | minimal"
      }
    }
  ]
}

依存

  • ffmpeg (静的バイナリ: `.bin/ffmpeg`)
  • Python 3.11+ (compose_video.py)
  • Noto Sans JP フォント(キャプション用)

Remotionコンポーネント(ローカル用)

remotion-editor/src/
  components/
    Caption.tsx    # TikTok最適キャプション(日本語改行、pop-inアニメ)
    KenBurns.tsx   # Ken Burns zoom/pan エフェクト
  compositions/
    TikTokVideo.tsx # 9:16 メインコンポジション
  Root.tsx         # エントリポイント

関連スキル

  • `storyboard-generator` — 入力素材(frames + scenes.json)
  • `content-creator` — コンテンツ企画
  • `post-publisher` — 投稿・配信
Read more
@minicoohei
Ships withai-agent-camp

AI Agent Training for Non-Engineers - Complete Guide to Claude Code / Cursor / Codex ### ⚠️ Before you clone Official repository (maintained by the authors): Running AI agents from this repo grants them shell, file-write, and external-API permissions on your

349101 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
349
Star history of minicoohei/ai-agent-camp on GitHub, a chart by star-history.com

Other skills on ai-agent-camp.

ab-test-setup

ab-test-setup

A/Bテストや実験の設計・実装を支援するスキル。 「A/Bテストを設計して」「スプリットテストしたい」「仮説を立ててテストしたい」「バリアントを比較」等のリクエストで発動。 トラッキング実装は analytics-tracking を参照。

agent-designer

agent-designer

マルチエージェントシステムのアーキテクチャ設計ツールキット。 「エージェントを設計して」「マルチエージェント構成」「エージェントのアーキテクチャ」「オーケストレーション設計」等のリクエストで発動。

analytics-tracking

analytics-tracking

アナリティクスのトラッキング設定・改善・監査を支援するスキル。 「トラッキングを設定」「GA4を導入」「コンバージョン計測」「イベントトラッキング」「UTMパラメータ」「GTMの設定」等のリクエストで発動。 A/Bテスト計測は ab-test-setup…

article-writer

article-writer

テーマからアウトライン生成→文体プロファイル適用→Markdown記事出力を行う記事執筆スキル。 挿絵マーカーの自動挿入、style-analyzerプロファイル参照による文体統一に対応。…

banner-creator

banner-creator

各種SNS・広告プラットフォーム向けのバナー/クリエイティブを生成するスキル。 X, Facebook, Instagram, PRTimes, YouTube, LINE, Web広告に対応。…

bigquery-auth

bigquery-auth

GCPプロジェクト単位でBigQuery認証を設定するスキル。 gcloud設定プロファイルで複数プロジェクトを安全に分離管理。 「BigQueryに繋ぎたい」「BQ認証」「gcloud認証」「データ分析の認証設定」等のリクエストで発動。

More skills from other plugins.

context7-cli

context7-cli

Use the ctx7 CLI to fetch library documentation and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7",…

@upstash@upstashInstall Skill
docs-components

docs-components

Comprehensive MDX component patterns (Note, Pitfall, DeepDive, Recipes, etc.) for all documentation types. Authoritative source…

@reactjs@reactjsInstall Skill
codebase-wiki

codebase-wiki

How to work in a Codebase Wiki project (the `codebase-wiki` starter pack): an agent-authored, source-grounded wiki of the…

@inkeep@inkeepInstall Skill

Questions about video-editor.

Which coding agents can use video-editor?
video-editor installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.