Communityコーディング&開発github.com

Remotion レンダリング

Remotion プロジェクトにおいて、コンポジションをMP4にレンダリングし、自然言語によるフィードバックに基づいて最小限の編集を繰り返す、高速な反復ループを実現します。

Remotion レンダリング とは?

このスキルは、Remotion を使ったビデオレンダリングの反復プロセスを効率化するためのものです。主に Claude Code, Cursor, Codex などの AI エージェントが、開発者からの指示やフィードバックに基づいて、レンダリングと編集を自動的に行うために設計されています。 スキルは、まずコンポジションIDやエントリポイント、解像度、コーデックなどの入力を収集し、`npx remotion render` コマンドを使用して基本レンダリングを実行します。その後、解像度やFPS、コーデックの調整、同時実行数のチューニング、ラムダ関数を使ったクラウドレンダリングなど、詳細な設定オプションを提供します。 最も重要な機能は「外科的編集(surgical edit)」ループです。ユーザーが自然言語でフィードバックを与えると、スキルはその意味を解釈し、変更が必要な値やプロパティのみを編集して再レンダリングを行います。これにより、すでに承認された作業を破壊することなく、迅速な反復が可能です。 また、バッチレンダリング機能も提供し、JSON ファイルで定義された複数のバリアントを一度にレンダリングできます。AWS Lambda を使用したスケーラブルなレンダリングや、フレーム数ミスマッチ、欠落アセット、フォント問題などの一般的なトラブルシューティング手順も含まれています。

対応✓Claude Code~Codex CLI~Cursor
npx skills add SkillMedev/skills

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

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

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

ドキュメント

Remotion レンダリング は何をしますか?

レンダリングと反復ループを駆動します。コンポジションをMP4に変換し、自然言語によるフィードバックを受け取り、それに対応する最小限の編集を行い、再レンダリングします。コストのかかる障害モードはその逆のループ、つまりコピーの微調整のためにシーンファイル全体を書き換えたり、確認のたびにフル品質で再レンダリングしたりすることであり、承認された作業と、Remotion を利用する価値を生み出す反復速度を損なうことになります。

操作手順

ステップ 1: 入力の収集

  • コンポジションID(src/Root.tsx 内の <Composition> の id。ファイル名ではありません)とエントリポイント(registerRoot を呼び出すファイル。通常は src/index.ts)
  • ターゲット:プラットフォーム/アスペクト比(ランドスケープ 16:9、バーティカル 9:16、スクエア)、解像度(1080p デフォルト、4K はリクエスト時のみ)、透明度の必要性
  • マシンのコア数(同時実行数用)と、これが1回のレンダリングか、反復セッションか、バッチか

ステップ 2: 基本レンダリング

npx remotion render src/index.ts <CompositionId> out/video.mp4

デフォルト出力は、コンポジション自身の幅/高さ/fps の H.264 MP4 です。Remotion は必要に応じて out/ ディレクトリを作成します。

ステップ 3: 解像度、FPS、コーデックプリセット

解像度とFPSは <Composition>(width/height/fps)にあります。ソースで変更してください。スケーリングとコンテナにはフラグのみを使用します。

# 1080p ランドスケープ - コンポジションは 1920x1080@30 で作成
npx remotion render src/index.ts ProductDemo out/1080p.mp4

# 4K - レイアウトに触れずに1080pキャンバスをアップスケール
npx remotion render src/index.ts ProductDemo out/4k.mp4 --scale=2

# 9:16 バーティカル - 1080x1920 で作成されたコンポジションをレンダリング
npx remotion render src/index.ts ProductDemoVertical out/vertical.mp4

コーデックルール:

  • ソーシャル/ウェブ配信は H.264 MP4(デフォルト)のまま - 最大の互換性。
  • 透明度: --codec=vp8 または vp9(WebM)、または編集パイプライン向けにアルファ付き --codec=prores。H.264 はアルファを伝送できません。
  • 真の60fpsは、コンポジションで fps={60} とし、フレーム数をそれに合わせてスケーリングする必要があります。フラグのみのFPS変更は、フレーム単位でタイミング設定されたすべてのアニメーションを非同期化します。

ステップ 4: 同時実行数の調整

