Skip to main content

渲染你的视频

有多种方法可以渲染你的视频。

🌐 There are various ways to render your video.

Remotion 工作室

🌐 Remotion Studio

To render a video, click the " Render" button.
Choose your preferred settings, then confirm using the Render video button.

Remotion Studio 部署

🌐 Remotion Studio deployment

可以将 Remotion Studio 部署到云中的长时间运行的服务器上,然后你的非技术团队成员只需使用一个 URL 就可以访问它。查看 Deploy the Remotion Studio 指南以了解如何操作。

🌐 It’s possible to deploy the Remotion Studio onto a long-running server in the cloud, which can then be accessed by your non-technical team members using just a URL. Check out the Deploy the Remotion Studio guide to learn how to do this.

命令行接口

🌐 CLI

使用 render CLI 命令 渲染视频:

🌐 Render a video using render CLI command:

npx remotion render HelloWorld

修改合成 ID 以选择不同的视频进行渲染,或者如果你想覆盖默认设置,可以在末尾添加输出路径。

🌐 Modify the composition ID to select a different video to render, or add an output path at the end if you want to override the default.

你可以省略作品名称,将显示一个选择器:

🌐 You can leave out the composition name and a picker will be shown:

npx remotion render

SSR

Remotion 拥有一个功能齐全的服务器端渲染 API。可以在 服务器端渲染 API 上查看更多信息。

🌐 Remotion has a full-featured server-side rendering API. Read more about it on the server-side rendering API.

AWS Lambda

查看 Remotion Lambda

🌐 Check out Remotion Lambda.

GitHub 操作

🌐 GitHub Actions

你也可以使用 GitHub Action 渲染视频。

🌐 You can also render a video using a GitHub Action.

谷歌云运行

🌐 Google Cloud Run

Remotion for Cloud Run 的 Alpha 版本已可用。 我们计划将来对其进行更改,以便它与 Remotion Lambda 共享运行时。

🌐 An alpha version of Remotion for Cloud Run is available.
We plan to change it in the future so it shares a runtime with Remotion Lambda.

变体

🌐 Variants

仅音频

🌐 Audio-only

你也可以只导出音频,而不是渲染视频。你可以这样做

🌐 Instead of rendering a video, you can also just export the audio.

图片序列

🌐 Image Sequence

你可以使用 --sequence 命令输出一系列图片,而不是编码为视频。

🌐 Instead of encoding as a video, you can use the --sequence command to output a series of image.

静止图片

🌐 Still images

如果你想要一张图片,你可以使用命令行接口或 Node.JS API来实现。

🌐 If you want a single image, you can do so using the CLI or Node.JS API.

动图

🌐 GIF

参见:渲染为GIF

🌐 See: Render as GIF

透明视频

🌐 Transparent videos

请参阅:创建覆盖

🌐 See: Creating overlays

另请参阅

🌐 See also