创建叠加层
如果您想要将 Remotion 视频导出以在传统视频编辑软件中用作叠加层或过渡效果,您可以将其导出为支持 Final Cut Pro、Adobe Premiere 和 Davinci Resolve 的透明 Apple ProRes 文件。
将视频导出为 ProRes 文件
1
确保您的合成没有背景颜色。如果您在编辑器中切换透明选项,您应该看到一个棋盘背景。 2
要将视频导出为 ProRes 文件 ,请按照以下步骤设置 remotion.config.ts
文件: remotion.config.tstsx
import {Config } from "@remotion/cli/config";Config .setVideoImageFormat ("png");Config .setPixelFormat ("yuva444p10le");Config .setCodec ("prores");Config .setProResProfile ("4444");
remotion.config.tstsx
import {Config } from "@remotion/cli/config";Config .setVideoImageFormat ("png");Config .setPixelFormat ("yuva444p10le");Config .setCodec ("prores");Config .setProResProfile ("4444");
并使用以下命令触发渲染
bash
npx remotion render
bash
npx remotion render
或者,您可以直接在命令行上设置参数:
bash
npx remotion render --image-format=png --pixel-format=yuva444p10le --codec=prores --prores-profile=4444
bash
npx remotion render --image-format=png --pixel-format=yuva444p10le --codec=prores --prores-profile=4444
使用模板
Use our template by cloning the GitHub repo or running npx create-video --overlay
.
在您的视频编辑软件中使用
现在,您可以简单地将视频导入到您的视频编辑软件中。您可以在 Remotion 项目的 out 文件夹中找到视频。