You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何仅部署Remotion Player而非Remotion Studio以实现渲染?

关于Remotion部署:无需部署Studio,仅用Player实现渲染

核心结论

  • 完全不需要部署Remotion Studio到S3存储桶,仅部署Remotion Player就可以实现视频渲染功能。
  • Remotion Studio只是开发阶段用于预览、编辑的工具,生产部署完全可以剔除。

具体解决办法

1. 修改部署脚本过滤Studio文件

如果用Remotion自带的remotion deploy site命令部署,可在脚本里添加排除规则,只打包上传Player相关产物:
在package.json的scripts里调整部署命令:

{
  "scripts": {
    "deploy": "remotion deploy site --exclude \"studio/**\" --exclude \"src/studio/**\""
  }
}

或者直接指定只构建Player:

{
  "scripts": {
    "deploy": "remotion deploy site --bundle ./dist/player"
  }
}

2. 通过配置文件禁用Studio构建

在项目根目录的remotion.config.ts中添加配置,直接禁用Studio的打包流程:

import { Config } from '@remotion/cli';

Config.setStudioEnabled(false);

这样构建时只会生成Player的产物,部署时自然不会包含Studio相关文件。

3. 手动上传时只传Player目录

如果是手动上传到S3,只需要上传dist/player目录下的所有文件,完全忽略dist/studio或者项目中Studio相关的入口文件即可。

补充说明

  • Remotion Player是渲染视频的核心组件,只要它和你的模板代码部署正确,就能正常发起并完成渲染。
  • 如果你用Remotion Lambda做渲染,甚至不需要把Player部署到S3——Lambda会直接使用你的代码包执行渲染,Player主要用于前端预览渲染结果。

内容的提问来源于stack exchange,提问作者kunj dhakad

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.19 06:45:58