SuperAPI AI 工具集

json-render-remotion

通用与其它

查看项目

更新于 10-15 23:41

技能介绍

用途:@json-render/remotion 是 json-render 的 Remotion 渲染器,把 JSON 时间线规格转换成视频合成,适合用声明式数据结构描述视频内容与时间轴。

主要能力:提供 Renderer(将 spec 渲染为 Remotion 合成)、schema(时间线 schema)、standardComponents 与 standardComponentDefinitions(预置组件及目录定义)、useTransition(过渡动画 hook)、ClipWrapper(为片段包裹过渡)。内置标准组件包括 TitleCard、TypingText、ImageSlide、SplitScreen、QuoteCard、StatCard、TextOverlay、LowerThird。时间线规格包含 composition(id、fps、width、height、durationInFrames)、tracks、clips 与 audio。

用法:使用 @remotion/player 的 Player,把 component 设为 Renderer,inputProps 传入 spec,并依据 spec.composition 设置 durationInFrames、fps、width、height。可通过 @json-render/core 的 defineCatalog 结合 schema 与 standardComponentDefinitions、standardTransitionDefinitions、standardEffectDefinitions 定义视频目录;自定义组件使用 zod 声明 props、type 与 defaultDuration,并在 Renderer 的 inputProps 中传入 components 注册表。

适用场景:以 JSON 规格程序化生成或预览视频、构建可配置的视频合成、组合标准与自定义视频片段。

限制:资料未提供安装命令、完整 API 细节、收费、平台支持与性能说明,暂未提供。