作者:互联网 时间: 2026-07-31 08:10:01
Remotion 视频工具包允许开发者和 AI 智能体像处理软件工程一样处理视频生产。通过将视频帧定义为 React 组件,用户可以创建动态的、数据驱动的内容,无需人工编辑即可无限扩展。对于任何希望构建自动化视频流水线、个性化营销内容或复杂数据可视化的人来说,这项技能是 Openclaw Skills 的重要组成部分。
该工具包的核心是在浏览器的渲染能力与高质量 MP4 输出之间架起了一座桥梁。它包含 29 条专业规则,涵盖了从基础过渡和弹簧物理效果到 AWS Lambda 或 Google Cloud Run 上的高级无服务器渲染的所有内容。无论您是构建生成社交媒体片段的 SaaS,还是构建用于自动报告的内部工具,该库都提供了成功所需的必要原语。
下载入口:https://github.com/openclaw/skills/tree/main/skills/shreefentsar/remotion-video-toolkit
从源直接安装技能的最快方式。
npx clawhub@latest install remotion-video-toolkit
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
<project>/skills/
优先级:工作区 > 本地 > 内置
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 remotion-video-toolkit。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
要开始使用来自 Openclaw Skills 的此资源,请确保已安装 Node.js 18+。按照以下步骤初始化您的项目:
# 初始化一个新的 Remotion 项目
npx create-video@latest my-video
# 进入目录并启动预览播放器
cd my-video && npm start
# 将您的第一个合成渲染为 MP4 文件
npx remotion render src/index.ts MyComposition out/video.mp4
该工具包通过严格类型的模式组织其视频结构和元数据:
| 组件 | 功能 |
|---|---|
| Composition | 定义尺寸(宽/高)、FPS 和帧时长的根实体。 |
| Input Props | 在渲染时传递给视频组件用于自定义的 JSON 序列化数据。 |
| Metadata | 动态计算的属性,如总时长或特定帧数据。 |
| Assets | 外部媒体导入的分类,包括 .mp4、.mp3、.png 和 .gif 文件。 |
| Render Config | 输出参数,如编解码器、crf 和像素格式。 |
name: remotion-video-toolkit
description: Complete toolkit for programmatic video creation with Remotion + React. Covers animations, timing, rendering (CLI/Node.js/Lambda/Cloud Run), captions, 3D, charts, text effects, transitions, and media handling. Use when writing Remotion code, building video generation pipelines, or creating data-driven video templates.
Write React components, get real MP4 videos. This skill teaches your AI agent how to build with Remotion — from a first animation to a production rendering pipeline.
29 rules. Every major Remotion feature covered.
Personalized video at scale Feed user data as JSON props, render a unique video per user. Think Spotify Wrapped, GitHub Unwrapped, onboarding walkthroughs — one template, thousands of outputs.
Automated social media clips Pull live data (stats, leaderboards, product metrics) and render daily or weekly video posts without anyone touching a timeline editor.
Dynamic ads and marketing videos Swap in customer name, product image, pricing. Same template, infinite variations. Render server-side via API or Lambda.
Animated data visualizations Turn dashboards and KPI reports into shareable video clips with animated charts and transitions.
TikTok and Reels captions Transcribe audio, display word-by-word highlighted subtitles, export ready for upload.
Product showcase videos Auto-generate from your database — images, specs, pricing — straight to MP4.
Educational and explainer content Animated course materials, certificate videos, step-by-step walkthroughs — all driven by code.
Video generation as a service Expose rendering as an HTTP endpoint. Your app sends JSON, gets back a video file.
npx create-video@latest@remotion/renderer, no separate install needed| Rule | Description |
|---|---|
| Compositions | Define videos, stills, folders, default props, dynamic metadata |
| Rendering | CLI, Node.js API, AWS Lambda, Cloud Run, Express server patterns |
| Calculate metadata | Set duration, dimensions, and props dynamically at render time |
| Rule | Description |
|---|---|
| Animations | Fade, scale, rotate, slide |
| Timing | Interpolation curves, easing, spring physics |
| Sequencing | Delay, chain, and orchestrate scenes |
| Transitions | Scene-to-scene transitions |
| Trimming | Cut the start or end of any animation |
| Rule | Description |
|---|---|
| Text animations | Typewriter, word highlight, reveal effects |
| Fonts | Google Fonts and local font loading |
| Measuring text | Fit text to containers, detect overflow |
| Rule | Description |
|---|---|
| Videos | Embed, trim, speed, volume, loop, pitch shift |
| Audio | Import, trim, fade, volume and speed control |
| Images | The Img component |
| GIFs | Timeline-synced GIF playback |
| Assets | Importing any media into compositions |
| Decode check | Validate browser compatibility |
| Rule | Description |
|---|---|
| Transcribe captions | Audio to captions via Whisper, Deepgram, or AssemblyAI |
| Display captions | TikTok-style word-by-word highlighting |
| Import SRT | Load existing .srt files |
| Rule | Description |
|---|---|
| Charts | Animated bar charts, line graphs, data-driven visuals |
| Rule | Description |
|---|---|
| 3D content | Three.js and React Three Fiber |
| Lottie | After Effects animations via Lottie |
| TailwindCSS | Style compositions with Tailwind |
| DOM measurement | Measure element dimensions at render time |
| Rule | Description |
|---|---|
| Video duration | Get length in seconds |
| Video dimensions | Get width and height |
| Audio duration | Get audio length |
| Extract frames | Pull frames at specific timestamps |
# Scaffold a project
npx create-video@latest my-video
# Preview in browser
cd my-video && npm start
# Render to MP4
npx remotion render src/index.ts MyComposition out/video.mp4
# Pass dynamic data
npx remotion render src/index.ts MyComposition out.mp4 --props '{"title": "Hello"}'
Source: github.com/shreefentsar/remotion-video-toolkit
Missing something? Found a better approach? Open a PR — new rules, improved examples, bug fixes all welcome.
Built by Zone 99