闲社服务运行正常AI智能体自动化平台
r

Remotion视频生成

技能标识:remotion-video-generator

AI video production workflow using Remotion. Use when creating videos, short films, commercials, or motion graphics. Triggers on requests to make promotional videos, product demos, social media videos, animated explainers, or any programmatic video content. Produces polished motion graphics, not slideshows.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

Remotion视频生成

Remotion 视频生成器

使用 React 和 Remotion 以编程方式创建专业动态图形视频。


致谢与参考

原始技能

修改内容

  • - Firecrawl 替换为 Scrapling 用于品牌数据提取
  • 使用 Python scrapling 库替代 Firecrawl API
  • 新增针对 Remotion v4 API 的全面故障排除指南

核心技术

  • - Remotion: https://www.remotion.dev/
  • Scrapling: https://github.com/D4Vinci/Scrapling
  • React: https://react.dev/

测试验证

  • - OpenClaw 宣传视频 - 成功渲染!🎉

快速使用指南(分步操作)

第一步:抓取品牌数据

bash

运行 scrapling 脚本获取品牌颜色、Logo、标语

bash skills/remotion-video-generator/scripts/scrapling.sh https://brand-website.com

这将提取:brandName、tagline、logoUrl、faviconUrl、primaryColors、ogImageUrl、screenshotUrl

第二步:下载品牌素材

bash mkdir -p public/images/brand curl -sL https://brand.com/logo.svg -o public/images/brand/logo.svg curl -sL https://brand.com/og-image.png -o public/images/brand/og-image.png curl -sL https://image.thum.io/get/width/1200/crop/800/https://brand.com -o screenshot.png

第三步:创建项目结构

bash mkdir -p my-video/src my-video/public/images/brand my-video/public/audio

第四步:创建 package.json

json { name: my-video, scripts: { dev: npx remotion studio, build: npx remotion bundle }, dependencies: { @remotion/cli: ^4.0.0, react: ^18.2.0, react-dom: ^18.2.0, remotion: ^4.0.0, lucide-react: ^0.300.0 } }

第五步:安装依赖

bash cd my-video && npm install

第六步:创建视频组件

创建 src/MyVideo.tsx,包含:
  • - AbsoluteFill 实现全屏布局
  • Sequence 组件控制场景时间
  • useCurrentFrame、useVideoConfig、interpolate、spring 实现动画

第七步:创建入口文件(Remotion v4 API)

创建 src/index.tsx - 必须使用 .tsx 扩展名:

tsx
import { registerRoot, Composition } from remotion;
import { AbsoluteFill, Sequence, useCurrentFrame, useVideoConfig, interpolate, spring } from remotion;

const MyVideo = () => {
const frame = useCurrentFrame();
const { fps } = useVideoConfig();

// 动画 - 始终将 fps 传递给 spring()
const scale = spring({ frame, fps, from: 0.8, to: 1 });

return (


Hello World




);
};

registerRoot(() => {
return (
id=MyVideo
component={MyVideo}
durationInFrames={240}
fps={30}
width={1920}
height={1080}
/>
);
});

⚠️ Remotion v4 关键规则:

  1. 1. 使用 .tsx 扩展名(非 .ts)处理包含 JSX 的文件
  2. 必须使用 registerRoot + Composition API
  3. 始终将 fps 传递给 spring():spring({ frame, fps, from: 0.8, to: 1 })
  4. 使用 useVideoConfig() 获取 fps:const { fps } = useVideoConfig()
  5. 使用合成名称渲染:npx remotion render MyVideo out/video.mp4

第八步:启动开发服务器

bash cd my-video && npm run dev

服务器运行在 http://localhost:3000

第九步:预览与迭代

  • - 打开浏览器预览
  • 编辑源文件 - 自动热重载
  • 用户审阅并请求修改

第十步:渲染最终视频(当用户要求时)

bash npx remotion render index out/final-video.mp4

