catcut

A localized workflow skill for ad video montage: after dropping a batch of assets into a folder, it supports local shot splitting, local ASR transcription, an agent performing semantic annotation and plan generation with platform models in-chat, and local assembly/export. Supports aspect ratio/cropping/watermark/background music/transitions/speed/color grading/vocal separation. The AI orchestration runs in the host agent (WorkBuddy / opencode) during dialogue with no user API token; editing and audio/video processing run locally using open-source tools (e.g., ffmpeg, whisper, demucs), assets do not leave the machine. The goal is to assemble an open-source engine stack to approximate MixCut–level montage capability.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "catcut" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-56dc19dfe870541111ce680dc677c4e04acfb8f2b5da3c850324a8ea80b1719a. Verify the upstream source and version against https://skillhub.cn/skills/user_49271746/catcut before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A localized workflow skill for ad video montage: after dropping a batch of assets into a folder, it supports local shot splitting, local ASR transcription, an agent performing semantic annotation and plan generation with platform models in-chat, and local assembly/export. Supports aspect ratio/cropping/watermark/background music/transitions/speed/color grading/vocal separation. The AI orchestration runs in the host agent (WorkBuddy / opencode) during dialogue with no user API token; editing and audio/video processing run locally using open-source tools (e.g., ffmpeg, whisper, demucs), assets do not leave the machine. The goal is to assemble an open-source engine stack to approximate MixCut–level montage capability.

0 Downloads

Introduction source: third_party · user_49271746 · 0.3.0 Reference

SkillPi interpretation

Software, accounts and paid services
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: catcut
displayName: CatCut 本地混剪(agent 驱动零 token)
slug: catcut
version: 0.3.0
description: >-
  广告视频混剪——把一批素材丢进目录,本地切分镜、本地 ASR 转写、agent 用平台模型做
  语义标注与方案生成、本地拼接导出,并支持比例/裁剪/水印/背景音乐/转场/倍速/调色/人声分离。
  AI 大脑由宿主 agent(WorkBuddy / opencode)在对话里完成,零用户 API token;剪辑体力活全本地
  ffmpeg + whisper + demucs,视频不出本机。开源引擎拼装,最大化接近 MixCut 的剪辑能力。

CatCut 本地混剪(agent 驱动 · 零 token · v0.3)

把广告素材(建议统一 9:16 竖屏)批量转成多条差异化信息流广告。 核心卖点:不消耗你的任何 AI token——语义标注和方案生成这两步由 WorkBuddy agent (也就是我)用平台自身模型在对话里完成;切分、转写、拼接、字幕、调色、人声分离全是本地 ffmpeg + whisper + demucs,只耗算力不耗钱。

v0.3 在 v0.2 基础上,把开源本地引擎拼装进来,剪辑类能力覆盖到接近 MixCut(比例 / 裁剪 / 水印 / 背景音乐 / 转场 / 倍速 / 调色 / 人声分离),同时保持 agent 驱动、零 token。

触发场景

  • 「帮我把这些素材混剪出 10 条广告」「批量生成差异化口播视频」
  • 「广告混剪 / 视频分镜切分 / AI 剪辑 / 自动出片」
  • 「混剪时加个水印 / 转成 9:16 / 去人声只留 BGM / 铺点背景音乐」
  • 你只想下指令,剩下的切分→标注→方案→出片我来跑

依赖(全部本地,零云端)

  • FFmpeg / FFprobe:系统已装(~/.local/bin 或 MixCut 自带),自动定位。
  • whisper-cli:MixCut 自带 ggml-large-v3-turbo.bin(中文模型已下),本地 ASR。
  • demucs:MixCut 自带 GGML 版 demucs.exe + ggml-htdemucs-4s.bin,本地人声分离。
  • Python 3.11+:仅标准库 + 无强制第三方包。
  • ❌ 不需要任何 AI Key、不调任何外部 API。
  • 🔶 可选增强:FunASR(pip install funasr torch)——本地 paraformer-zh 中文转写,比 whisper 更准;未安装时 asr.py 自动回退 whisper,零 token 默认不破。

工作流(agent 亲跑,6–7 步)

  1. 导入切分 — python segment.py <素材目录> 本地 ffmpeg 做场景/静音/I-frame 检测 + 边界优化,输出每个视频的分镜切分点 JSON。
  2. 本地转写 — python asr.py <workdir> --media <素材目录> [--backend auto|whisper|funasr] 本地 whisper-cli / FunASR 离线 ASR,把字幕文本回填到每个分镜(零 token)。
  3. 🔥 语义标注(agent 大脑) — python analyze.py prepare <workdir> 脚本打印每条分镜的 ASR 文本 + 11 种语义类型,由我在对话里按文案判断类型/位置/质量分, 写出 labels.json,再 python analyze.py apply <workdir> labels.json 合并回去。
  4. 🔥 方案生成(agent 大脑) — python scheme.py auto <workdir> 出 baseline, 或我直接写方案草稿 draft.json(可给单分镜写 "speed": 1.2 做倍速)再 python scheme.py build draft.json 校验出片。
  5. 变体组合 — python combine.py <schemes> --limit 50 纯逻辑笛卡尔积采样,展开配音变体(溢出安全)。
  6. 🔊 可选人声分离 — python audio.py <视频/音频> --mode instrumental|vocals|bgm --out out/ 本地 demucs 抽人声/伴奏,产出 wav 供 export.py --bgm 铺底或单独使用。
  7. 导出 — python export.py <scheme.json> --media <素材目录> --out out/ [增强参数] 本地 ffmpeg 拼接 + 中文硬字幕烧录 + 剪辑增强,导出 MP4。

