关于 remotion-render
remotion-render 是用于将 Remotion 合成内容渲染为视频或静态图像的技能。它指导使用 Remotion 内置浏览器,并涵盖指定帧渲染和透明视频输出。
主要功能
- 01将合成内容渲染为视频
- 02渲染静态图像
- 03将指定帧导出为图像
- 04透明视频渲染指南
适用场景
- 01渲染完成的 Remotion 合成内容
- 02从合成内容生成静态图像
- 03导出指定帧用于审阅
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ remotion-dev/ remotion --skill remotion-render安装后在 Claude Code 中输入/remotion-render确认已加载。
附带文件transparent-videos.mdagents/openai.yaml
详细介绍
通用渲染策略
使用 Remotion 自带的浏览器进行渲染,包括使用
<HtmlInCanvas> 的合成。它包含所需的浏览器 API 和 Remotion 的浏览器修复。根据需要让 Remotion 下载或更新该浏览器。不要重复使用录制用的浏览器,也不要设置 --browser-executable、browserExecutable 或 chromeMode,除非用户明确要求使用其他浏览器。
使用以下命令渲染视频:
npx remotion render
选项完整列表:https://www.remotion.dev/docs/cli/render.md
使用以下命令渲染静帧:
npx remotion still
选项完整列表:https://www.remotion.dev/docs/cli/still.md
如需在一次调用中将多帧渲染为图像,请使用 render --frames:
npx remotion render [composition-id] out/frames --frames=0,30,90 --image-format=png
更多选项请参阅 https://www.remotion.dev/docs/cli/render.md#--frames。
透明视频
有关渲染透明视频的信息,请参阅透明视频。
评论
支持 Markdown