douyin-video-summary by liu-wei-ai/douyin-video-summary
npx skills add https://github.com/liu-wei-ai/douyin-video-summary --skill douyin-video-summary总结抖音视频:提取音频 → 本地转录 → AI 摘要。
安装以下工具(以 macOS 为例):
brew install whisper-cpp ffmpeg
# 下载 whisper.cpp GGML 模型(推荐 small 模型以平衡速度和质量)
curl -L -o models/ggml-small.bin "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-small.bin"
当收到一个抖音链接时:
解析抖音 URL 以获取视频 ID。抖音分享链接有两种格式:
短链接:https://v.douyin.com/xxxxx/ → 跟随重定向获取视频 ID
直接链接:https://www.douyin.com/video/7604713801732365681
curl -sL -o /dev/null -w '%{url_effective}' 'https://v.douyin.com/xxxxx/' | grep -oE '[0-9]{15,}'
抖音屏蔽直接下载(yt-dlp、aria2c 都会返回 403)。使用浏览器拦截音频 URL:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
window.__audioUrls = [];
const origOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function(method, url) {
if (url && (url.includes('.mp3') || url.includes('.m4a') || url.includes('mime_type=audio'))) {
window.__audioUrls.push(url);
}
return origOpen.apply(this, arguments);
};
3. 导航到视频页面,点击播放以触发音频加载
4. 获取拦截到的 URL:window.__audioUrls
5. 使用 curl 下载(需要 Referer 请求头):
curl -H "Referer: https://www.douyin.com/" -o audio.mp4 "<audio_url>"
重要提示: aria2c 在抖音 CDN URL 上会返回 403。请始终使用带有 Referer 请求头的 curl。
ffmpeg -i audio.mp4 -ar 16000 -ac 1 -c:a pcm_s16le audio.wav
whisper-cli -m /path/to/ggml-small.bin -l zh -f audio.wav -otxt -of output
-l zh(如果不确定,可使用自动检测)读取转录文本并生成结构化摘要:
📹 **[视频标题] | [作者]**
时长:X分X秒 | 发布:YYYY-MM-DD
🎯 **核心观点:[一行核心信息]**
**1. [要点 1 标题]**
• [细节]
• [细节]
**2. [要点 2 标题]**
• [细节]
💬 **一句话总结:[简洁的要点]**
如果配置了飞书集成,则使用飞书开放 API 将摘要追加到飞书文档。API 详情请参阅 references/feishu-sync.md。
small 模型是速度和质量的最佳折衷;medium 模型在 8GB 内存的机器上可能导致内存不足每周安装量
440
代码仓库
首次出现
2026年2月19日
安全审计
安装于
codex435
gemini-cli435
kimi-cli435
github-copilot435
opencode435
amp435
Summarize Douyin videos: extract audio → transcribe locally → AI summary.
Install these tools (macOS example):
brew install whisper-cpp ffmpeg
# Download whisper.cpp GGML model (small recommended for speed/quality balance)
curl -L -o models/ggml-small.bin "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-small.bin"
When a Douyin link is received:
Parse the Douyin URL to get the video ID. Douyin share links come in two formats:
Short link: https://v.douyin.com/xxxxx/ → follow redirect to get video ID
Direct link: https://www.douyin.com/video/7604713801732365681
curl -sL -o /dev/null -w '%{url_effective}' 'https://v.douyin.com/xxxxx/' | grep -oE '[0-9]{15,}'
Douyin blocks direct downloads (yt-dlp, aria2c all get 403). Use the browser to intercept the audio URL:
window.__audioUrls = [];
const origOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function(method, url) {
if (url && (url.includes('.mp3') || url.includes('.m4a') || url.includes('mime_type=audio'))) {
window.__audioUrls.push(url);
}
return origOpen.apply(this, arguments);
};
3. Navigate to the video page, click play to trigger audio loading
4. Retrieve intercepted URLs: window.__audioUrls
5. Download with curl (Referer header required):
curl -H "Referer: https://www.douyin.com/" -o audio.mp4 "<audio_url>"
Important: aria2c will 403 on Douyin CDN URLs. Always use curl with the Referer header.
ffmpeg -i audio.mp4 -ar 16000 -ac 1 -c:a pcm_s16le audio.wav
whisper-cli -m /path/to/ggml-small.bin -l zh -f audio.wav -otxt -of output
-l zh for Chinese content (auto-detect if unsure)Read the transcription text and produce a structured summary:
📹 **[Video Title] | [Author]**
时长:X分X秒 | 发布:YYYY-MM-DD
🎯 **核心观点:[one-line core message]**
**1. [Point 1 title]**
• [detail]
• [detail]
**2. [Point 2 title]**
• [detail]
💬 **一句话总结:[concise takeaway]**
If Feishu integration is configured, append the summary to a Feishu document using the Feishu Open API. See references/feishu-sync.md for the API details.
small model is the best speed/quality tradeoff; medium may OOM on 8GB machinesWeekly Installs
440
Repository
First Seen
Feb 19, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykWarn
Installed on
codex435
gemini-cli435
kimi-cli435
github-copilot435
opencode435
amp435
AI 代码实施计划编写技能 | 自动化开发任务分解与 TDD 流程规划工具
41,400 周安装