remotion-short-video-system-lite 是做什么的?
一个基于 Remotion 的轻量级短视频生成系统技能。
功能特性
- 使用 React 组件定义视频场景和动画
- 支持自定义转场效果、字体、颜色和布局
- 可直接输出 MP4 视频文件
- 适用于 AI Agent(如 Claude Code、Cursor、Codex)
使用方法
- 安装依赖:
npm install remotion @remotion/player
- 编写视频组件:
import { Composition } from "remotion";
export const MyVideo: React.FC = () => {
return (
<div style={{ backgroundColor: "#000", color: "#fff" }}>
<h1>Hello, Remotion!</h1>
</div>
);
};
- 渲染视频:
npx remotion render src/index.tsx out/hello.mp4
注意事项
- 确保 Node.js 版本 >= 16
- 更多详情请参考 Remotion 官方文档