安全风险
OpenViking
基于OpenViking的RAG系统,支持文档查询、知识管理与向量检索。
下载 196
基于 FFmpeg 的本地视频音频处理工具,支持剪辑、拼接、转码、特效等20种操作。
openclaw skills install @showtimewalker/ffmpeg-multimedia-editing命令、参数、文件名以原文为准
使用 FFmpeg 对本地视频和音频文件进行编辑处理,支持 20 种常用操作。本 Skill 不调用任何外部 API,所有处理在本地完成。
适用场景:
脚本位于 skill 目录内的 scripts/,运行时始终使用绝对路径。
设 FFMPEG_SKILL_DIR 为 .claude/skills/ffmpeg-multimedia-editing 的绝对路径。
| 功能 | 脚本 | 关键参数 |
|---|---|---|
| 字幕 | video_subtitle.py | --input, --subtitle <srt/ass>, `--mode soft\ |
| 视频拼接 | video_concat.py | --inputs a.mp4 b.mp4 ... |
| 截图 | video_screenshot.py | --input, --time, --interval, --count |
| 获取首尾帧 | video_firstlast_frame.py | --input |
| 过渡特效 | video_transition.py | --inputs a.mp4 b.mp4, `--type fade\ |
| 视频剪辑 | video_trim.py | --input, --start, --end |
| 格式转换 | video_convert.py | --input, --format webm |
| 压缩/缩放 | video_compress_scale.py | --input, --resolution 720p, --crf 28 |
| 变速 | video_speed.py | --input, --speed 0.5 |
| 水印 | video_watermark.py | --input, --watermark <img>, --position top-right |
| 裁剪/旋转/翻转 | video_crop_rotate.py | --input, --crop WxH+X+Y, --rotate 90, `--flip h\ |
| 画中画 | video_pip.py | --main, --overlay, --position bottom-right |
| 倒放 | video_reverse.py | --input |
| 分段拆分 | video_split.py | --input, --segment-duration 60 |
| 视频/GIF互转 | video_gif_convert.py | --input, `--to gif\ |
| 音画合成 | video_image_compose.py | --images <glob>, --duration 5, --audio |
| 功能 | 脚本 | 关键参数 |
|---|---|---|
| 音乐拼接 | audio_concat.py | --inputs a.mp3 b.mp3 ... |
| 音频提取/替换 | audio_extract_replace.py | --input video.mp4, --extract-audio |
| 音量调节 | audio_volume.py | --input, --volume 1.5, --normalize |
| 音频降噪 | audio_denoise.py | --input, --strength medium |
# 截图
uv run --python python $FFMPEG_SKILL_DIR/scripts/video_screenshot.py --input video.mp4 --time 00:01:30
# 视频拼接
uv run --python python $FFMPEG_SKILL_DIR/scripts/video_concat.py --inputs a.mp4 b.mp4 c.mp4
# 音频提取
uv run --python python $FFMPEG_SKILL_DIR/scripts/audio_extract_replace.py --input video.mp4 --extract-audio
# 字幕嵌入
uv run --python python $FFMPEG_SKILL_DIR/scripts/video_subtitle.py --input video.mp4 --subtitle subs.srtoutputs/ffmpeg/<operation>/(相对于 OUTPUT_ROOT,默认为项目根目录) - type — video / audio / image
- operation — 操作名称(如 subtitle, concat, trim)
- local_path — 输出文件路径
- input_path — 输入文件路径
- elapsed_seconds — 处理耗时
ffmpeg(full build 8.1+)和 ffprobe,需在 PATH 中可用OUTPUT_ROOT(可选,输出根目录,支持 ~ 展开,默认为用户主目录)已收录 1 个 Skill