Communitygithub.com

Andersonlimahw/lemon-ai-hub

既存の動画を編集し、納品前に任意のレンダリングを検証します — 再カット、トリミング、別のアスペクト比へのリフレーム、字幕の焼き込みまたはソフト添付、オーディオの差し替え・リミックス、ループ、エクスポートに加え、QCゲート(プローブ、コンタクトシート、ビート単位の静止画、ラウドネス、ループシーム、可読性、事実確認、PIIチェック)を実行します。映像素材の編集や、モーションビデオの最終チェックに使用します。

lemon-ai-hub とは?

このスキルは、FFmpegを用いた動画編集と、納品前の品質管理(QC)を統合的に行うためのツールです。ユーザーは、トリミング、結合、アスペクト比の変更、字幕の焼き込み・添付、オーディオの差し替えやサイドチェイン圧縮、ラウドネス正規化など、一般的な編集レシピをFFmpegコマンドとして実行できます。編集は元ファイルを変更せず、常に新しいファイルとして出力する安全なワークフローを推奨します。QC機能では、プローブによるメタデータ確認、コンタクトシートやビート単位の静止画生成、ラウドネス測定、ループシームの検査など、多岐にわたるゲートを提供します。各ゲートの合格基準は仕様、ストーリー、連続性、リズム、可読性、ブランド、事実、安全性、音声、アクセシビリティ、ループ、決定論の12項目で定義され、それぞれ証拠と共に合否を報告します。このスキールはClaude CodeやCursorなどのAIエージェント向けに設計されており、開発者は自然言語で編集・QC指示を出すだけで、AIが適切なコマンドを生成・実行できます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Andersonlimahw/lemon-ai-hub/tree/HEAD/plugins/motion-movie-expert/skills/video-edit-qc

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

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

ドキュメント

動画編集 & QC

決してインプレース編集は行わないでください。出力は新しいファイル(*_v2.mp4、renders/)に書き出し、ソースはそのまま保持し、上書きや削除の前には必ず確認してください。

編集レシピ(FFmpeg)

# 再エンコードなしでトリミング(キーフレームでカット)/ 再エンコードありでフレーム正確にトリミング
ffmpeg -ss 00:00:05 -to 00:00:20 -i in.mp4 -c copy out.mp4
ffmpeg -i in.mp4 -ss 5 -to 20 -c:v libx264 -crf 16 -c:a aac out.mp4

# 同一コーデックのクリップを連結
printf "file '%s'\n" a.mp4 b.mp4 > list.txt && ffmpeg -f concat -safe 0 -i list.txt -c copy out.mp4

# 16:9 → 9:16 に被写体を中心にリフレーム(CXはピクセル値); 可能な場合はデザインを再構成することを推奨
ffmpeg -i in.mp4 -vf "crop=ih*9/16:ih:CX-ih*9/32:0,scale=1080:1920" -c:a copy out_9x16.mp4

# 字幕の焼き込み(SNS向けスタイル)/ ソフトトラックとして添付
ffmpeg -i in.mp4 -vf "subtitles=captions.srt:force_style='FontName=Inter,FontSize=14,Outline=1,MarginV=60'" out.mp4
ffmpeg -i in.mp4 -i captions.srt -c copy -c:s mov_text out.mp4

# オーディオ差し替え / 音楽を声の下にダッキング / -14 LUFSに正規化
ffmpeg -i in.mp4 -i mix.wav -map 0:v -map 1:a -c:v copy -shortest out.mp4
ffmpeg -i music.wav -i vo.wav -filter_complex "[0][1]sidechaincompress=threshold=0.05:ratio=8:attack=150:release=300[m];[m][1]amix=inputs=2:normalize=0" mix.wav
ffmpeg -i mix.wav -af loudnorm=I=-14:TP=-1:LRA=11 -ar 48000 mix_norm.wav   # 最終納品時は2パス

# Web/SNS配信用エンコード(マスターから; マスター自体はCRF 16 — hyperframes-production を参照)
ffmpeg -i in.mp4 -c:v libx264 -pix_fmt yuv420p -crf 18 -preset slow -movflags +faststart -c:a aac -b:a 192k out.mp4

トーキングヘッドの再カットの場合は、トランスクリプトのタイムスタンプ(voice-video-sync)に基づいて文の区切りでカットし、カットが目立たない場合にのみフィラーを削除し、各カットに80〜150ミリ秒のルームトーンを残してください。デザインされたモーションをリフレームする場合は、クロップではなく元のプロジェクトでアスペクト比ごとに再構成することを推奨します。

QCゲート

プロジェクトディレクトリから実行します(QC=<plugin-root>/scripts/qc.sh):

$QC probe    final.mp4                  # コーデック、サイズ、fps、長さ、オーディオの有無
$QC sheet    final.mp4 qc/sheet.png 4 4 # コンタクトシート(全体を読み取るため)
$QC stills   final.mp4 qc/ 0.5 3 7.5    # ストーリーボードのビートごとに1枚の静止画; 末尾を超えると失敗
$QC loudness final.mp4                  # -14 ±1 LUFS(放送の場合は -23)、トゥルーピーク <= -1 dBTP
$QC loop     final.mp4                  # ループのみ: シームが通常のフレームステップのように見えること

