development 2026.01.20

Remotion StudioとMCPで実現するAI駆動の動画制作ワークフロー

約26分で読めます

プログラマブル動画制作ツールRemotion StudioとMCPプロトコルを活用したAI駆動の動画制作ワークフローの構築方法を実例で解説

動画制作の悩み、こんな経験ありませんか?

「商品紹介動画を作りたいけど、制作会社に依頼すると数十万円かかる」 「毎月のキャンペーン動画を内製化したいが、デザイナーの工数が足りない」 「テンプレート化された動画では差別化が難しい」

このような課題を抱える企業様から、最近多くのご相談をいただいています。特に中小企業のマーケティング担当者の方々は、限られた予算と人員でクオリティの高い動画コンテンツを継続的に制作する必要に迫られています。

私たちFivenine Designでも、あるクライアント企業様から「月10本の商品紹介動画を効率的に制作したい」というご相談をいただき、従来のAfter Effectsベースの制作フローでは工数的に対応が困難でした。そこで注目したのが、プログラマブルな動画制作を可能にするRemotion Studioと、AI連携を効率化するMCP(Model Context Protocol)の組み合わせです。

従来の動画制作ワークフローの限界

手作業中心の非効率性

従来の動画制作では、デザイナーがAfter EffectsやPremiere Proを使って一つ一つ手作業で制作していました。テンプレートを使用しても、素材の差し替えやテキストの調整、色味の変更など、多くの工程で人的作業が必要でした。

スケールしない制作体制

さらに深刻なのは、制作本数が増えるにつれてリニアに工数が増加することです。あるクライアント様では、月5本の動画制作でデザイナー1名がフル稼働となり、事業拡大に伴う制作本数増加に対応できない状況でした。

従来手法 vs AI駆動ワークフローの比較

項目従来手法(After Effects等)Remotion × MCP
制作時間(1本)26時間7時間
スケーラビリティリニアに増加ほぼ一定
再利用性テンプレートのみコンポーネント化・JSON駆動
AI連携手動でプロンプト→手作業MCP経由で自動化
データ連携CSV手動インポートAPI・DB直接連携可能
バージョン管理プロジェクトファイルGit管理可能
学習コストデザインツールの習熟React/TypeScriptの知識
初期コスト中〜高(開発工数)
ランニングコスト高(人件費)低(自動化)

この比較から分かるように、初期の開発コストはかかるものの、継続的に動画を制作する場合はRemotion × MCPの方が圧倒的に効率的です。特に月10本以上の制作を行う場合、投資回収期間は3ヶ月程度となります。

Remotion Studio × MCPによるAI駆動ワークフロー

Remotion Studioの特徴

Remotion Studioは、React.jsを使ってプログラマブルに動画を制作できるツールです。HTMLやCSSの知識があれば、動画をコードで記述できるため、データベースとの連携やAPI経由でのコンテンツ自動生成が可能になります。

// Remotionでの基本的な動画コンポーネント
import { Composition, Sequence, useCurrentFrame } from 'remotion';

const ProductVideo = ({ productData }) => {
  const frame = useCurrentFrame();
  
  return (
    <>
      <Sequence from={0} durationInFrames={90}>
        <div style={{
          backgroundColor: productData.brandColor,
          width: '100%',
          height: '100%',
          display: 'flex',
          alignItems: 'center',
          justifyContent: 'center'
        }}>
          <h1 style={{
            fontSize: 60,
            color: 'white',
            opacity: Math.min(1, frame / 30)
          }}>
            {productData.name}
          </h1>
        </div>
      </Sequence>
      
      <Sequence from={90} durationInFrames={120}>
        <div style={{ padding: 40 }}>
          <img src={productData.image} alt={productData.name} />
          <p>{productData.description}</p>
        </div>
      </Sequence>
    </>
  );
};

MCPによるAI連携の効率化

MCP(Model Context Protocol)は、AI アシスタントと様々なツールやデータソースを標準的な方法で連携させるプロトコルです。これにより、ChatGPTやClaudeなどのAIが、直接Remotionのコードを生成したり、素材を選定したりできるようになります。

// MCP Server設定例
import { Server } from '@modelcontextprotocol/sdk/server/index.js';

const server = new Server(
  {
    name: 'remotion-video-generator',
    version: '1.0.0',
  },
  {
    capabilities: {
      tools: {}
    }
  }
);

