SuperAPI AI 工具集

remotion-best-practices

前端与建站

查看项目

更新于 10-16 05:06

技能介绍

用途:处理 Remotion 代码时获取领域知识,在 React 中创建视频。

主要能力:新建项目脚手架、用 useCurrentFrame() 与 interpolate() 做属性动画、用 Sequence 控制延迟与时长、在 public/ 放置素材并用 staticFile() 引用、用 Img/Video/Audio 组件加载图片视频音频、在 src/Root.tsx 定义 Composition 的宽高帧率时长、用 calculateMetadata 动态计算元数据。

使用方式:空目录可用 npx create-video@latest --yes --blank --no-tailwind my-video 初始化;用 npx remotion studio 预览;可用 npx remotion still [composition-id] --scale=0.25 --frame=30 渲染单帧检查。字幕、FFmpeg、静音检测、音频可视化、音效、3D、字体、转场、透明视频、参数化视频、地图、配音等主题分别加载对应 rules 文件。

限制:禁止使用 CSS 过渡或动画,禁止使用 Tailwind 动画类名,否则无法正确渲染。其余收费、平台与效果信息暂未提供。