Nano Banana图像生成
谷歌Gemini 3
基于Remotion的无头视频渲染方案,可在任意Linux服务器运行,无需Mac或图形界面。支持聊天演示、推广视频、标题卡片等多种模板快速生成。
安装依赖(首次使用):
bash {baseDir}/scripts/setup.sh
该脚本会自动安装Chrome无头运行所需的系统依赖(libnss3、libatk、libcups2等)。Ubuntu/Debian用户也可手动执行:
sudo apt install -y libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libpango-1.0-0 libcairo2 libxcomposite1 libxdamage1 libxfixes3 libxrandr2
创建项目:
bash {baseDir}/scripts/create.sh my-video
cd my-video
使用聊天模板:
bash {baseDir}/scripts/create.sh my-promo --template chat
编辑 src/messages.json 自定义对话内容,然后渲染:
npx remotion render MyComp out/video.mp4
切换输出格式:
npx remotion render MyComp out/video.webm --codec=vp8
npx remotion render MyComp out/video.gif --codec=gif
见下方输入与输出表格。
| 项目 | 内容 |
|---|---|
| 输入 | 项目名称、模板类型(chat/title)、messages.json对话数据、–codec编码参数 |
| 输出 | 本地视频文件(MP4/WebM/GIF/PNG序列) |
| 适用人群 | 需在Linux服务器自动化生成视频的开发者、运营人员 |
| 不包含 | 视频后期编辑工具、云存储服务、外部API调用 |
| 系统要求 | Linux系统,预装node/npx,需安装Chromium依赖库 |
原始链接:https://github.com/openclaw/skills/tree/main/skills/mvanhorn/remotion-server/SKILL.md
来源类型:GitHub仓库