wjs-reframing-video

仓库创建 2026年5月11日最近提交 4 天前SkillHot 收录 21 天前
▸ 精选理由

通过 active-speaker 跟踪生成可复用的 .crop.json,便于批量重构视频。

▸ 风险提示

依赖 MediaPipe、ffmpeg 等本地工具,需较高计算资源与安装权限。

这个 Skill 做什么

按活跃说话者跟踪裁切视频,生成横竖屏互转的裁剪计划。

横竖屏互转通过裁切窄条实现,且用 MediaPipe 面部关键点和嘴部活动量跟踪活跃说话者,让说话人始终在框内。会产生 .crop.json 保存裁剪计划和分段决策,原片不被修改,适合把访谈或课程做成抖音/Shorts 等短视频格式。

▸ 展开 SKILL.md 英文原文

Use when the user wants to convert a video between horizontal and vertical orientations while preserving the inverted aspect ratio (16:9 ↔ 9:16, 4:3 ↔ 3:4, 21:9 ↔ 9:21). The skill crops a narrow band from the source and tracks the active speaker — the person whose mouth is moving — via MediaPipe face landmarks and mouth-aspect-ratio variance, so the talker stays in frame even when other people are visible. Triggers — "横转竖", "竖转横", "做成竖屏发抖音/视频号/小红书", "16:9 to 9:16", "make this vertical for Reels / TikTok / YouTube Shorts", "crop to portrait", "convert to landscape".

开发编程视频剪辑人脸跟踪重构通用
107
Stars
15
Forks
34
仓库内 Skill
+8
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/jianshuo/claude-skills/main/wjs-reframing-video/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/jianshuo/claude-skills/main/wjs-reframing-video/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# wjs-reframing-video

Convert a video's orientation by **cropping** a narrow band from the source — not by physically rotating it. The crop window follows the **active speaker** (the face whose mouth is *moving*), not just the largest or most-confident face. A `.crop.json` sidecar records the crop plan, the per-segment speaker decisions, and the parameters used. The original input is never modified.

## When to use

- Repurposing a 16:9 podcast / interview / talk for vertical short-video platforms (WeChat Channels 视频号, Douyin 抖音, Xiaohongshu 小红书, YouTube Shorts, TikTok, Reels).
- Repurposing a 9:16 phone recording for horizontal players (YouTube long-form, blog embeds).
- Repurposing 4:3 ar
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有