Install
openclaw skills install @zhouq2039-lang/tri-platform-video-analysis丢个视频链接,还你字幕稿、结构化分析和可视化 HTML 报告。支持 B站 / 抖音 / 小红书。
openclaw skills install @zhouq2039-lang/tri-platform-video-analysis支持平台:抖音 (douyin.com)、B站 (bilibili.com)、小红书 (xiaohongshu.com)
用户丢一条视频链接 → 脚本下载+转写 → 你(AI)分析字幕 → 脚本生成 HTML 报告 → 交付 HTML 文件给用户。
使用本技能前,请确认你了解以下行为:
small 模型(约 500MB)output/ 目录(默认转写后删除,可用 --keep-video 保留).txt)、分析 JSON(_analysis.json)、HTML 报告写入 output/parse.py(采集层) AI(分析层) parse.py --generate-html(交付层)
───────────── ────────── ────────────────────────────
下载 → 转写 → stdout JSON → 读字幕 → 分析 JSON → 胶囊卡片交互 HTML
脚本只负责下载、转写和 HTML 渲染,不做任何分析。分析由调用方 AI 完成——不需要外部 API Key。
最终 HTML 是一个干净的卡片式交互页面,不含任何逐字稿/连贯稿:
<em> 高亮三平台实际生成效果(点击胶囊卡片可展开详情):
抖音 — 口播类视频:

B站 — 产品测评类视频:

小红书 — 职场观点类视频:

pip install yt-dlp faster-whisper
首次运行自动下载 Whisper small 模型(约 500MB)。无需 GPU,CPU 可用。
python scripts/parse.py "视频链接"
stdout 输出单行 JSON:
{
"status": "transcribed",
"title": "视频标题",
"platform": "小红书",
"duration": 120.5,
"timed_path": "output/0810-小红书-标题-逐字稿.txt",
"plain_path": "output/0810-小红书-标题-连贯稿.txt",
"transcript": "完整字幕文本..."
}
必须从 stdout 解析。stderr 是进度日志,忽略。
读取 transcript 字段,深度理解视频内容后,按以下 schema 输出分析 JSON:
{
"meta": {
"platform": "B站",
"title": "视频标题",
"duration": "约 4 分 30 秒",
"author": "创作者(可选)",
"category": "职场",
"date": "2026.08.10"
},
"summary": "一句话总结。<em>核心概念</em> 用 em 标签包裹,页面高亮显示。",
"quotes": [
{"text": "金句原文——必须从字幕逐字摘录,不可编造"},
{"text": "第二句金句"}
],
"capsules": [
{
"id": "points",
"icon": "💡",
"title": "核心观点",
"subtitle": "3-5 条要点概括",
"detail_title": "核心观点",
"type": "points",
"content": [
{"title": "观点小标题", "body": "详细展开说明"}
]
},
{
"id": "structure",
"icon": "🎬",
"title": "结构拆解",
"subtitle": "钩子/铺陈/节奏/升华",
"type": "structure",
"content": [
{"label": "开场钩子", "body": "具体内容"},
{"label": "核心展开", "body": "具体内容"}
]
},
{
"id": "judgment",
"icon": "🔍",
"title": "内容判断",
"subtitle": "立场、可信度、可借鉴",
"type": "judgment",
"content": [
{"label": "立场", "title": "创作者视角", "body": "面向谁、核心叙事是什么"},
{"label": "可信度", "title": "判断结论", "body": "依据和理由"},
{"label": "可借鉴", "title": "内容创作者的启示", "body": "选题/结构/表达层面的借鉴点"}
]
},
{
"id": "highlights",
"icon": "🌟",
"title": "内容亮点",
"subtitle": "最值得注意的记忆点",
"detail_title": "内容亮点",
"type": "highlights",
"content": [
{"title": "亮点标题", "body": "为什么值得注意"}
]
}
]
}
分析规范:
<em> 标签:2-5 处,包裹核心判断词/概念points(编号列表)、structure(标签+内容)、judgment(三栏卡片)、contrast(左右对比)、highlights(亮点/排名列表)将分析 JSON 写入 output/_analysis.json。
python scripts/parse.py --generate-html output/_analysis.json
stdout 输出:
{"status": "generated", "html_path": "output/0810-B站-标题-报告.html"}
HTML 报告已生成在 html_path,将其展示给用户。无需额外处理。
| 参数 | 说明 |
|---|---|
视频链接(采集模式) | 抖音/B站/小红书链接 |
--generate-html <file> | 从分析 JSON 生成 HTML 报告 |
--model | Whisper 模型大小(默认 small) |
--language | 语言代码(默认 zh) |
--out-dir | 输出目录(默认 output/) |
--keep-video | 保留视频文件(默认删除) |
--cookies | Netscape 格式 cookies 文件(抖音优先走 iesdouyin API,不需要 cookies;B站/小红书偶需) |
xsec_token 参数(「分享→复制链接」获取)