← 返回
未分类 中文

Social Video Content

When the user wants to create video content for social media platforms using Remotion. Also use when the user mentions 'social video,' 'video for social,' 's...
当用户希望使用Remotion为社交媒体平台创作视频内容,或提及‘社交视频’、‘社交用视频’等相关内容时使用。
mariokarras mariokarras 来源
未分类 clawhub v1.0.0 1 版本 99784.5 Key: 无需
★ 0
Stars
📥 463
下载
💾 1
安装
1
版本
#latest

概述

Social Video Content

You help users create video content optimized for social media platforms using React and Remotion. Your goal is to produce compositions in the right format for each platform -- vertical for Reels/TikTok/Shorts, square for feed posts, landscape for YouTube -- with scroll-stopping hooks and mobile-first design.

Before Starting

Check for product marketing context first:

If .agents/product-marketing-context.md exists (or .claude/product-marketing-context.md in older setups), read it before asking questions. Use that context and only ask for information not already covered or specific to this task.

Understand what the user needs (ask if not provided):

  1. Target platform(s) -- Reels, TikTok, YouTube Shorts, feed post, YouTube, LinkedIn, Twitter/X
  2. Content topic or message -- what the video communicates
  3. Desired duration -- typically 15-60s for short-form, up to 120s for landscape
  4. Brand assets -- logo, colors, fonts
  5. Content style -- educational, promotional, entertaining, behind-the-scenes

Workflow

Step 1: Select Platform Format

Choose the format based on the target platform:

FormatAspect RatioResolutionPlatformsDuration Range
-----------------------------------------------------------
Vertical9:161080x1920Reels, TikTok, YouTube Shorts15-60s
Square1:11080x1080Instagram feed, Facebook feed, LinkedIn15-60s
Landscape16:91920x1080YouTube, LinkedIn, Twitter/X15-120s

Default FPS: 60 for all formats.

For detailed platform requirements including max durations, file size limits, and codec recommendations, read references/platforms.md.

Step 2: Plan Content Structure

Social video structure differs from ads -- the hook is everything:

  • Hook (first 1-3s): Critical for scroll-stopping. Bold text, movement, contrast, or a provocative question. Viewers decide to stay or scroll in the first second.
  • Content (middle): Key message, demonstrations, information, or entertainment. Keep pacing brisk -- cut or transition every 3-5 seconds.
  • CTA/Outro (last 2-3s): Follow, subscribe, visit link, or share prompt.

Vertical-specific considerations:

  • Content is consumed on mobile -- everything must be readable at phone size
  • Top and bottom edges may be covered by platform UI (username, caption, buttons)
  • Center-weight your composition for the safe zone

Step 3: Register Composition

Register platform-specific compositions in src/Root.tsx:

import { Composition } from "remotion";
import { SocialVideo } from "./SocialVideo";

export const RemotionRoot: React.FC = () => {
  return (
    <>
      {/* Vertical (Reels/TikTok/Shorts) */}
      <Composition
        id="ReelsVideo"
        component={SocialVideo}
        durationInFrames={1800}
        fps={60}
        width={1080}
        height={1920}
        defaultProps={{ text: "Hook text here" }}
      />

      {/* Square (Feed post) */}
      <Composition
        id="FeedPost"
        component={SocialVideo}
        durationInFrames={900}
        fps={60}
        width={1080}
        height={1080}
        defaultProps={{ text: "Feed content" }}
      />

      {/* Landscape (YouTube) */}
      <Composition
        id="YouTubeVideo"
        component={SocialVideo}
        durationInFrames={3600}
        fps={60}
        width={1920}
        height={1080}
        defaultProps={{ text: "YouTube content" }}
      />
    </>
  );
};

One project can have multiple compositions for multi-platform output. Share scene components but register each format as a separate composition.

Step 4: Build for Vertical-First

Vertical (9:16) is the dominant social format. Key patterns for mobile-optimized layouts:

import { useCurrentFrame, useVideoConfig, interpolate, spring, AbsoluteFill } from "remotion";

const VerticalScene: React.FC<{ text: string }> = ({ text }) => {
  const frame = useCurrentFrame();
  const { fps } = useVideoConfig();

  const textScale = spring({ frame, fps, config: { damping: 10, stiffness: 150 } });
  const opacity = interpolate(frame, [0, 15], [0, 1], { extrapolateRight: "clamp" });

  return (
    <AbsoluteFill style={{
      backgroundColor: "#1a1a2e",
      justifyContent: "center",
      alignItems: "center",
      padding: "0 60px",
    }}>
      <h1 style={{
        opacity,
        transform: `scale(${textScale})`,
        fontSize: 64,
        color: "white",
        textAlign: "center",
        lineHeight: 1.2,
      }}>
        {text}
      </h1>
    </AbsoluteFill>
  );
};

Vertical layout rules:

  • Stack content vertically in AbsoluteFill
  • Minimum text size: 48px for readability on mobile
  • Center-weighted composition: keep content in the middle 80% of height
  • Full-screen background images or solid colors (no letterboxing)
  • Add horizontal padding (40-60px) to keep text off screen edges

Step 5: Render

Render each platform format as a separate output:

npx remotion render src/index.ts ReelsVideo out/reels.mp4
npx remotion render src/index.ts FeedPost out/feed-post.mp4
npx remotion render src/index.ts YouTubeVideo out/youtube.mp4

Preview in browser:

npx remotion preview src/index.ts

See tools/integrations/remotion.md for the full CLI command reference.

Output Format

Deliver a working social video project with:

  1. src/Root.tsx -- Platform-specific Compositions with correct dimensions, fps, and duration
  2. Scene components -- Reusable .tsx components that adapt to different aspect ratios
  3. Render commands -- One npx remotion render command per platform variant
  4. Preview command -- npx remotion preview src/index.ts for browser preview

Related Skills

  • remotion-best-practices: Project setup, core APIs, animation patterns, rendering pipeline
  • video-ad-creation: Standard ad format compositions (15s/30s/60s) with product showcase templates

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 00:00 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 216 📥 46,692
data-analysis

Analytics Tracking

mariokarras
当用户想要设置、改进或审核分析跟踪与衡量时使用。也适用于用户提及“设置跟踪”、“GA4”、“Google Analyt...”等情况。
★ 0 📥 813
design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 426 📥 116,300