Communitygithub.com

DansiDanutz/Video-Editor

AI支援によるビデオ編集ワークフロー:カット、構造化、実写映像の拡張を実現。FFmpeg、Remotion、ElevenLabs、fal.ai、そしてDescriptやCapCutによる最終仕上げまでをカバーします。ユーザーが動画編集、映像カット、vlog作成、ビデオコンテンツ制作を望む場合に使用します。

Video-Editor とは?

このスキルは、AI支援による実写映像の編集ワークフローを提供します。プロンプトからの動画生成ではなく、既存の映像を高速にカット、構造化、拡張することに重点を置いています。主なパイプラインは、Screen Studioなどでのキャプチャ、Claude/Codexによる構造化・設計、FFmpegによる決定論的なカット、Remotionによるプログラム可能な合成、ElevenLabs/fal.aiによる必要なアセットの生成、そしてDescriptやCapCutでの最終仕上げという6つのレイヤーで構成されます。各ツールの得意分野を活かし、レイヤーを飛ばさずに段階的に進めることで、効率的で高品質な編集を実現します。特に、長時間の録画から短尺コンテンツを作成する場合や、vlog、チュートリアル、デモ動画を制作する場合に有効です。

対応✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/DansiDanutz/Video-Editor/tree/HEAD/.claude/skills/video-editing

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

プレビュー

スキル README より

ドキュメント

ビデオ編集

AI支援による実写映像の編集。プロンプトからの生成ではありません。既存の動画を高速に編集します。

アクティベート条件

  • ユーザーが映像の編集、カット、構造化を望んでいる
  • 長い録画を短尺コンテンツに変換する
  • 生のキャプチャからvlog、チュートリアル、デモ動画を作成する
  • 既存の動画にオーバーレイ、字幕、音楽、ナレーションを追加する
  • 異なるプラットフォーム(YouTube、TikTok、Instagram)向けに映像をリフレームする
  • ユーザーが「動画を編集」「この映像をカット」「vlogを作成」「動画ワークフロー」と言った場合

中核となる考え方

AI動画編集は、動画全体を生成させるのではなく、実写映像の圧縮、構造化、拡張に使うことで真価を発揮します。価値は生成ではなく、圧縮にあります。

パイプライン

計測可能なリファレンス駆動の作業では、taste-distillationをtaste-applicationにチェーンし、その後エディタと最終出力レビューのためにここに戻ります。スタンドアロンのテイストスキルは既存の映像を使用できます。生成はオプションです。

ライブエディタやDAWの変更を行う前に、バージョン管理されたプロジェクトチェックポイントを保存し、ファイルが存在することを確認します。変更後にもう一度チェックポイントを保存して確認します。APIの読み返しは、現在のメモリ内の状態を証明するだけで、保存されたことを証明しません。レンダリングされたメディア、編集可能なプロジェクト、クリエイティブ承認は、引き継ぎ時に個別の状態として保持します。

MIDI駆動のオーディオについては、受信ラックのノートマッピングに対してピッチを確認し、結果を試聴します。クリップ作成が成功しても、無音になる可能性があります。再構築されたプロジェクトについては、ネイティブロードとセーブで検証し、イベントをタイムライン順にソートし、サンプルリンクとミュート状態を確認し、エクスポートされた正確なオーディオに予期せぬ無音がないか確認して試聴します。XML解析だけでは、DAWがすべてのクリップを受け入れたり、可聴出力を生成したりしたことは証明できません。

新しいコマンドを呼び出す前に、ブリッジの機能ハンドシェイクを確認します。クリエイティブタスクの副作用としてアップロードやトレーニングデータのテレメトリを有効にしないでください。同意や機能がない場合は、サポートされているローカル制御パスを使用します。

Screen Studio / 生の映像
  → Claude / Codex
  → FFmpeg
  → Remotion
  → ElevenLabs / fal.ai
  → Descript または CapCut

各レイヤーには特定の役割があります。レイヤーを飛ばさないでください。1つのツールですべてをやろうとしないでください。

レイヤー1: キャプチャ(Screen Studio / 生の映像)

ソース素材を収集します。

  • Screen Studio: アプリデモ、コーディングセッション、ブラウザワークフロー向けの洗練されたスクリーンレコーディング
  • 生のカメラ映像: vlog映像、インタビュー、イベント録画
  • VideoDBによるデスクトップキャプチャ: リアルタイムコンテキスト付きのセッション録画(videodbスキルを参照)

