网淘吧来吧,欢迎您!

Remotion Server技能使用说明

2026-03-29 新闻来源:网淘吧 围观:9
电脑广告
手机广告

Remotion 服务器

使用 Remotion 在任何 Linux 服务器上无头渲染视频。无需 Mac 或图形界面。

设置(一次性)

安装浏览器依赖项:

Remotion Server

bash {baseDir}/scripts/setup.sh

快速开始

创建项目:

bash {baseDir}/scripts/create.sh my-video
cd my-video

渲染视频:

npx remotion render MyComp out/video.mp4

模板

聊天演示(Telegram 风格)

创建一个带有动画聊天消息的手机模型。

bash {baseDir}/scripts/create.sh my-promo --template chat

编辑src/messages.json

[
  {"text": "What's the weather?", "isUser": true},
  {"text": "☀️ 72°F and sunny!", "isUser": false}
]

标题卡片

简单的动画标题/介绍卡片。

bash {baseDir}/scripts/create.sh my-intro --template title

聊天示例用法

  • "制作一个展示关于 [主题] 的聊天视频"
  • "为 [功能] 创建宣传视频"
  • "渲染一个显示 [文本] 的标题卡片"

Linux 依赖项

设置脚本会安装:

  • libnss3、libatk、libcups2、libgbm 等。
  • Chrome Headless Shell 所需

适用于 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

输出格式

  • MP4 (h264) - 默认
  • WebM (vp8/vp9)
  • GIF
  • PNG 序列
npx remotion render MyComp out/video.webm --codec=vp8
npx remotion render MyComp out/video.gif --codec=gif

隐私说明

⚠️所有模板仅使用虚假演示数据!

  • 虚假 GPS 坐标(旧金山:37.7749, -122.4194)
  • 占位符名称和值
  • 绝不包含真实用户数据

发布前请务必审阅生成的内容。

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏
文章底部电脑广告
手机广告位-内容正文底部

相关文章

您是本站第326288名访客 今日有221篇新文章/评论