// 動画生成ツールの定義
server.setRequestHandler(ListToolsRequestSchema, async () => {
  return {
    tools: [
      {
        name: 'generate_product_video',
        description: '商品データから動画コンポーネントを生成',
        inputSchema: {
          type: 'object',
          properties: {
            productId: { type: 'string' },
            template: { type: 'string' },
            duration: { type: 'number' }
          }
        }
      }
    ]
  };
});

AI駆動動画制作のワークフロー

Remotion × MCPを活用した動画制作の全体像を図で表すと以下のようになります。

graph TD
    A[ユーザー要望] --> B[Claude Code]
    B --> C{MCP Server}
    C --> D[list_compositions<br/>利用可能なテンプレート確認]
    C --> E[create_component<br/>新規コンポーネント生成]
    C --> F[create_config<br/>JSON設定ファイル作成]

    D --> G[Remotion Studio]
    E --> G
    F --> G

    G --> H[プレビュー確認]
    H --> I{修正必要?}
    I -->|Yes| B
    I -->|No| J[render_video<br/>動画レンダリング]

    J --> K[VOICEVOX連携<br/>ナレーション生成]
    K --> L[最終動画出力<br/>MP4ファイル]

    L --> M[YouTube/SNS投稿]

    style B fill:#3b82f6,color:#fff
    style C fill:#10b981,color:#fff
    style G fill:#f59e0b,color:#000
    style L fill:#8b5cf6,color:#fff

このワークフローの特徴は、人間が行うのは要望の伝達と最終確認のみという点です。コンポーネント生成、設定ファイル作成、レンダリング、ナレーション生成まで、すべてAIと自動化ツールが担当します。

プレビュー確認の重要性

Remotion Studioでのプレビュー確認は必須ステップです。AIが生成したコンポーネントが意図通りに動作するか、タイミングやアニメーションが適切かを確認することで、手戻りを防ぎます。

実践的な実装手順

環境構築とプロジェクト設定

# Remotionプロジェクトの初期化
npx create-video@latest my-video-project
cd my-video-project

# 必要なパッケージのインストール
npm install @modelcontextprotocol/sdk
npm install openai anthropic-sdk

動画テンプレートシステムの構築

実際のプロジェクトでは、業種や用途に応じた複数のテンプレートを用意します。以下は、ECサイト向けの商品紹介動画テンプレートの例です:

// templates/ProductTemplate.jsx
import { AbsoluteFill, Sequence, useCurrentFrame, Img, Audio } from 'remotion';

export const ProductTemplate = ({ productData, config }) => {
  const frame = useCurrentFrame();
  const { fps } = useVideoConfig();
  
  // フェードイン効果
  const opacity = Math.min(1, frame / (fps * 0.5));
  
  return (
    <AbsoluteFill>
      {/* 背景とブランディング */}
      <Sequence from={0} durationInFrames={config.introDuration}>
        <AbsoluteFill
          style={{
            backgroundColor: productData.brandColors.primary,
            background: `linear-gradient(135deg, ${productData.brandColors.primary} 0%, ${productData.brandColors.secondary} 100%)`
          }}
        >
          <div style={{
            position: 'absolute',
            top: '50%',
            left: '50%',
            transform: 'translate(-50%, -50%)',
            textAlign: 'center',
            opacity
          }}>
            <h1 style={{
              fontSize: '4rem',
              color: 'white',
              fontWeight: 'bold',
              textShadow: '2px 2px 4px rgba(0,0,0,0.3)'
            }}>
              {productData.name}
            </h1>
            <p style={{
              fontSize: '1.5rem',
              color: 'rgba(255,255,255,0.9)',
              marginTop: '1rem'
            }}>
              {productData.tagline}
            </p>
          </div>
        </AbsoluteFill>
      </Sequence>
      
      {/* 商品画像とスペック */}
      <Sequence 
        from={config.introDuration} 
        durationInFrames={config.productDuration}
      >
        <AbsoluteFill style={{ backgroundColor: '#f8f9fa' }}>
          <div style={{
            display: 'flex',
            alignItems: 'center',
            height: '100%',
            padding: '2rem'
          }}>
            <div style={{ flex: 1 }}>
              <Img
                src={productData.mainImage}
                style={{
                  width: '100%',
                  height: 'auto',
                  maxHeight: '80vh',
                  objectFit: 'contain'
                }}
              />
            </div>
            <div style={{ flex: 1, padding: '0 2rem' }}>
              <h2 style={{ fontSize: '2.5rem', marginBottom: '1rem' }}>
                主な特徴
              </h2>
              {productData.features.map((feature, index) => (
                <div
                  key={index}
                  style={{
                    opacity: Math.max(0, Math.min(1, (frame - config.introDuration - index * 20) / 30)),
                    transform: `translateY(${Math.max(0, 20 - (frame - config.introDuration - index * 20) / 2)}px)`,
                    marginBottom: '1rem'
                  }}
                >
                  <h3 style={{ fontSize: '1.5rem', color: productData.brandColors.primary }}>
                    {feature.title}
                  </h3>
                  <p style={{ fontSize: '1.2rem', color: '#666' }}>
                    {feature.description}
                  </p>
                </div>
              ))}
            </div>
          </div>
        </AbsoluteFill>
      </Sequence>
      
      {/* 音声の追加 */}
      {config.audioEnabled && (
        <Audio src={productData.bgMusic} volume={0.3} />
      )}
    </AbsoluteFill>
  );
};