出力: 整理待ちの生ファイル。

レイヤー2: 構成(Claude / Codex)

Claude CodeまたはCodexを使用して:

  • 文字起こしとラベル付け: トランスクリプトを生成し、トピックやテーマを特定
  • 構造の計画: 何を残すか、何をカットするか、どの順序が最適かを決定
  • 無駄な部分の特定: 間、脱線、テイクの繰り返しを見つける
  • 編集決定リストの生成: カットのタイムスタンプ、保持するセグメント
  • FFmpegとRemotionコードのスキャフォールディング: コマンドとコンポジションを生成
プロンプト例:
「こちらが4時間の録画のトランスクリプトです。24分のvlogに最適な8つのセグメントを特定してください。各セグメントのFFmpegカットコマンドを教えてください。」

このレイヤーは構造に関するものであり、最終的なクリエイティブなテイストではありません。

レイヤー3: 決定論的カット(FFmpeg)

FFmpegは、分割、トリミング、結合、前処理といった退屈だが重要な作業を担当します。

タイムスタンプでセグメントを抽出

ffmpeg -i raw.mp4 -ss 00:12:30 -to 00:15:45 -c copy segment_01.mp4

編集決定リストから一括カット

#!/bin/bash
# cuts.txt: start,end,label
while IFS=, read -r start end label; do
  ffmpeg -i raw.mp4 -ss "$start" -to "$end" -c copy "segments/${label}.mp4"
done < cuts.txt

セグメントの連結

# ファイルリストを作成
for f in segments/*.mp4; do echo "file '$f'"; done > concat.txt
ffmpeg -f concat -safe 0 -i concat.txt -c copy assembled.mp4

編集高速化のためのプロキシ作成

ffmpeg -i raw.mp4 -vf "scale=960:-2" -c:v libx264 -preset ultrafast -crf 28 proxy.mp4

文字起こし用の音声抽出

ffmpeg -i raw.mp4 -vn -acodec pcm_s16le -ar 16000 audio.wav

オーディオレベルの正規化

ffmpeg -i segment.mp4 -af loudnorm=I=-16:TP=-1.5:LRA=11 -c:v copy normalized.mp4

レイヤー4: プログラム可能なコンポジション(Remotion)

Remotionは編集の問題をコードで解決可能にします。従来のエディタでは煩雑な作業に使用します。

Remotionを使用するタイミング

  • オーバーレイ: テキスト、画像、ブランディング、ローワーサード
  • データ可視化: チャート、統計、アニメーション数字
  • モーショングラフィックス: トランジション、説明アニメーション
  • 構成可能なシーン: 動画間で再利用可能なテンプレート
  • プロダクトデモ: 注釈付きスクリーンショット、UIハイライト

基本的なRemotionコンポジション

import { AbsoluteFill, Sequence, Video, useCurrentFrame } from "remotion";

export const VlogComposition: React.FC = () => {
  const frame = useCurrentFrame();

  return (
    <AbsoluteFill>
      {/* メイン映像 */}
      <Sequence from={0} durationInFrames={300}>
        <Video src="/segments/intro.mp4" />
      </Sequence>

      {/* タイトルオーバーレイ */}
      <Sequence from={30} durationInFrames={90}>
        <AbsoluteFill style={{
          justifyContent: "center",
          alignItems: "center",
        }}>
          <h1 style={{
            fontSize: 72,
            color: "white",
            textShadow: "2px 2px 8px rgba(0,0,0,0.8)",
          }}>
            AI編集スタック
          </h1>
        </AbsoluteFill>
      </Sequence>

      {/* 次のセグメント */}
      <Sequence from={300} durationInFrames={450}>
        <Video src="/segments/demo.mp4" />
      </Sequence>
    </AbsoluteFill>
  );
};

出力のレンダリング

npx remotion render src/index.ts VlogComposition output.mp4

詳細なパターンとAPIリファレンスについては、Remotionドキュメントを参照してください。

レイヤー5: 生成アセット(ElevenLabs / fal.ai)

必要なものだけを生成します。動画全体を生成しないでください。

ElevenLabsでのナレーション

import os
import requests

