Install
openclaw skills install cn-remotion用 React 代码程序化生成视频的框架,支持 CSS/Canvas/SVG/WebGL,可部署到 Lambda/Cloud Run 大规模渲染,适合创意视频生成、数据可视化视频和个性化视频批量生产
openclaw skills install cn-remotionRemotion 让开发者用 React 组件和 TypeScript 代码程序化创建视频,把视频创作变成软件工程问题。整个 Web 技术栈都可以用于视频:CSS 动画、Canvas 绘图、SVG、WebGL 特效,乃至调用外部 API 生成个性化内容。从本地预览到云端大规模渲染(AWS Lambda / Google Cloud Run),一套代码覆盖全流程。
@remotion/captions 自动生成带字幕的视频@remotion/lambda 在 AWS Lambda 上并行渲染,缩短渲染时间npx create-video@latest 创建项目并安装依赖<AbsoluteFill>、useCurrentFrame 等核心 APInpx remotion studio 在浏览器中实时预览视频npx remotion render 输出 MP4/WebM/GIF使用本技能时,AI 可以:
npx create-video@latest)并选择合适模板useCurrentFrame、interpolate、spring 等动画 API<Composition> 的分辨率、帧率和时长npx remotion studio)npx remotion render)@remotion/lambda 在 AWS Lambda 上部署渲染服务@remotion/captions 生成带字幕的视频interpolate、spring、useCurrentFrame 精确控制每一帧@remotion/captions 自动生成 SRT/VTT 格式字幕@remotion/gif 在视频中嵌入 GIF 动画@remotion/google-fonts 使用 Google Fonts@remotion/lottie 嵌入 Lottie 动画文件<Audio> 和 <Video> 组件混合媒体# 创建新项目(选择模板)
npx create-video@latest
# 启动 Studio 预览
cd my-video
npx remotion studio
# 渲染视频
npx remotion render src/index.ts MyComposition out/video.mp4
# 渲染 GIF
npx remotion render src/index.ts MyComposition --output out/video.gif
// 基础视频组件
import { AbsoluteFill, useCurrentFrame, interpolate } from 'remotion'
export const MyVideo: React.FC = () => {
const frame = useCurrentFrame()
const opacity = interpolate(frame, [0, 30], [0, 1])
return (
<AbsoluteFill style={{ backgroundColor: 'white', opacity }}>
<h1>Hello, Remotion!</h1>
</AbsoluteFill>
)
}
| 依赖 | 版本要求 |
|---|---|
| Node.js | >= 18.0 |
| npm / pnpm / yarn | 任意版本 |
| FFmpeg | 可选(本地渲染使用内置版本) |
许可证注意: Remotion 对个人/学生免费,公司使用需要购买许可证。详见 remotion.dev/license。