Communitygithub.com

リール書き出し

横長または正方形の動画を1080 x 1920のInstagramリールやTikTokに変換し、色あせせずにアップロードできるようにします。ヘッドラインとロゴをセーフゾーン内に配置し、H.264、yuv420p、制限色域、bt709、無音時にはサイレントオーディオトラックを追加、アップロード前のffprobeチェックを行います。

リール書き出し とは?

リール書き出しスキルは、横長や正方形の動画を縦長の1080x1920形式に変換し、InstagramリールやTikTokに最適化するためのツールです。多くのモーションビデオは横長で作られていますが、このスキルはそれを縦長にし、上部にフックとなるヘッドラインを配置します。アプリ側で色褪せや再エンコードの問題が発生しないよう、H.264、yuv420p、制限色域(tv)、bt709カラースペースで出力し、無音トラックも自動追加します。また、アップロード前にffprobeでストリーム情報をチェックし、色域やコーデックが適切かどうかを確認します。このスキルはClaude CodeなどのAIエージェントプラットフォームで動作し、ユーザーが動画ファイル、ヘッドライン、ロゴ、背景色を指定すると、ffmpegとHTMLオーバーレイを用いて完全なリールファイルを生成します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/charlie947/motion-graphics-skills/tree/main/skills/reel-export

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

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

ドキュメント

Reel 書き出し

ほとんどのモーションビデオは横長で作られています。これを縦長ファイルに変換し、アプリが色を褪せさせずに受け入れるためのフックを上部に配置します。

開始前に: brand.md と MOTION.md が存在する場合は読んでください。存在しない場合は、最初に brand-intake を実行するか、16進カラーコード、フォント、ロゴファイルを尋ねてください。これらなしで結果をブランド準拠と呼んではいけません。

ステップ 1: 4つを尋ねてから待つ

  1. 動画ファイル。 任意のMP4、任意のサイズ。
  2. ヘッドライン。 2行の短い文章、一字一句そのまま。音を消した状態で読まれるフックです。
  3. ロゴ。 添付ファイルとして、動画が製品や会社を名指しする場合。
  4. 動画周りの背景色。 デフォルト: ニアブラック #0B0B0F。

ステップ 2: セーフゾーン

アプリはリールの端に独自のボタン、キャプション、プロフィールを描画します。すべての文字とロゴは以下の範囲に収めてください:

  • y 360 から y 1420 の間(下部500ピクセルには何も配置しない)
  • 右端120ピクセルから外側

ヘッドラインをそのゾーンの上部に配置し、その下に動画を配置します。16:9の動画を1080幅にスケールすると高さは608になり、y 660に配置すると収まります。

ステップ 3: オーバーレイを作成してからエンコード

HTMLで1080 x 1920の透明な overlay.png を作成し(ヘッドラインとロゴを含む)、スクリーンショットを撮ります。スタイル可能なテキストは、ffmpegで焼き付けたテキストより優れています。その後:

ffmpeg -y -i in.mp4 -loop 1 -i overlay.png -f lavfi -i anullsrc=r=48000:cl=stereo -filter_complex "color=c=0x0B0B0F:s=1080x1920:r=30[bg];[0:v]fps=30,scale=1080:-2,setsar=1[v];[bg][v]overlay=0:660:shortest=1[o];[o][1:v]overlay=0:0:shortest=1,scale=out_color_matrix=bt709:out_range=tv,format=yuv420p[out]" -map "[out]" -map 2:a -shortest -c:v libx264 -profile:v high -crf 18 -pix_fmt yuv420p -color_range tv -colorspace bt709 -color_primaries bt709 -color_trc bt709 -c:a aac -b:a 128k -movflags +faststart reel.mp4

これによりサイレントAACトラックが追加されます。動画に元の音声がある場合は、-map 2:a を -map 0:a に置き換えてください。

ステップ 4: アップロード前にチェック

ffprobe -v error -show_entries stream=codec_type,codec_name,width,height,pix_fmt,color_range,color_space -of compact reel.mp4

合格条件: 動画が h264、1080 x 1920、yuv420p、color_range=tv、bt709、さらに1つの aac オーディオストリーム。hevc や color_range=pc が表示されたら、再度エンコードしてください。その後、中央付近の1フレームを抽出し、スマホサイズで確認します。

