Remotion

From malue-ai/dazee-small · View interactive version

Remotion is an AI agent skill from the GitHub repository malue-ai/dazee-small. 使用 React 编程方式创建视频,支持动态图表、数据可视化视频、产品演示与教学视频

How to use this skill

Skill file

Remotion Skill

使用 Remotion 以 React 组件方式生成视频,适合数据可视化、动态图表、产品演示、教学短视频等场景。

何时使用

前置条件

工作流程

  1. 确认环境:在用户项目或工作目录中确认存在 Remotion 项目(含 remotion.config.ts 或 remotion.config.js 及入口如 src/Root.tsx)。
  2. 生成或修改 Composition:根据用户需求编写或修改 React 组件(Composition),可接收 getInputProps() 传入的数据(如图表数据、文案)。
  3. 渲染视频:在项目根目录执行:

```bash

npx remotion render <entry-point> <composition-id> <output-path>

```

  1. 传参与时长:需传入动态数据时使用 --props='{"key":"value"}' 或 --props=./props.json;时长由 Composition 的 durationInFrames / fps 决定。

使用示例

输出

限制

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.