
Remotion Video
This turns React components into MP4 videos using Remotion's frame-based animation system. You define videos like compositions, use `useCurrentFrame()` and `interpolate()` for animations, and arrange scenes with `<Sequence>`. It's built for programmatic video generation: batch rendering data visualizations, auto-subtitle tutorials, or syncing 3D animations to AI voiceovers. The skill includes complete TTS integration with MiniMax and Edge TTS, plus a scene-driven architecture where audio files determine timeline durations through a central config. If you've ever manually edited 50 similar videos or wanted to animate algorithmic concepts with code instead of dragging keyframes, this is the approach. Run `npm run dev` to preview in Remotion Studio, then render to video.
- skills.sh installs
- 1.1K
- GitHub stars
- 467
- last updated
- Aug 21, 2026
Install
$ npx -y skills add wshuyi/remotion-video-skill --skill remotion-video --agent claude-codeInstalls into .claude/skills of the current project.
Files
Remotion Video
用 React 以编程方式创建 MP4 视频的框架。
核心概念
- Composition - 视频的定义(尺寸、帧率、时长)
- useCurrentFrame() - 获取当前帧号,驱动动画
- interpolate() - 将帧号映射到任意值(位置、透明度等)
- spring() - 物理动画效果
- - 时间轴上排列组件
快速开始
创建新项目
npx create-video@latest
选择模板后:
cd <project-name>
npm run dev # 启动 Remotion Studio 预览
项目结构
my-video/
├── src/
│ ├── Root.tsx # 注册所有 Composition
│ ├── HelloWorld.tsx # 视频组件
│ └── index.ts # 入口
├── public/ # 静态资源(音频、图片)
├── remotion.config.ts # 配置文件
└── package.json
基础组件示例
最小视频组件
import { AbsoluteFill, useCurrentFrame, useVideoConfig } from "remotion";
export const MyVideo = () => {
const frame = useCurrentFrame();
const { fps, durationInFrames } = useVideoConfig();
return (
<AbsoluteFill style={{ backgroundColor: "white", justifyContent: "center", alignItems: "center" }}>
<h1 style={{ fontSize: 100 }}>Frame {frame}</h1>
</AbsoluteFill>
);
};
注册 Composition
// Root.tsx
import { Composition } from "remotion";
import { MyVideo } from "./MyVideo";
Sponsors
Details
- Repository
- github.com/wshuyi/remotion-video-skill
- Categories
- Frontend Development, Generative Media
- First seen
- Apr 16, 2026