致谢

  • - 原始技能: https://superskills.vibecode.run/
  • 修改内容: Firecrawl 替换为 Scrapling 用于品牌数据提取
  • Remotion: https://www.remotion.dev/

安装

bash

全局安装 Remotion


npm install -g remotion

安装视频项目依赖

npm install lucide-react

安装 Scrapling(工作区技能中已有)

pip install scrapling

代理指令

何时使用视频生成器

使用此技能的场景:

  • - 创建宣传视频
  • 制作产品演示
  • 社交媒体视频内容
  • 动画解说
  • 商业广告
  • 任何程序化视频内容

不适用于:

  • - 简单幻灯片(使用其他工具)
  • 现有素材的视频编辑
  • 直播流



默认工作流程(始终遵循此流程)

  1. 1. 抓取品牌数据(如果展示产品)使用 Scrapling(非 Firecrawl)
  2. 创建项目 在 output// 目录下
  3. 构建所有场景 使用适当的动态图形
  4. 安装依赖 使用 npm install
  5. 修复 package.json 脚本 使用 npx remotion(非 bun):
json scripts: { dev: npx remotion studio, build: npx remotion bundle }
  1. 6. 启动 Remotion Studio 作为后台进程:
bash cd output/ && npm run dev
  1. 7. 通过 Cloudflare 隧道暴露 以便用户访问:
bash bash skills/cloudflare-tunnel/scripts/tunnel.sh start 3000
  1. 8. 向用户发送公共 URL(例如 https://xxx.trycloudflare.com)

用户将在浏览器中预览、请求修改,您编辑源文件。Remotion 自动热重载。



渲染(仅在用户明确要求导出时)

bash
cd output/
npx remotion render CompositionName out/video.mp4



快速开始

bash

搭建项目


cd output && npx --yes create-video@latest my-video --template blank
cd my-video && npm install

添加动效库

npm install lucide-react

修复 package.json 中的脚本(将所有 bun 引用替换为 npx remotion)

启动开发服务器

npm run dev

公开暴露

bash skills/cloudflare-tunnel/scripts/tunnel.sh start 3000

使用 Scrapling 获取品牌数据

必须执行: 当视频提及或展示任何产品/公司时,在设计视频前使用 Scrapling 抓取产品网站的品牌数据、颜色、截图和文案。这确保视觉准确性和品牌一致性。

使用 Scrapling 脚本

bash

运行品牌数据提取脚本


bash skills/remotion-video-generator/scripts/scrapling.sh https://example.com

返回结构化品牌数据:brandName、tagline、headline、description、features、logoUrl、faviconUrl、primaryColors、ctaText、socialLinks,以及截图 URL 和 OG 图片 URL。

手动 Scrapling 提取

如果脚本不可用,直接使用 Python:

python
import json
from scrapling.fetchers import StealthyFetcher
from urllib.parse import urljoin
import re

url = https://brand.com
page = StealthyFetcher.fetch(url, headless=True)
html = page.text

def resolve(u):
return urljoin(url, u) if u and not u.startswith(http) else u

colors = list(set(re.findall(r#(?:[0-9a-fA-F]{3}){1,2}, html)))[:5]

data = {
brandName: page.css([property=og:site_name]::

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 remotion-video-generator-1776302772 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 remotion-video-generator-1776302772 技能

通过命令行安装

skillhub install remotion-video-generator-1776302772

下载

⬇ 下载 remotion-video-generator v1.0.0(免费)

文件大小: 13.57 KB | 发布时间: 2026-4-16 18:03

v1.0.0 最新 2026-4-16 18:03
remotion-video-generator v1.0.0

- Initial release of programmatic video generation workflow using Remotion and React.
- Firecrawl replaced with Scrapling for brand data extraction.
- Provides detailed step-by-step guide for setting up, building scenes, and rendering videos.
- Includes troubleshooting tips for Remotion v4 API, with required scripts and usage instructions.
- Supports creation of promotional, demo, social, and animated explainer videos with studio-quality motion graphics.
返回顶部