关于 remotion-best-practices
为使用 Remotion 编写代码的开发者提供领域知识与示例规则。内容涵盖动画、媒体素材、字幕、合成和渲染等主题。
主要功能
- 01动画与场景转场规则
- 02图像、视频和音频处理
- 03字幕与转录指南
- 04合成、时序和元数据设置
- 05Node.js 视频渲染指南
适用场景
- 01制作 Remotion 动画和场景序列
- 02在视频中加入素材与字幕
- 03通过 Node.js API 渲染视频
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ aliang-cn/ skills --skill remotion-best-practices安装后在 Claude Code 中输入/remotion-best-practices确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
rules/3d.mdanimations.mdassets.mdaudio.mdcalculate-metadata.mdcan-decode.mdcharts.mdcompositions.mddisplay-captions.mdextract-frames.mdfonts.mdget-audio-duration.mdget-video-dimensions.mdget-video-duration.mdgifs.mdimages.mdimport-srt-captions.mdlottie.mdmeasuring-dom-nodes.mdmeasuring-text.mdrender.mdsequencing.mdtailwind.mdtemplates.mdtext-animations.mdtiming.mdtranscribe-captions.mdrules/assets/charts-bar-chart.tsxtext-animations-typewriter.tsxtext-animations-word-highlight.tsx详细介绍
适用场景
每当你处理 Remotion 代码时,都可以使用此技能来获取领域专属知识。
使用方法
阅读各个规则文件,了解详细说明和代码示例:
- rules/3d.md - 在 Remotion 中使用 Three.js 和 React Three Fiber 创建 3D 内容
- rules/animations.md - Remotion 的基础动画技能
- rules/assets.md - 将图像、视频、音频和字体导入 Remotion
- rules/audio.md - 在 Remotion 中使用音频和声音:导入、裁剪、音量、速度、音高
- rules/calculate-metadata.md - 动态设置合成的时长、尺寸和属性
- rules/can-decode.md - 使用 Mediabunny 检查浏览器能否解码视频
- rules/charts.md - Remotion 的图表和数据可视化模式
- rules/compositions.md - 定义合成、静帧、文件夹、默认属性和动态元数据
- rules/display-captions.md - 在 Remotion 中显示字幕,包括 TikTok 风格页面和单词高亮
- rules/extract-frames.md - 使用 Mediabunny 提取视频中指定时间戳的帧
- rules/fonts.md - 加载 Google Fonts 和本地字体
- rules/get-audio-duration.md - 使用 Mediabunny 获取音频文件的时长(秒)
- rules/get-video-dimensions.md - 使用 Mediabunny 获取视频文件的宽度和高度
- rules/get-video-duration.md - 使用 Mediabunny 获取视频文件的时长(秒)
- rules/gifs.md - 在 Remotion 时间轴上同步显示 GIF
- rules/images.md - 使用 Img 组件在 Remotion 中嵌入图像
- rules/import-srt-captions.md - 使用 @remotion/captions 将 .srt 字幕文件导入 Remotion
- rules/lottie.md - 在 Remotion 中嵌入 Lottie 动画
- rules/measuring-dom-nodes.md - 测量 Remotion 中 DOM 元素的尺寸
- rules/measuring-text.md - 测量文本尺寸、使文本适应容器以及检查溢出
- rules/sequencing.md - Remotion 的序列编排模式:延迟、裁剪、限制项目时长
- rules/tailwind.md - 在 Remotion 中使用 TailwindCSS
- rules/templates.md - Remotion 模板和样板项目合集
- rules/text-animations.md - Remotion 的排版和文本动画模式
- rules/timing.md - Remotion 中的插值曲线:线性、缓动、弹簧动画
- rules/transcribe-captions.md - 转录音频,在 Remotion 中生成字幕
- rules/transitions.md - 场景转场模式
- rules/trimming.md - Remotion 的裁剪模式:剪去动画开头或结尾
- rules/videos.md - 在 Remotion 中嵌入视频:裁剪、音量、速度、循环、音高
- rules/render.md - 使用 Node.js API(@remotion/renderer)以编程方式渲染视频
评论
支持 Markdown