resp = requests.post(
    f"https://api.elevenlabs.io/v1/text-to-speech/{voice_id}",
    headers={
        "xi-api-key": os.environ["ELEVENLABS_API_KEY"],
        "Content-Type": "application/json"
    },
    json={
        "text": "ここにナレーションテキスト",
        "model_id": "eleven_turbo_v2_5",
        "voice_settings": {"stability": 0.5, "similarity_boost": 0.75}
    }
)
with open("voiceover.mp3", "wb") as f:
    f.write(resp.content)

fal.aiでの音楽と効果音

fal-ai-mediaスキルを使用して:

  • 背景音楽の生成
  • 効果音(動画から音声へのThinkSoundモデル)
  • トランジション音

fal.aiでの生成ビジュアル

インサートショット、サムネイル、または存在しないBロールに使用:

generate(app_id: "fal-ai/nano-banana-pro", input_data: {
  "prompt": "professional thumbnail for tech vlog, dark background, code on screen",
  "image_size": "landscape_16_9"
})

VideoDBによる生成オーディオ

VideoDBが設定されている場合:

voiceover = coll.generate_voice(text="ここにナレーション", voice="alloy")
music = coll.generate_music(prompt="lo-fi background for coding vlog", duration=120)
sfx = coll.generate_sound_effect(prompt="subtle whoosh transition")

レイヤー6: 最終仕上げ(Descript / CapCut)

最後のレイヤーは人間が担当します。従来のエディタを使用して:

  • テンポ: 速すぎたり遅すぎたりするカットを調整
  • キャプション: 自動生成後、手動でクリーンアップ
  • カラーグレーディング: 基本的な補正と雰囲気づくり
  • 最終オーディオミックス: ナレーション、音楽、効果音のバランス調整
  • エクスポート: プラットフォーム固有のフォーマットと品質設定

ここにテイストが宿ります。AIが反復作業を排除し、最終判断はあなたが行います。

ソーシャルメディア向けリフレーミング

プラットフォームごとに異なるアスペクト比が必要です。

プラットフォームアスペクト比解像度
YouTube16:91920x1080
TikTok / Reels9:161080x1920
Instagram フィード1:11080x1080
X / Twitter16:9 または 1:11280x720 または 720x720

FFmpegでのリフレーミング

# 16:9 から 9:16(中央クロップ)
ffmpeg -i input.mp4 -vf "crop=ih*9/16:ih,scale=1080:1920" vertical.mp4

# 16:9 から 1:1(中央クロップ)
ffmpeg -i input.mp4 -vf "crop=ih:ih,scale=1080:1080" square.mp4

VideoDBでのリフレーミング

from videodb import ReframeMode

# スマートリフレーム(AIによる被写体追跡)
reframed = video.reframe(start=0, end=60, target="vertical", mode=ReframeMode.smart)

シーン検出と自動カット

FFmpegシーン検出

# シーン変化を検出(しきい値0.3 = 中程度の感度)
ffmpeg -i input.mp4 -vf "select='gt(scene,0.3)',showinfo" -vsync vfr -f null - 2>&1 | grep showinfo

無音検出による自動カット

# 無音セグメントを検出(デッドエアのカットに有用)
ffmpeg -i input.mp4 -af silencedetect=noise=-30dB:d=2 -f null - 2>&1 | grep silence

ハイライト抽出

Claudeを使用してトランスクリプトとシーンタイムスタンプを分析:

「このタイムスタンプ付きトランスクリプトとシーンチェンジポイントを基に、ソーシャルメディア向けの最も魅力的な30秒クリップを5つ特定してください。」

各ツールの得意分野

ツール強み弱み
Claude / Codex構成、計画、コード生成クリエイティブなテイストレイヤーではない
FFmpeg決定論的カット、バッチ処理、フォーマット変換ビジュアル編集UIがない
Remotionプログラム可能なオーバーレイ、構成可能なシーン、再利用可能なテンプレート開発者以外には学習曲線が高い
Screen Studio洗練されたスクリーンレコーディングを即座に提供スクリーンキャプチャのみ
ElevenLabs音声、ナレーション、音楽、効果音ワークフローの中心ではない
Descript / CapCut最終テンポ調整、キャプション、仕上げ手動、自動化不可

主要な原則

  1. 生成ではなく編集。 このワークフローは実写映像をカットするためのものであり、プロンプトから作成するものではありません。
  2. スタイルの前に構造。 視覚的なものに触れる前に、レイヤー2でストーリーを正しく組み立てます。
  3. FFmpegが基盤。 地味だが重要。長い映像を扱いやすくします。
  4. 繰り返し行うならRemotion。 複数回行う作業はRemotionコンポーネントにします。
  5. 選択的に生成。 AI生成は存在しないアセットに対してのみ使用し、すべてに使用しない。
  6. テイストは最後のレイヤー。 AIが反復作業を排除し、最終的なクリエイティブ判断はあなたが行います。

