Communitygithub.com

Reel 匯出

將任何橫向或方形動態影片轉換為 1080x1920 的 Instagram Reel 或 TikTok 影片,確保上傳後畫質清晰。標題與Logo落在安全區域內,採用 H.264、yuv420p、limited colour range、bt709,無聲音時加入靜音音軌,並在上傳前以 ffprobe 檢查。

Reel 匯出 是什麼?

Reel 匯出是一款專為開發者與內容創作者設計的 AI 技能,能將任何橫向或方形的 MP4 影片自動轉成垂直的 1080x1920 Reel 或 TikTok 格式。它會根據品牌文件(brand.md)中的色碼、字型與 Logo 來生成帶有安全區域的疊加層(overlay),確保標題與 Logo 落在螢幕安全區內(y 360 至 1420、避開右側 120px),並在影片上方加上兩行鉤子標語。此技能支援 ffmpeg 與 ffprobe 工作流程,會強制輸出 H.264、yuv420p、bt709、limited colour range 的檔案,並在無原始音訊時加入靜音 AAC 音軌,最後再以 ffprobe 驗證格式正確性,能有效避免因上傳 HEVC 或 full range 影片而造成的顏色失真或二次編碼問題。支援 Claude Code、Codex 等 AI 代理,可直接在終端機執行。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/charlie947/motion-graphics-skills/tree/main/skills/reel-export

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Reel 匯出 是做什麼的?

大多數動態影片都是以寬螢幕建構的。這項工具能將它轉換為垂直格式,並在頂端加上鉤子,讓應用程式接受時不會破壞顏色。

開始之前: 如果存在,請閱讀 brand.md 與 MOTION.md。如果不存在,請先執行 brand-intake,或詢問十六進位色碼、字型及 Logo 檔案。在沒有這些資料的情況下,永遠不要稱呼結果為「符合品牌」。

步驟 1:詢問四項資訊,然後等待

  1. 影片。 任何 MP4,任何尺寸。
  2. 標題(headline), 兩行簡短文字,一字不差。這是人們在關掉聲音時會閱讀的鉤子。
  3. Logo, 作為附加檔案,如果影片中提到了產品或公司名稱。
  4. 背景顏色(環繞影片的區域)。預設值:接近黑色 #0B0B0F。

步驟 2:安全區域

應用程式會在自己的按鈕、字幕與個人檔案上繪製內容,覆蓋到 Reel 的邊緣。請將每個文字與 Logo 保持在:

  • 位於 y 360 與 y 1420 之間(底部 500px 不要放置任何內容)
  • 避開右側 120px

將標題放在該區域的頂端,影片放在其下方。將 16:9 影片縮放至寬度 1080 後,高度為 608,因此適合放在 y 660 的位置。

步驟 3:建構疊加層,然後編碼

在 HTML 中建立一個透明的 1080 x 1920 overlay.png,包含標題與任何 Logo,然後截圖。可設定樣式的文字優於由 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,加上一個 aac 音訊串流。如果你看到 hevc 或 color_range=pc,請重新編碼。然後從中間抽取一個畫格,以手機大小檢視。

我從經驗中學到的教訓

  • 手機錄影通常是 HEVC 與 full range。 直接上傳可能會導致顏色變淡或遭到不良重新編碼。請務必匯出全新的 H.264、limited-range 檔案,包括在進行任何編輯之後。
  • Logo 放在影片畫面上時,會在淺色背景中消失。 請將每個 Logo(及其標籤)放在獨立的深色圓角磚塊上。
  • faststart 很重要。 缺少 -movflags +faststart 時,檔案必須完整載入後才能開始播放。
  • 將鉤子限制在兩行。 我的鉤子夠短,一秒就能讀完:「This Mac launch」/「is 100% code」。

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

相關技能