Remotion video enhancer

From anbeime/skill · View interactive version

Remotion video enhancer is an AI agent skill from the GitHub repository anbeime/skill. 影片与视频编辑及自媒体创作者在制作PPT或视频需要提升视觉表现力时,使用此技能可一键生成Remotion风格的高级转场与Framer Motion交互动画,自动规划动画序列,让内容呈现专业级动态效果。

How to use this skill

Skill file

Remotion 视频增强工具

任务目标

前置准备

```

moviepy>=1.0.3

pillow>=9.0.0

```

```bash

# Ubuntu/Debian

sudo apt-get install ffmpeg

# macOS

brew install ffmpeg

```

操作步骤

标准流程(完整动画增强)

步骤 1:接收输入数据

根据协同模式,接收不同输入:

步骤 2:动画规划与配置
  1. 分析输入内容,确定动画类型:
  1. 调用 scripts/animation_planner.py:

```bash

python scripts/animation_planner.py \

--input ./input_data \

--style dynamic \

--output ./animation_plan.json

```

  1. 输出动画配置(animation_plan.json),包含:
步骤 3:视频转场增强(FFmpeg)
  1. 调用 scripts/video_transitions.py:

```bash

python scripts/video_transitions.py \

--input ./video.mp4 \

--transitions ./animation_plan.json \

--output ./enhanced_video.mp4

```

  1. 支持的转场类型:
  1. 每种转场支持自定义:
步骤 4:HTML 动画增强(Framer Motion)
  1. 调用 scripts/html_animations.py:

```bash

python scripts/html_animations.py \

--input ./ppt_data.json \

--template enhanced_viewer.html \

--output ./animated_viewer.html

```

  1. Framer Motion 动画效果:
  1. 交互式特性:
步骤 5:输出增强内容
  1. 视频增强输出:enhanced_video.mp4
  2. HTML 动画输出:animated_viewer.html
  3. 动画配置:animation_plan.json

与其他 Skill 协同

与 ppt-generator Skill 协同
用户请求:"生成一个带高级转场的 PPT 视频"

┌─────────────────────────────────────────────────────────┐
│  ppt-generator Skill                                    │
├─────────────────────────────────────────────────────────┤
│  7 角色协作生成 JSON 数据                                │
│  输出:ppt_data.json                                    │
└─────────────────────────────────────────────────────────┘
                          │
                          ▼ JSON 数据
┌─────────────────────────────────────────────────────────┐
│  remotion-video-enhancer Skill                         │
├─────────────────────────────────────────────────────────┤
│  1. 动画规划(animation_planner.py)                     │
│  2. HTML 动画增强(html_animations.py)                 │
│  3. 输出:animated_viewer.html                          │
└─────────────────────────────────────────────────────────┘
与 nanobanana-ppt-visualizer Skill 协同
用户请求:"为生成的播放器添加 Framer Motion 动画"

┌─────────────────────────────────────────────────────────┐
│  nanobanana-ppt-visualizer Skill                        │
├─────────────────────────────────────────────────────────┤
│  生成 HTML 播放器 + 图片                                  │
│  输出:viewer.html, slide-*.png                          │
└─────────────────────────────────────────────────────────┘
                          │
                          ▼ HTML 文件
┌─────────────────────────────────────────────────────────┐
│  remotion-video-enhancer Skill                         │
├─────────────────────────────────────────────────────────┤
│  1. 使用 Framer Motion 增强 viewer.html                 │
│  2. 添加页面过渡、元素入场、交互效果                      │
│  3. 输出:animated_viewer.html                           │
└─────────────────────────────────────────────────────────┘
与 ppt-roadshow-generator Skill 协同
用户请求:"为路演视频添加高级转场效果"

┌─────────────────────────────────────────────────────────┐
│  ppt-roadshow-generator Skill                           │
├─────────────────────────────────────────────────────────┤
│  10 角色协作生成路演视频                                  │
│  输出:roadshow_video.mp4                                │
└─────────────────────────────────────────────────────────┘
                          │
                          ▼ 视频文件
┌─────────────────────────────────────────────────────────┐
│  remotion-video-enhancer Skill                         │
├─────────────────────────────────────────────────────────┤
│  1. 动画规划(animation_planner.py)                     │
│  2. 视频转场增强(video_transitions.py)                 │
│  3. 应用 Remotion 风格转场                              │
│  4. 输出:enhanced_roadshow_video.mp4                   │
└─────────────────────────────────────────────────────────┘

独立使用模式

模式 A:仅生成动画配置
python scripts/animation_planner.py \
  --input ./ppt_data.json \
  --style dynamic \
  --output ./animation_plan.json
模式 B:仅增强视频转场
python scripts/video_transitions.py \
  --input ./video.mp4 \
  --transitions ./animation_plan.json \
  --output ./enhanced_video.mp4
模式 C:仅生成 HTML 动画
python scripts/html_animations.py \
  --input ./ppt_data.json \
  --template enhanced_viewer.html \
  --output ./animated_viewer.html

可选分支

资源索引

注意事项

使用示例

示例 1:与 ppt-generator 协同生成动画播放器

示例 2:为路演视频添加高级转场

示例 3:自定义动画配置

```json

{

"transitions": [

{"type": "slide", "direction": "right", "duration": 1.5},

{"type": "zoom", "scale": 1.2, "duration": 1.0}

]

}

```

示例 4:批量处理多个视频

```bash

python scripts/video_transitions.py \

--input-dir ./videos/ \

--transitions ./animation_plan.json \

--output-dir ./enhanced_videos/

```

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.