苦労して学んだこと

  • スマホで撮影した動画はHEVCかつフルレンジであることが多い。 そのままアップロードすると、色褪せたり、再エンコードが不適切になることがあります。編集後も含め、常に新しいH.264、制限レンジのファイルを書き出してください。
  • 映像の上にロゴを重ねると、明るいフレームで消えて見える。 各ロゴ(とラベル)は、暗い角丸タイルの上に配置してください。
  • faststartは重要です。 -movflags +faststart がないと、ファイルが完全に読み込まれるまで再生を開始できません。
  • フックは2行に抑える。 私のものは1秒で読める短さでした:「このMacの発表」/「100%コード」

Individual skills in this repo

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

animated-chart

Make a looping animated chart for LinkedIn or a newsletter in code with Claude Code. Bars that become a line, a number that counts up, a before and after. Every value stays exactly as given. Use when someone says

apple-launch-film

Rebuild an Apple-style Mac launch film entirely in code with Claude Code. A thin menu bar, the black notch growing into widgets one scene at a time, full-screen gradient wallpapers and one short caption per scene. No screen recording, no After Effects. Use when someone says

brand-intake

The setup step every other skill in this pack reads. A short interview plus 3 to 5 reference frames becomes two files in your project, brand.md (who you are, what you sell, your assets) and MOTION.md (your colours, type, timing and motion rules), plus a rule in CLAUDE.md so Claude reads them before it animates anything. Use at the start of any motion project, or when someone says

launch-video

Make a 30-45 second product launch video in code with Claude Code, the kind SaaS companies post on launch day. One sentence split across scenes, real product screens with slow camera moves, a typed prompt, a proof beat and a clear call to action. Use when someone says

loop-cover

Turn a newsletter or blog cover into a seamless looping GIF at 896 x 640, 180 frames at 20fps. Only the one element you name moves, the loop is rotated so frame 1 shows the finished picture, and the seam is measured, not eyeballed. Use when someone says

milestone-reveal

Make a 12-second looping milestone clip in code with Claude Code. Thousands of tiny points drift like a night sky, pull together into your real number (followers, subscribers, revenue, customers), a line draws underneath and the label settles in. Premium, not a party. Use when someone says

model-showdown

Give the same motion brief to three AI models, keep each first try, render all three the same way and stack them into one comparison video with model names and logos. Makes a 16:9 side-by-side for a newsletter and a 1080 x 1920 stacked reel for Instagram and TikTok. Use when someone says

motion-brief-writer

Turns a rough idea for an animated graphic into a precise build brief for Claude Code, in your own brand. Asks for anything essential first (exact numbers, size, length, brand), keeps real results apart from sample data, and never invents a figure. Use when someone says

motion-effects

Build any of 16 premium motion effects from scratch in your own brand, as one 8-second looping HTML file with window.seek(seconds) so it exports frame-exact to MP4 or GIF. Interfaces (button to player, search to results, card to workspace, tabs to panels), data (chart morph, dashboard zoom, spring stack, magnetic dock), type (masked type, elastic type, text to layout, image reveal) and systems (perspective shift, glass focus, flowing paths, particle logo). Use when someone says

motion-prompt-writer

Write a complete 8-part Claude Motion prompt (The bar, Format, The one rule, Look, Motion, Never, Before you finish, The scene) for one short looping motion graphic, in your own brand. Takes your brand (a website screenshot, a logo, hex codes, or nothing for the Apple-style default) and one moment you want to show, in plain words. Use when someone says

newsletter-promo

Turn a newsletter edition into a 12-20 second promo clip for LinkedIn, Instagram or X that drives people to read and subscribe. Hook question, three proof frames from the edition, then the newsletter name and where to read it. Use when someone says

reference-to-motion

Turn references you admire into a scene-by-scene Claude Motion prompt for your own topic and brand. Takes a video for the moves (screenshots, frames or a contact sheet of a reel or ad) and, optionally, a look reference for the style (a website, a brand, a moodboard). Use when someone says

title-sequence-3d

Make a cinematic 3D title sequence (8-15 seconds) in code with Claude Code and Three.js. A camera moves through a lit scene, such as a rainy street at night with brand names as neon signs, then a big question or title lands. Use when someone wants a scroll-stopping opener, a film-style intro,

vox-explainer

Make a short Vox-style documentary explainer (30-60 seconds) entirely in code with Claude Code. Torn paper, halftone texture, bold condensed type, motion on twos. Use when someone says

関連スキル