ネイティブFusionプリセット

ITO Production v1は、控えめなハイライトのブルーム、RGB空間オフセット、輝度/エッジハローを提供します。正確なファイルは、ネイティブインポート前に渡され、セーブ/リロード、2ソースのビジュアルレビュー後の短いモーションレンダリングチェックを行います。これらは開始値であり、ショット固有のレビューが必要です。ハローは被写体を検出または追跡しません。

ITO V28には、保存され、ネイティブ検証済みのFusionグラフスニペットと、冪等なLuaインストーラが含まれています。これらは技術的な互換性の例であり、推奨されるプロダクションのデフォルトではありません。文書化された視覚的な制限には、使用前に調整とテイストレビューが必要です。以前のインポートとレンダリングチェックの範囲については、バンドルの来歴を参照してください。

関連スキル

  • fal-ai-media — AI画像、動画、音声生成
  • videodb — サーバーサイド動画処理、インデックス作成、ストリーミング
  • content-engine — プラットフォームネイティブなコンテンツ配信

Individual skills in this repo

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

DansiDanutz/Video-Editor

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

DansiDanutz/Video-Editor

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

DansiDanutz/Video-Editor

Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (`<hf-audio-group>`). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`.

DansiDanutz/Video-Editor

Use the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, single or batch render, publish, cloud, cloudrun, feedback, lambda, doctor, browser, info, upgrade, skills, compositions, timeline, history, docs, benchmark, telemetry, transcribe, auth, tts, and remove-background. Also use when diagnosing build or render failures. validate, inspect, and layout are deprecated aliases; use check. Covers local, HeyGen-hosted cloud, AWS Lambda, and Google Cloud Run rendering.

DansiDanutz/Video-Editor

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

DansiDanutz/Video-Editor

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

DansiDanutz/Video-Editor

Use when a HyperFrames composition needs a punch-in, punch-out, zoom, reframe, Ken Burns treatment, camera move, visual match/whip handoff, or other seek-safe 2D/3D keyframes; also for GSAP, CSS keyframes, Anime.js, WAAPI, FLIP, paths, masks, SVG morph/draw, text trails, 3D depth, or `hyperframes keyframes` diagnostics. Don't use for broad scene strategy, brand design, media sourcing, captions, or general video planning.

DansiDanutz/Video-Editor

Search, install, and wire registry blocks and components into HyperFrames compositions. Use BEFORE hand-building any named visual — whenever a brief, a user, or a storyboard names a look, effect, treatment, or transition such as CRT scanlines, glitch, chromatic aberration, film grain, a shimmer sweep, a chart, a code or terminal window, a map, or a confetti burst — because roughly 400 hosted items already cover many of them and the search ranks all of them with nothing installed, no project, and no account. Also use when running hyperframes add or hyperframes catalog, installing one item or every block matching a tag, wiring an installed item into index.html, or working with hyperframes.json. Covers discovery, install locations, block sub-composition wiring, component snippet merging, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

DansiDanutz/Video-Editor

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.

DansiDanutz/Video-Editor

Use when building or editing a HyperFrames project that people open in Studio: how the timeline should be laid out so it reads well (one caption track, one element kind per track, every scene a sub-composition) and where captions and key content may sit (safe zones). Don't use for how to perform an individual edit (split, trim, retime, volume, copy, swap): that is `creator-editing-recipes.md` in `/hyperframes-core`.

DansiDanutz/Video-Editor

Agent Media OS, the single skill for every media need in a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal.

DansiDanutz/Video-Editor

Turn a product or marketing URL, pasted script, or brief into a product launch / promo video — SaaS promos, feature reveals, product demos, app and company launches. Use when the user wants to market, launch, promote, or reveal a product; the default for any commercial URL. Site tours / showcases of a website route here too — the brief carries the show-it-as-is intent. Unclear → /hyperframes.

DansiDanutz/Video-Editor

Divide a finished story/script into filmable scenes with per-scene image and animation prompts. Use when building a scene outline or shot list, deciding scene boundaries, durations, or what each visual must show.

関連スキル