Video Transition

v1.0.0

视频转场效果工具。使用 ffmpeg xfade 滤镜实现多种转场效果,包括淡入淡出、滑动、擦除、圆形展开等。 支持批量视频片段合并,自动添加转场效果。

0· 144·1 current·1 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for systiger/video-transition.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Video Transition" (systiger/video-transition) from ClawHub.
Skill page: https://clawhub.ai/systiger/video-transition
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install video-transition

ClawHub CLI

Package manager switcher

npx clawhub@latest install video-transition
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The SKILL.md and Python code implement an ffmpeg-based video transition tool (concat, xfade, fade). This requires ffmpeg/ffprobe, which the documentation declares, but the registry metadata incorrectly lists no required binaries — a minor inconsistency (the functionality itself matches the name/description).
Instruction Scope
Runtime instructions and code restrict actions to invoking ffmpeg/ffprobe on user-supplied files, creating a temporary list file for concat, and writing outputs to provided paths. The SKILL.md does not request unrelated data or system access.
Install Mechanism
No install spec (instruction-only with included Python module). No network downloads or archive extraction. The package contains a package.json (for metadata) but the implementation is Python — odd but not dangerous.
Credentials
The skill requests no environment variables, credentials, or config paths. It operates on local files and external ffmpeg binaries only, which is proportional to its purpose.
Persistence & Privilege
Skill does not request persistent/always-on privileges; it is user-invocable and may be invoked autonomously per platform defaults. It does not modify other skills or system-wide configs.
Assessment
This skill appears to do what it says: it calls ffmpeg/ffprobe to add transitions and fades to local video files. Before installing, ensure you have ffmpeg (>=4.0) and ffprobe on PATH, and run the code on trusted input files. Note two small inconsistencies: the registry metadata does not declare the required ffmpeg binary, and SKILL.md mentions a README.md that is not present — neither affects functionality but you may want to confirm the source is trustworthy. If you run it in an environment with sensitive files, avoid pointing it at directories containing secrets or system files (it operates on paths you supply).

Like a lobster shell, security has layers — review code before you run it.

latestvk97dk2exjty6tdsn41wfkb8qex83k9z8
144downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

Video Transition / 视频转场

视频转场效果工具,使用 ffmpeg xfade 滤镜实现平滑转场。

支持的转场效果

转场类型英文名效果描述
淡入淡出fade画面逐渐过渡
左滑slideleft新画面从右侧滑入
右滑slideright新画面从左侧滑入
上滑slideup新画面从下方滑入
下滑slidedown新画面从上方滑入
圆形展开circleopen圆形遮罩展开
左擦除wipeleft从右向左擦除
右擦除wiperight从左向右擦除
距离distance距离渐变
像素化pixelize像素化过渡
对角线diagtl/diagtr对角线擦除
矩形rectcrop矩形裁剪

快速使用

1. 合并视频带转场

from video_transition import concat_with_transitions

# 合并视频片段,自动添加转场
concat_with_transitions(
    video_paths=["clip1.mp4", "clip2.mp4", "clip3.mp4"],
    output_path="output.mp4",
    transition_duration=0.5
)

2. 单个转场效果

from video_transition import apply_transition

# 在两个视频之间应用特定转场
apply_transition(
    video1="intro.mp4",
    video2="main.mp4",
    output="merged.mp4",
    transition="fade",
    duration=0.5
)

3. 批量添加淡入淡出

from video_transition import add_fade_to_clips

# 为所有片段添加淡入淡出
add_fade_to_clips(
    input_dir="clips/",
    output_dir="faded/",
    fade_in=0.3,
    fade_out=0.3
)

参数说明

concat_with_transitions()

参数类型默认值说明
video_pathslist-视频路径列表
output_pathstr-输出路径
transition_durationfloat0.5转场时长(秒)
transitionslist循环使用所有转场类型列表
auto_fadeboolTrue是否自动添加淡入淡出

apply_transition()

参数类型默认值说明
video1str-第一个视频
video2str-第二个视频
outputstr-输出路径
transitionstr"fade"转场类型
durationfloat0.5转场时长
offsetfloat自动计算转场起始时间

依赖

ffmpeg >= 4.0

技术原理

使用 ffmpeg 的 xfade 滤镜实现视频转场:

ffmpeg -i clip1.mp4 -i clip2.mp4 \
  -filter_complex "[0:v][1:v]xfade=transition=fade:duration=0.5:offset=5[outv]" \
  -map "[outv]" output.mp4

触发词

视频转场转场效果xfade视频合并淡入淡出

文件结构

video-transition/
├── SKILL.md              # 技能说明
├── README.md             # 详细文档
├── video_transition.py   # 核心模块
├── example.py            # 使用示例
└── package.json          # 包信息

License

MIT

Author

systiger

Comments

Loading comments...