SuperAPI AI 工具集

video-common

设计与创作

查看项目

更新于 10-15 18:46

技能介绍

用途:这是 ai-music-video-maker 项目中所有视频技能共用的 Remotion 公共工具与模式集合,被其他视频技能引用,不直接调用。

主要能力:提供共享的 Remotion 视频工具与参考说明,包括项目结构、关键 API 和新增合成方式。项目结构为 remotion-assistant/,含 src/index.tsx(入口)、src/Root.tsx(合成注册表)、src/compositions/(视频合成)、src/components/(可复用组件)、public/(静态资源:fonts、images、audio)、out/(渲染输出)。

关键 API:useCurrentFrame() 返回当前帧号;useVideoConfig() 返回 { width, height, fps, durationInFrames };interpolate(frame, [in], [out]) 映射数值;spring({ frame, fps, config }) 生成物理动画。

使用方式:新增合成时,在 src/compositions/ 创建组件,在 src/Root.tsx 中用 <Composition> 注册,并设置 id、component、durationInFrames、fps、width、height。更多细节参见 codecs.md(编码选项)与 animations.md(动画模式)。

限制:作为共享引用,不被直接调用;资料未提供安装命令、收费或价格信息。