SuperAPI AI 工具集

remotion-render

通用与其它

查看项目

更新于 10-15 22:10

技能介绍

用途:把 React/Remotion 组件代码交给 inference.sh 云端渲染,输出 MP4 视频,无需本地搭建 Remotion 渲染环境。

主要能力:输入 TSX 代码(须默认导出组件),可指定 composition_id、props、width、height、fps、duration_seconds、codec。代码可 import remotion 与 react,支持 useCurrentFrame、useVideoConfig、spring、interpolate、AbsoluteFill、Sequence、Audio、Video、Img 等 API,可实现淡入文字、动画计数器、弹簧动画、序列动画等。

使用方式:先安装 CLI 技能 npx skills add belt-sh/cli,再执行 belt login 登录。渲染示例:belt app run infsh/remotion-render --input '{"code": "...", "duration_seconds": 3, "fps": 30, "width": 1920, "height": 1080}'。也可用 Python SDK:from inferencesh import inference,client.run({"app": "infsh/remotion-render", "input": {...}}),结果取 result["output"]["video"];传 stream=True 可获取渲染进度。

适用场景:用代码批量生成动画视频、数据可视化短片、带 props 的模板化视频等。

限制:依赖 inference.sh 平台与 belt CLI,需登录;资料未提供收费、价格、渲染时长上限、并发或输出存储等细节,暂未提供。