第 3、4 步就是"用 WorkBuddy 的免费模型当大脑",你不用花一分钱 token。

export.py 增强参数(v0.3 新增,全本地 ffmpeg)

参数 取值 作用
--ratio 9:16 / 16:9 / 1:1 / original 目标画幅(默认 original 不转)
--fit pad(黑边)/ crop(裁中心) 转画幅方式
--max-res 整数,默认 1080 最长边上限(呼应 MixCut 限 1080)
--watermark "文字" 文字水印(右下角半透明)
--logo path.png 图片 Logo 叠加(与 watermark 二选一)
--bgm path.mp3 + --bgm-vol 0.3 背景音乐混入(循环铺满成片)
--transition xfade / none 分镜间转场(默认 none)
--transition-dur 秒,默认 0.4 转场时长
--speed 浮点,默认 1.0 全局倍速(也可在 draft 里给单分镜写 "speed")
--color warm / cool / cinematic / none 调色预设
--subtitle on / off 是否烧录字幕(默认 on)
--subtitle-size / --subtitle-color / --subtitle-bg / --subtitle-pos 样式 字幕字号/颜色/底框/位置
--font path.ttf 指定中文字体

零增强参数时走 concat 快路(复制封装,不二次编码);用了任一增强则走 filter_complex 组装。

能力矩阵:CatCut v0.3 对标 MixCut

MixCut 功能 CatCut v0.3 是否覆盖 怎么用 token
分镜切分(场景+静音+I帧) ✅ segment.py 0
语音转写 ✅(whisper,FunASR 可选更准) asr.py 0
语义标注 / 方案 ✅(agent 大脑) analyze/scheme 0(用平台免费模型)
比例 / 分辨率 / 裁剪 / 缩放 ✅ export --ratio --fit --max-res 0
字幕烧录 + 样式 ✅ export --subtitle-* 0
水印 / Logo ✅ export --watermark / --logo 0
背景音乐 / 混音 ✅ export --bgm 0
转场 ✅(xfade 淡入淡出) export --transition xfade 0
倍速 ✅ export --speed / 单分镜 speed 0
调色 ✅(warm/cool/cinematic) export --color 0
人声分离 / 提取 BGM ✅ audio.py --mode 0
变体批量导出 ✅ combine.py 0
声音克隆(qwen3-tts-vc) ⚠️ 仅本地方案(GPT-SoVITS/RVC,CPU 慢) 需额外装模型,v0.3 预留接口 本地算力
镜头替换 / 图生视频(通义万相 Wan) ❌ 卡硬件 需 8–40GB 显存,本机无 GPU 暂不可行 —
图形时间线 GUI ❌(agent 对话驱动替代) — —

结论:剪辑类能力 ~90% 覆盖且零 token;仅"生成类"(声音克隆慢、图生视频需 GPU) 是硬缺口,与 agent 驱动零 token 的定位不冲突——这些本就依赖云端/显卡。

关键设计

  • agent 驱动,不脱离 agent:语义决策与方案由宿主 agent 完成,脚本只是 agent 调用的本地工具。
  • 开源引擎拼装:ffmpeg(剪辑/调色/转场/混音)+ whisper/FunASR(转写)+ demucs(分离), 均为 MIT/Apache 开源本地组件,视频不出本机。
  • 11 种语义类型:噱头引入 / 痛点 / 产品方案 / 效果展示 / 信任背书 / 价格对比 / 活动福利 / 行动号召 / 产品定位 / 产品使用教育 / 过渡。
  • 位置约束 > 语义连贯 > 差异化:开头不用结尾片段,相邻类型符合「允许组合」列表。
  • 确定性组合:变体展开用混合进制枚举,顺序可复现。

注意事项

  • 中文音频需系统装 CJK 字体(如 Noto Sans CJK SC 或 Windows 微软雅黑),否则字幕缺字。
  • 大视频 whisper 转写较慢(需加载 1.6GB 模型),属正常本地算力消耗。
  • demucs 分离耗时随音频长度增加,属正常本地算力消耗。
  • 素材统一 9:16 竖屏投放手机端信息流效果最佳;非竖屏可用 --ratio 9:16 转。
  • --transition xfade 要求各分镜分辨率/帧率一致(脚本已统一为 30fps + 目标画幅)。

脚本清单

脚本 职责 依赖
segment.py 本地切分镜 ffmpeg
asr.py 本地 ASR(whisper / 可选 FunASR) MixCut whisper
analyze.py 标注准备 + agent 写回(不调 API) 无
scheme.py 方案组装(auto / build,不调 API) narrative
combine.py 变体组合(笛卡尔积) 无
narrative.py 叙事引擎(候选池/Top-N/差异度) 无
export.py 拼接 + 字幕 + 剪辑增强导出 ffmpeg
audio.py 本地人声分离(demucs) MixCut demucs

纯逻辑模块 combine.py / narrative.py 已通过自测;analyze/scheme 为 agent 驱动,零 token。

Current listing version

0.3.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 解决广告视频批量混剪的高频刚需,零 token 成本,本地化处理保障隐私
  • 功能覆盖接近 MixCut,适合大量有广告素材处理需求的用户
Trigger Precision85/100

Highlights

  • 触发词覆盖合理,包含多种变体如「混剪」「分镜切分」「AI剪辑」「自动出片」等,边界清晰
Structure and Standards90/100

Highlights

  • 结构清晰,分步骤描述工作流,含端到端示例,frontmatter完整
Execution Reliability88/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制,本地化处理保障可靠性
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 37

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.