次に、静止画とシートをストーリーボードと照らし合わせてレビューします:

ゲート合格条件
仕様解像度、fps、長さ、コーデックがすべてのアスペクト比でブリーフと一致すること
ストーリー音声をオフにしても理解できること; 最初の2秒で価値やフックが伝わること
連続性すべてのカットにキャリアー(つなぎ)があること; 無関係な画面間のクロスフェードがないこと; ピンポンシームがないこと
リズムキーアクションがビートに合っていること; デッドフレームがないこと; 動機のない3秒以上の静止がないこと
可読性テキストのクリップや重なりがないこと; キャプションはセーフエリア内で2行以下; モーションブラーでも数字が読めること
ブランドサンプリングされた色がトークンと一致すること; 正しいフォントとアイコンセットを使用していること; 再設計がないこと
事実画面上の数字や主張はすべてストーリーボードの事実リストに含まれていること
安全性PIIがないこと; 許可なく実際のサードパーティブランドを使用していないこと; ライセンスとクレジットが存在すること
音声ラウドネスとトゥルーピークが範囲内であること; SFXは音楽の下; VOは音楽の上で明瞭であること
アクセシビリティ1秒あたり3回以下のフラッシュ; キャプションが話し言葉と一致していること
ループリクエストされた場合、シームが qc.sh loop に合格すること
決定論同じタイムスタンプで2回レンダリングした結果が同一であること(3フレームをスポットチェック)

各ゲートを合格/不合格/未チェックとして、証拠のパス(静止画、シート、コマンド出力)と共に報告してください。不合格はソースで修正し、再レンダリングしてください。最終エンコードでごまかさないでください。長い動画の場合は、QCをチャプターごとに分割し、チャプターごとに motion-qc エージェントを並行して使用してください。

Individual skills in this repo

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

Andersonlimahw/lemon-ai-hub

When the user wants to plan a product launch, feature announcement, or release strategy. Also use when the user mentions 'launch,' 'Product Hunt,' 'feature release,' 'announcement,' 'go-to-market,' 'beta launch,' 'early access,' 'waitlist,' 'product update,' 'how do I launch this,' 'launch checklist,' 'GTM plan,' or 'we're about to ship.' Use this whenever someone is preparing to release something publicly. For ongoing marketing after launch, see marketing-ideas. For the offer being launched (bonuses, guarantees, scarcity, naming), see offers.

Andersonlimahw/lemon-ai-hub

Create and edit motion videos end to end — product motion films, motion graphics, narrated explainers, captioned clips, UI animation recreations, and recuts. Orchestrates brief, storyboard, choreography, build (HyperFrames or any deterministic renderer), voice/caption sync, and render QC. Use when the user asks to make, animate, storyboard, narrate, caption, edit, or render a video or motion piece; skip for static images and web UI work with no video deliverable.

Andersonlimahw/lemon-ai-hub

Build and render a deterministic video composition — HyperFrames (HTML + GSAP) by default, or a custom seek(t) + Playwright + FFmpeg pipeline. Covers project setup, composition contract, timeline rules, creative direction for frames, lint/check/snapshot, preview, and local render. Use when implementing an approved storyboard as code.

Andersonlimahw/lemon-ai-hub

Motion law for multi-scene videos — seam continuity (axis, direction, speed, phase), carriers, causal motion, springs and timing, camera, transitions, stillness, and loop design. Use when planning or fixing how scenes connect and move, before and during any animation build.

Andersonlimahw/lemon-ai-hub

Short design-led motion graphics where motion is the message — kinetic typography, stat count-up, chart/data-viz reveal, logo sting, lower third or callout, animated map, tweet/news/headline card, webpage or UI walkthrough, and image-plus-data fusion. Usually under 10 s, up to about 30 s, no narration; renders to MP4 or a transparent overlay. Use when the user wants a short motion graphic, animated stat/chart/logo/map/card, or overlay; when the upstream HyperFrames `motion-graphics` skill is installed, use it for exact CLI flags and registry blocks.

Andersonlimahw/lemon-ai-hub

Turn a video idea, product, or script into an approved master prompt and pre-implementation storyboard — intake, concept, 8–12 state sequence, beat grid, transition map, camera plan, audio cue plan, and render architecture. Use before building any new video, or when a video brief is vague.

Andersonlimahw/lemon-ai-hub

Motion tokens, spring presets, and React/Next.js (motion/react) interaction patterns for product UI that appears in a video — rebuilding real product screens faithfully, animating them as seekable scenes, and keeping the live product's motion consistent with the film. Use when a motion video shows or recreates product UI; for web UI work with no video deliverable use design-expert instead.

Andersonlimahw/lemon-ai-hub

Synchronize narration, captions, music, and SFX with picture — narration writing, script lock, TTS or recorded voiceover, word-level timestamps, caption blocks, shot windows derived from the voice track, dwell budgets, ducking, and loudness targets. Use for narrated explainers, voiceover changes, subtitles, or any video where timing must follow audio.

Andersonlimahw/lemon-ai-hub

Agent skill at plugins/video/SKILL.md

関連スキル