技能图谱SKILLSGROVE
技能图谱/视频制作/thevibethinker/n5os-ode/remotion

remotion

安装

$npx skills add https://github.com/thevibethinker/n5os-ode --skill remotion
$git clone --depth 1 https://github.com/thevibethinker/n5os-ode.git /tmp/n5os-ode && mkdir -p ~/.claude/skills && cp -r /tmp/n5os-ode/Skills/remotion ~/.claude/skills/remotion
请帮我安装这个 Agent Skill:https://github.com/thevibethinker/n5os-ode/tree/964613a2c686c1c9b43882908a4038de540df51d/Skills/remotion ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MITCreate videos programmatically with React using Remotion. Scaffold projects, write compositions, and render MP4s. Zo-optimized wrapper around official Remotion agent skills.
以下 SKILL.md 内容转载自 thevibethinker/n5os-ode(提交 964613a),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 The Vibe Thinker 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

When to Use

Use this skill when:

  • Creating programmatic videos from code (not generative AI video)
  • Building data-driven video content (charts, stats, personalized videos)
  • Producing batch videos from templates + data
  • Creating animated social content (TikTok, Reels, Shorts)
  • Building product/explainer videos with precise control

Quick Start

1. Create a New Project

python3 Skills/remotion/scripts/remotion_cli.py new my-video --template blank
cd Sites/my-video

2. Write Your Composition

Edit src/Composition.tsx - this is your video defined as React components.

3. Preview in Studio

python3 Skills/remotion/scripts/remotion_cli.py studio my-video

4. Render to MP4

python3 Skills/remotion/scripts/remotion_cli.py render my-video --output output.mp4

Core Concepts

Compositions

A composition defines your video's dimensions, duration, and fps:

<Composition
  id="MyVideo"
  component={MyComponent}
  durationInFrames={300}  // 10 seconds at 30fps
  fps={30}
  width={1920}
  height={1080}
/>

Frame-Based Animation

ALL animations MUST use useCurrentFrame(). CSS animations are FORBIDDEN.

const frame = useCurrentFrame();
const { fps } = useVideoConfig();
const opacity = interpolate(frame, [0, fps], [0, 1], { extrapolateRight: 'clamp' });

Sequences

Use <Sequence> to time when elements appear:

<Sequence from={30} durationInFrames={60}>
  <Title />
</Sequence>

Rule References

Read these for detailed patterns (loaded from upstream Remotion skills):

Rule Description
references/animations.md Frame-based animation fundamentals
references/timing.md Springs, easing, interpolation curves
references/compositions.md Defining compositions, stills, folders
references/sequencing.md Timing and ordering elements
references/videos.md Embedding videos - trim, volume, speed
references/audio.md Audio handling - import, trim, volume
references/assets.md Images, fonts, static files
references/transitions.md Scene transitions
references/text-animations.md Typography animation patterns
references/charts.md Data visualization patterns
references/display-captions.md TikTok-style captions

CLI Commands

# Project management
python3 Skills/remotion/scripts/remotion_cli.py new <name> [--template blank|hello-world]
python3 Skills/remotion/scripts/remotion_cli.py studio <name>
python3 Skills/remotion/scripts/remotion_cli.py render <name> [--composition ID] [--output path]
python3 Skills/remotion/scripts/remotion_cli.py list

# Rendering options
--composition ID    # Specific composition to render (default: first)
--output PATH       # Output file path (default: out/video.mp4)
--fps N             # Override FPS
--width N           # Override width
--height N          # Override height
--codec CODEC       # h264, h265, vp8, vp9, prores (default: h264)

Common Patterns

Fade In/Out

const frame = useCurrentFrame();
const { fps, durationInFrames } = useVideoConfig();

const fadeIn = interpolate(frame, [0, fps], [0, 1], { extrapolateRight: 'clamp' });
const fadeOut = interpolate(frame, [durationInFrames - fps, durationInFrames], [1, 0], { extrapolateLeft: 'clamp' });
const opacity = fadeIn * fadeOut;

Spring Animation (Natural Motion)

const scale = spring({
  frame,
  fps,
  config: { damping: 200 }, // Smooth, no bounce
});

Staggered Elements

{items.map((item, i) => (
  <Sequence key={i} from={i * 10}>
    <Item data={item} />
  </Sequence>
))}

Data-Driven Video

type VideoProps = { title: string; stats: number[] };

export const DataVideo: React.FC<VideoProps> = ({ title, stats }) => {
  // Animate based on props
};

// In Root.tsx:
<Composition
  id="DataVideo"
  component={DataVideo}
  defaultProps={{ title: "Q4 Results", stats: [10, 20, 30] }}
  // ...
/>

Integration with Zo

Batch Rendering

Use /zo/ask to render multiple videos in parallel:

for row in data:
    # Each call renders with different props
    await render_video(row)

Output Location

Projects live in Sites/<name>/ for consistency with Zo's site system. Rendered videos output to Sites/<name>/out/.

Constraints

  • No CSS animations - They won't render correctly
  • No Tailwind animation classes - Same issue
  • Frame-based only - All motion from useCurrentFrame()
  • CPU-intensive - Rendering takes time; complex videos = longer render
  • Node.js required - Remotion needs Node environment (already available in Zo)
查看许可证全文(MIT)
MIT License

Copyright (c) 2026 The Vibe Thinker

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.