AI連携システムの実装

MCPを使用してAIが商品データから自動的に動画スクリプトとコンポーネントを生成するシステムを構築します:

// services/AIVideoGenerator.ts
import { MCPClient } from '@modelcontextprotocol/sdk/client/index.js';
import OpenAI from 'openai';

class AIVideoGenerator {
  private openai: OpenAI;
  private mcpClient: MCPClient;
  
  constructor() {
    this.openai = new OpenAI({
      apiKey: process.env.OPENAI_API_KEY
    });
    // MCP client initialization
  }
  
  async generateVideoScript(productData: any, template: string) {
    const prompt = `
商品データ:
${JSON.stringify(productData, null, 2)}

テンプレート: ${template}

上記の商品データを使って、魅力的な動画スクリプトを生成してください。
以下の要素を含めてください:
- キャッチーなオープニング
- 商品の主要な特徴(3-5個)
- 感情に訴えるメッセージ
- 強いクロージング

JSON形式で出力してください。
    `;
    
    const response = await this.openai.chat.completions.create({
      model: 'gpt-4',
      messages: [{ role: 'user', content: prompt }],
      response_format: { type: 'json_object' }
    });
    
    return JSON.parse(response.choices[0].message.content);
  }
  
  async generateRemotionComponent(script: any, productData: any) {
    // MCPを通じてRemotionコンポーネントコードを生成
    const result = await this.mcpClient.request({
      method: 'tools/call',
      params: {
        name: 'generate_remotion_component',
        arguments: {
          script,
          productData,
          template: 'product-showcase'
        }
      }
    });
    
    return result.content[0].text;
  }
}

バッチ処理システム

複数の商品動画を一括生成するためのバッチ処理システムも重要です:

// scripts/batch-generate.js
import { bundle } from '@remotion/bundler';
import { renderMedia } from '@remotion/renderer';
import { AIVideoGenerator } from '../services/AIVideoGenerator';

const batchGenerateVideos = async (products) => {
  const generator = new AIVideoGenerator();
  const bundled = await bundle('src/index.ts');
  
  for (const product of products) {
    try {
      console.log(`動画生成開始: ${product.name}`);
      
      // AIスクリプト生成
      const script = await generator.generateVideoScript(product, 'product-showcase');
      
      // Remotionコンポーネント生成
      const componentCode = await generator.generateRemotionComponent(script, product);
      
      // 動的にコンポーネントファイルを作成
      await fs.writeFile(`src/generated/Product_${product.id}.jsx`, componentCode);
      
      // 動画レンダリング
      await renderMedia({
        composition: `Product_${product.id}`,
        serveUrl: bundled,
        codec: 'h264',
        outputLocation: `output/${product.id}.mp4`,
        inputProps: {
          productData: product,
          script: script
        }
      });
      
      console.log(`動画生成完了: ${product.name}`);
    } catch (error) {
      console.error(`エラー発生: ${product.name}`, error);
    }
  }
};

よくある失敗パターンと対処法

パフォーマンスの問題

失敗例: 高解像度の画像を多用したRemotionコンポーネントでレンダリング時間が異常に長くなる

実際のプロジェクトで、4K画像を10枚以上使用した動画で1本あたり30分以上のレンダリング時間がかかったケースがありました。

対処法:

// 画像の最適化処理
const OptimizedImage = ({ src, ...props }) => {
  const [optimizedSrc, setOptimizedSrc] = useState('');
  
  useEffect(() => {
    const optimizeImage = async () => {
      // 画像サイズを動画サイズに最適化
      const canvas = document.createElement('canvas');
      const ctx = canvas.getContext('2d');
      const img = new Image();
      
      img.onload = () => {
        canvas.width = 1920; // 出力解像度に合わせる
        canvas.height = 1080;
        ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
        setOptimizedSrc(canvas.toDataURL('image/jpeg', 0.8));
      };
      
      img.src = src;
    };
    
    optimizeImage();
  }, [src]);
  
  return <Img src={optimizedSrc} {...props} />;
};

AI生成コンテンツの品質制御

失敗例: AIが生成したスクリプトやデザインが企業のブランドガイドラインから逸脱する

対処法: バリデーション機能の実装

interface BrandGuidelines {
  allowedColors: string[];
  forbiddenWords: string[];
  toneOfVoice: 'professional' | 'casual' | 'friendly';
  maxTextLength: number;
}

class ContentValidator {
  static validateScript(script: any, guidelines: BrandGuidelines): boolean {
    // 禁止ワードのチェック
    const hasBlockedWords = guidelines.forbiddenWords.some(word => 
      script.content.toLowerCase().includes(word.toLowerCase())
    );
    
    if (hasBlockedWords) {
      throw new Error('Script contains blocked words');
    }
    
    // 文字数制限のチェック
    if (script.content.length > guidelines.maxTextLength) {
      throw new Error('Script exceeds maximum length');
    }
    
    return true;
  }
}

レンダリングエラーの対処

失敗例: 本番環境でのみ発生するフォントやアセット読み込みエラー

特にサーバーサイドレンダリング時に、ローカル環境では動作するがデプロイ後にエラーになるケースが頻発しました。

対処法: フォールバック機能付きのアセット管理

const SafeFont = ({ children, primaryFont, fallbackFont = 'Arial' }) => {
  const [fontLoaded, setFontLoaded] = useState(false);
  
  useEffect(() => {
    // フォント読み込み確認
    document.fonts.load(`16px ${primaryFont}`).then(() => {
      setFontLoaded(true);
    }).catch(() => {
      console.warn(`Font ${primaryFont} failed to load, using fallback`);
      setFontLoaded(false);
    });
  }, [primaryFont]);
  
  return (
    <span style={{ fontFamily: fontLoaded ? primaryFont : fallbackFont }}>
      {children}
    </span>
  );
};

導入効果と成果指標

実際の導入事例での成果

あるECサイト運営企業での導入事例では、以下のような成果が得られました:

ROI計算

// ROI計算例
const calculateROI = (monthlyVideos, traditionalCostPerVideo, newSystemCost) => {
  const annualTraditionalCost = monthlyVideos * 12 * traditionalCostPerVideo;
  const annualNewSystemCost = newSystemCost.development + newSystemCost.monthly * 12;
  const annualSavings = annualTraditionalCost - annualNewSystemCost;
  
  return {
    savings: annualSavings,
    roi: (annualSavings / newSystemCost.development) * 100,
    breakEvenMonths: newSystemCost.development / (annualSavings / 12)
  };
};

const result = calculateROI(30, 100000, {
  development: 2000000,
  monthly: 50000
});
// 結果: ROI 140%, 回収期間 8ヶ月

無料相談受付中

お気軽にご相談ください(初回無料)

詳しく見る

まとめと次のステップ

Remotion StudioとMCPを活用したAI駆動の動画制作ワークフローは、従来の手作業中心の制作プロセスを大幅に効率化し、スケーラブルな動画制作を実現します。特に以下の課題を抱える企業には大きな効果が期待できます:

  • 月10本以上の動画制作が必要な企業
  • 制作コストの削減が急務な企業
  • 内製化によるスピード向上を求める企業

実装においては、段階的なアプローチを推奨します。まずは1-2種類のテンプレートから始めて、運用に慣れてから機能を拡張していくことで、リスクを最小限に抑えながら効果を実感できます。

Fivenine Designでは、このようなAI駆動の動画制作システム導入支援を行っており、企業様の規模や要件に応じたカスタマイズも可能です。動画制作の効率化にお悩みの場合は、ぜひお気軽にご相談ください。

この記事をシェア

この記事の内容でお困りですか?

無料でご相談いただけます

Webサイトの改善、システム開発、AI導入など、 お気軽にご相談ください。初回相談は無料です。

無料相談してみる
AIに無料相談