レンダリングはCPUバウンドです(各フレームはヘッドレスChromiumのスクリーンショット)。デフォルトはおおよそコア数の半分です。明示的な調整が最も簡単なローカル高速化方法です。

npx remotion render src/index.ts ProductDemo out/video.mp4 --concurrency=8

物理コア数から始めます(--concurrency=50% はパーセンテージを受け入れます)。マシンがスワップしたりサーマルスロットリングを起こしたりする場合は減らします。最適値を超えると、より多くのChromiumタブが処理を遅くし、速くはなりません。

ステップ 5: 反復的な微調整ループを実行する

Studioを開いたままにしておき(npx remotion studio、http://localhost:3000)、ユーザーが即座にプレビューできるようにします。承認用のフルレンダリングは取っておきます。

  1. ユーザーがStudioでプレビューし、平易な言葉でフィードバックを提供します。
  2. それを外科的編集に変換します - 関連する値のみを変更します。
    • 「速すぎる」→ interpolate の入力範囲を広げるか、スプリングの damping を上げる。
    • 「ロゴをもっと目立たせたい」→ スプリングの damping を下げる / オーバーシュートを追加する。
    • 「CTAのコピーを変更」→ プロップ / defaultProps を編集し、他には触れない。
    • 「アクセントカラーを変更」→ カラーオブジェクトの一つの16進数を変更する。
    • 「最後の機能をもう少し長く表示」→ その <Sequence> の durationInFrames を増やし、コンポジションの合計 durationInFrames を再導出する。
  3. 再レンダリングするか、視覚確認のためにStudioのホットリロードに任せる。

外科的編集 vs 書き換え:変更が値、プロップ、色、または1シーンのタイミングである場合はその場で編集します。シーンの「構造」が変わる場合(シーンの追加/削除/並べ替え)のみ書き換え、構造的なオーサリングは(remotion-compose に)任せます。デフォルトは外科的編集です。すでに承認されたすべての作業が保持されます。

ステップ 6: バッチバリアント

コンポジションはデータ駆動型であるため、N個のバリアント = JSONファイル内のN個のプロップセットとなります。

[
  { "out": "out/acme.mp4",   "props": { "logoText": "Acme",   "colors": { "accent": "#6C5CE7" }, "cta": "Try Acme" } },
  { "out": "out/globex.mp4", "props": { "logoText": "Globex", "colors": { "accent": "#00B894" }, "cta": "Try Globex" } }
]

--props はインラインJSONまたはファイルパスを受け付けます。数個以上のバリアントの場合は、JSONを読み取りエントリごとにシェルアウトする小さなNodeスクリプトを作成するか、型付きループのために @remotion/renderer の renderMedia() を使用します。ローカライズやA/Bテストのためのコピーと色の変更は、JSONを編集するだけで完全に行えます。

ステップ 7: ローカルがボトルネックになったらLambda

1回のレンダリングにローカルで数分かかる場合や、バッチが大きい場合はLambdaを利用します。サーバーレスワーカー間でフレームをファンアウトします。それ以外の場合は、ローカルの方がシンプルで無料です。

npx remotion lambda functions deploy            # AWSアカウント/リージョンごとに1回
npx remotion lambda sites create src/index.ts --site-name=product-demo
npx remotion lambda render product-demo ProductDemo --props='{"logoText":"Acme"}'

RemotionのLambdaセットアップに従って、AWS認証情報とIAM権限が必要です。

ステップ 8: 3つの一般的な失敗のトラブルシューティング

  1. フレーム数不一致 - アニメーションが途中で切れたり、クリップの末尾が無駄に長くなったりする。原因: <Sequence> の期間が変更されたが、コンポジションの合計が更新されなかった。修正: 合計をそのシーケンスの合計と等しくします。タイミング編集のたびに再計算します。これはレンダリングの驚きの第1位です。
  2. staticFile() 参照の欠落 - レンダリングに失敗するか、アセットが空白になる。原因: パスでインポートされたアセット、または public/ の外部にあるアセット。修正: public/assets/ に配置し、staticFile("assets/<name>") で参照します。
  3. フォントのフラッシュ/フォールバック - テキストが間違ったフォントでレンダリングされるか、シフトする。原因: @remotion/google-fonts の loadFont() が見つからないか、呼び出しが遅すぎる。修正: モジュールのトップレベルで loadFont() を呼び出し、返された fontFamily を適用します。レンダリングはフォントを待つようになります。

成果物

out/ 内の要求されたプリセットでレンダリングされたファイル。さらに、反復セッションの場合は、ループの提案:調整可能な次元(ペーシング、コピー、色、タイミング)を挙げ、フィードバックに応じて再レンダリングします。バッチの場合は、バリアントJSONとバリアントごとの出力です。

禁止事項

  • 値レベルの変更のためにシーンファイルを書き換えてはいけません - 外科的編集は承認された作業を保持します。
  • フラグだけでFPSを変更してはいけません - コンポジションで設定し、フレーム数を再スケーリングしてください。
  • シーケンスの期間を変更したら、コンポジションの合計 durationInFrames を再導出せずに変更してはいけません。
  • すべての反復でフルレンダリングを行ってはいけません - Studioのホットリロードがプレビューループです。承認時にレンダリングします。
  • スワップやスロットリングが発生しているマシンで、物理コア数を超えて同時実行数を上げてはいけません。
  • ローカルレンダリングが数秒で完了する場合にLambdaを使用してはいけません。AWSのセットアップとコストが無駄になります。
  • ここで新しいシーンを作成したり、コンポジションを再構築したりしてはいけません。それは remotion-compose の役割です。

品質基準

  • 出力は要求された解像度/アスペクト/FPSで再生され、無駄な末尾や早期の途切れがないこと(コンポジションの合計がシーケンスの合計と一致すること)。
  • アセットとフォントが最初のフレームから正しくレンダリングされること(フォールバックフォントのフラッシュや空白のアセットがないこと)。
  • 反復はフィードバックが必要とする行のみを変更したこと。以前に承認されたすべてのものは変更されていないこと。
  • バッチ出力は、プロップセットによってのみ異なること。

エスカレーション

シーンのオーサリング、アニメーションデザイン、コンポーネント構造は remotion-compose へ。プロジェクトのスキャフォールディングは remotion-setup へ。スコアリングとオーディオタイミングは sound-and-music-sync へ。

Individual skills in this repo

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

SkillMedev/skills

Designs REST API surfaces - resource naming, HTTP method and status-code semantics, error shapes, pagination, and filtering - and delivers an endpoint spec a consumer can build against without asking questions. Use when someone asks "how should I name this endpoint", "what status code should this return", "should this be PUT or PATCH", "how do I paginate this list", or is reviewing an API before it ships to external consumers. Do NOT use for planning breaking-change rollouts and deprecation windows - use api-versioning-strategist instead; for GraphQL type and resolver design - use graphql-schema instead; for generating client SDKs from an existing spec - use api-client-generator instead; for designing inbound webhook endpoints - use webhook-receiver-hardener instead.

SkillMedev/skills

Produce an accurate, properly timed caption track (SRT or WebVTT) from a video's audio - transcribing or aligning to the voiceover script, timing cues to speech, and enforcing line-length and reading-speed rules so captions are readable and in sync. Use when someone says "generate captions", "make subtitles from the audio", "transcribe and caption this", "export an SRT or VTT", "the captions are out of sync", or "the subtitles flash by too fast to read". Do NOT use to burn-in, style, reframe, or position an existing caption track for a platform (9:16, brand styling, safe areas) - that is social-video-formatter; do NOT use to animate text word-by-word as a motion graphic - that is kinetic-typography; do NOT use to write the spoken script in the first place - that is narration-script.

SkillMedev/skills

Turns data and charts into a decision-driving narrative structured as headline finding, trend, implication, and recommended action - with finding-led chart titles, context for every number, annotation guidance, and honest flags on any conclusion the data cannot support. Use when someone says "turn these numbers into a story", "what's the takeaway from this data", "help me present these results to leadership", or has charts but no narrative. Do NOT use for compressing a long document into a one-pager - use executive-summary instead - or for running the analysis that produces the findings - use eda-playbook instead.

SkillMedev/skills

Use when a task needs live or historical money data - "convert USD to EUR", "current/past exchange rate", "FX rate on this date / over this range", or "current price of Bitcoin/Ethereum, market cap, 24h change". Frankfurter (ECB reference rates, no key) is the FX default; CoinGecko's free keyless tier covers crypto. Do NOT use for stock quotes or equities - no keyless stock API survives verification, say so instead of guessing; do NOT use for country economic indicators like GDP or inflation series - use government-open-data instead; if the request is a vague "I need live data", route through public-data-api-picker.

SkillMedev/skills

Builds a driver-based FP&A operating model linking business inputs to P&L, balance sheet, and cash flow outputs. Use when building an annual plan, preparing investor materials, running scenario analysis, or stress-testing the business.

SkillMedev/skills

Use when a task needs live geographic lookups - "geocode this address", "what's at these coordinates" (reverse geocoding), "lat/lon for this city", "which country/state is this ZIP or postal code in", or "country facts: capital, currency, population, flag". Nominatim (OpenStreetMap) is the geocoding default; Zippopotam for postal codes; APICountries for country facts. All keyless. Do NOT use for weather at a location - use weather-climate instead; do NOT use for country-level statistics over time (GDP, population trends) - use government-open-data instead; if the request is a vague "I need live data", route through public-data-api-picker.

SkillMedev/skills

Runs the full Getting Things Done loop - capture, clarify, organize, reflect, engage - building a trusted system of context lists, a projects list with defined next actions, and a weekly review habit. Use when someone says "I'm overwhelmed and things are slipping through the cracks", "set up GTD for me", "help me do a brain dump and organize it", or "my to-do list is a mess". Do NOT use for just running the weekly review ritual itself - use weekly-review instead - or for clearing an email backlog - use inbox-zero.

SkillMedev/skills

Processes any email backlog to zero using the 4Ds - Delete, Delegate, Defer, Do - with a mass-archive strategy for the obvious, a touch-each-email-once discipline, and a keep-it-clear system of batched processing windows, ruthless unsubscribing, filters, and a minimal folder setup. Use when someone says "I have 5,000 unread emails", "help me get to inbox zero", "email is eating my whole day", or treats their inbox as a to-do list. Do NOT use for drafting the reply emails themselves or prioritization rules for an ongoing support queue - use email-triage instead - or for protecting focus time around the email windows - use deep-work-planner instead.

SkillMedev/skills

Write landing-page copy section by section - hero, social proof, features-as-benefits, objections, CTA - leading with one promise and proving it down the page. Use when someone asks "write my landing page", "improve my hero headline", "what should the homepage say", "turn these features into benefits", or is shipping a new page for a launch or campaign. Do NOT use for testing and optimizing an existing page's conversion rate - use landing-page-cro instead; for the one-line claim itself use positioning-statement; for the full message ladder use messaging-hierarchy.

SkillMedev/skills

Improves an existing landing page's conversion rate through evidence-first CRO - audit heatmaps and recordings, write structured hypotheses, prioritize with ICE scoring, and run one-variable tests to statistical significance. Use when someone asks "why isn't my landing page converting", "audit this page before we scale spend", "which A/B test should we run first", or after a CVR drop or ahead of a paid-traffic push. Do NOT use for writing a new landing page from scratch - use landing-page-copy instead. Do NOT use for auditing the ad accounts sending the traffic - use paid-acquisition-audit instead. Do NOT use for reading the results of a finished experiment - use ab-test-analyzer instead.

SkillMedev/skills

Runs structured coaching sessions using values clarification and the GROW model, ending every session with one committed action, a deadline, and an if-then plan for the likely obstacle. Use when someone says "I feel stuck in my life", "help me figure out what I want", "hold me accountable to my goals", or "coach me through this decision". Do NOT use for building a stress toolkit - use stress-management instead - or a journaling practice - use journal-framework; for a standing goal-tracking system, use goals-accountability. Coaching, not therapy: signs of clinical distress route to a licensed professional.

SkillMedev/skills

Adapts English content for a target language and region - swapping idioms, setting the right formality register, replacing cultural references, converting dates, units, and currency - and delivers the localized text with a notes column explaining each adaptation and flagging what needs a native reviewer. Use when someone asks "localize this copy for the Japanese market", "adapt our marketing copy for the Mexican market", "make this translation sound native instead of literal", or a literal translation reads foreign, stiff, or risky. Do NOT use for auditing in-product UI text quality - use ux-writing-audit instead.

SkillMedev/skills

Turns a natural-language video brief into a complete, ready-to-preview Remotion composition - extracts duration, scenes, brand colors, aspect ratio, and real copy; plans the frame budget; and writes data-driven React/TypeScript using useCurrentFrame, interpolate, spring, AbsoluteFill, and Sequence, registered in Root.tsx. Use when someone says "build a 20-second product demo video", "animate a feature walkthrough", "write the Remotion code for this marketing clip", or wants a scene-by-scene composition they can scrub in Studio. Do NOT use for rendering, iterating, or batching the finished MP4 - use remotion-render instead - or for installing and scaffolding the project - use remotion-setup instead.

SkillMedev/skills

Scaffolds a new Remotion video project wired for Claude Code Agent Skills - Node check, create-video scaffold, skills install, folder conventions, Google Fonts, and a smoke-test render. Use whenever someone wants to start making videos with Remotion and Claude, even just "make product videos with Claude.

SkillMedev/skills

Classifies incident severity (SEV1-4) using impact, scope, and urgency signals and decides who to page. Use when an alert fires or a report comes in and a severity call must be made quickly.

SkillMedev/skills

Use the Skill Me catalog from inside any conversation - discover, install, and manage Claude skills through the Skill Me MCP, and load installed skills automatically each session.

SkillMedev/skills

Write one platform-native caption from a topic and brand voice, with a front-loaded hook, native length, and a single earned CTA. Use when the user gives a topic (and optionally brand voice or a described image/video) and asks for an Instagram, LinkedIn, X/Twitter, or TikTok caption. Do NOT use when the user wants a dedicated standalone LinkedIn post - use linkedin-post-writer instead; or a multi-post X thread - use tweet-thread-builder instead; or to adapt one existing piece of content into versions for several channels - use cross-platform-reformatter instead.

SkillMedev/skills

Reframe and export a finished video for social platforms - 9:16 ↔ 16:9 cropping, burned-in captions, a platform-native first frame, loop design, and per-platform specs (aspect, length, safe areas) for TikTok, Reels, Shorts, X, and LinkedIn. Use when someone says "make this vertical", "crop to 9:16", "format for TikTok/Reels/Shorts", "add captions/subtitles", "why is my video cut off on mobile", "resize for Instagram", or "export for social". Do NOT use when the question is about the storyboard or shot order before any video exists (use video-storyboard); the animation craft of how elements move (use motion-design-principles); animated word-by-word caption styling (use kinetic-typography); palette, contrast, or lighting (use motion-color-and-light); directing the product-demo content and screen choreography (use product-demo-director); or scoring, beat-syncing, or audio (use sound-and-music-sync) - this is the craft layer that decides WHAT to format for the feed, then hands a concrete spec to remotion-compo...

SkillMedev/skills

Writes and tunes PySpark jobs - join strategy and broadcast size limits, shuffle-partition sizing, skew diagnosis and salting, UDF avoidance, caching, and output file layout - with concrete size and skew thresholds. Use when someone asks "why is my Spark job slow", "should I broadcast this join", "one task takes forever while the rest finish", "my job OOMs during a join", or is writing a new PySpark ETL job. Do NOT use for Kafka topic, consumer-group, or streaming-pipeline design - use kafka-pipelines instead; do NOT use for single-machine dataframe work that fits in memory - use pandas-expert instead.

SkillMedev/skills

Builds clean, performant, accessible SwiftUI views with correct state ownership, scoped invalidation, and smooth list scrolling, and reviews existing SwiftUI code against a concrete frame-time and re-render budget. Use when someone asks "why does my SwiftUI list stutter", "should this be @State or @Observable", "my whole screen re-renders when one row changes", "how do I animate this transition", or wants a SwiftUI view built or refactored. Do NOT use for cross-platform React Native apps - use react-native-pro instead; do NOT use for Flutter widget trees - use flutter-widget-architect instead; do NOT use for Android Compose UIs - use jetpack-compose-builder instead.

関連スキル