Summary
智能剪口播 Skill。當使用者提供影片原始檔並要求「剪掉沒講話的片段」「去靜音」「剪口播」「自動剪輯」「像剪映那樣自動去停頓」時請一定要使用此技能。底層走 auto-editor(開源),偵測音量低於閾值的片段並剪掉,輸出只有人聲的版本。給 Claude Code 與 OpenAI Codex 共用。
mathruffian-dot/2026-youtube · Archived
智能剪口播 Skill。當使用?
npx skills add mathruffian-dot/2026-youtube --skill smart-cut
智能剪口播 Skill。當使用者提供影片原始檔並要求「剪掉沒講話的片段」「去靜音」「剪口播」「自動剪輯」「像剪映那樣自動去停頓」時請一定要使用此技能。底層走 auto-editor(開源),偵測音量低於閾值的片段並剪掉,輸出只有人聲的版本。給 Claude Code 與 OpenAI Codex 共用。
This repository is archived — consider an actively maintained alternative.
影片去靜音剪輯與字幕精修工作流。當使用?
2 installs從已剪過的長片(cut.mp4 + .srt)擷取亮點片段,組成 ≤2 分鐘的短片。當使用?
1 installsCodex 專用的 2026Youtube 總控工作流 Skill。當使用? output,或說「使用 codex-youtube-video-workf…
1 installsRelated neighbors and high-traction skills in the same topics — useful to compare before installing.
基于 opencli 命令的智能搜索路由器。当用户想要使用 OpenCLI、CLI 或 API 搜索、查询、查找或研究信…
15.7K installs企业微信智能表格?
15.4K installs>
7.6K installs使用 wecom-cli 创建企业微信智能文档,读取页面?
7K installsToken-optimized structural code search using tree-sitter AST parsing. Use instead of reading fu…
6.6K installsSmart Money analytics on OKX: leaderboard traders, position tracking, trade records, aggregated…
5K installsOther skills from mathruffian-dot/2026-youtube.
npx skills add mathruffian-dot/2026-youtube
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Parsed from SKILL.md frontmatter.
Files included with this skill beyond the listing page.
SKILL.md
3,416 B
SUMMARY.md
383 B
使用者提供 mp4/mov/mkv/webm 原始影片,並要求:
偵測音訊中音量低於閾值的片段 → 剪掉 → 把剩下的片段 concat 回成一支影片。剪映「智能剪口播」就是這類演算法。本 Skill 用開源 auto-editor 包裝。
# 第一次使用要裝
pip install auto-editor
ffmpeg -version # auto-editor 內部會呼叫 ffmpeg
| 參數 | 值 | 為什麼 |
|---|---|---|
--margin |
0.2s |
每段語音前後留 0.2 秒,避免截太死 |
--edit |
audio:threshold=0.04 |
音量門檻 4%,一般口播合適 |
--export |
default(剪掉靜音) |
不是加速,是直接砍掉 |
口播者語速慢/停頓多 → 調 --margin 至 0.3s。 雜訊多 → 提高 threshold 到 0.06。
python "skills/smart-cut/scripts/smart_cut.py" \
"raw/<影片代號>/原始.mp4" \
--out "working/<影片代號>/<影片代號>.cut.mp4"
腳本內部會:
<影片代號>.cut.mp4 — 去靜音後的影片原長 18:42 → 新長 12:15(剪掉 34.6%)ffmpeg -i x.cut.mp4 -vn -ar 16000 x.cut.wav)smartcut.py 已內建防護:剪輯前用 ffprobe 比對 avgframerate 與 rframerate,不一致即判定 VFR,先用 ffmpeg -fpsmode cfr -r 30 -c:v libx264 -preset veryfast -crf 18 -c:a copy 轉成暫存 CFR 檔再餵 auto-editor(音訊 copy,剪輯點與時間軸不變),完成後自動刪暫存檔並印出「偵測到 VFR,已先轉 CFR」。--margin 拉到 0.3s 或更高。--cut-out 反向保護或事後手動補回。ffmpeg -c:v libx264 -crf 23。skills/smart-cut/
├── SKILL.md # 本檔
└── scripts/
└── smart_cut.py # auto-editor 包裝腳本