Xpersona
视

视频字幕提取与总结(B站+抖音+YouTube+小红书)

CLAWHUB · Unverified

This skill should be used when the user shares a video link (Bilibili/B站, Douyin/抖音, YouTube, Xiaohongshu/小红书) and asks to extract subtitles, summarize the v... Skill: 视频字幕提取与总结(B站+抖音+YouTube+小红书) Owner: zhangligong0826 Summary: This skill should be used when the user shares a video link (Bilibili/B站, Douyin/抖音, YouTube, Xiaohongshu/小红书) and asks to extract subtitles, summarize the v... Tags: bilibili:3.2.0, danmaku:3.2.0, diarize:3.2.0, douyin:3.2.0, latest:3.2.0, speech-recognition:3.2.0, subtitle:3.2.0, transcription:3.2.0, video-summary:3.2.0, xiaohongshu:3.2.0, youtube:

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17fkessx81a56fqqj4p7t2m5d841g54:bilibili-summarizer
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-zhangligong0826-bilibili-summarizer/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

43,719 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: bilibili-summarizer
description: "This skill should be used when the user shares a video link (Bilibili/B站, Douyin/抖音, YouTube, Xiaohongshu/小红书) and asks to extract subtitles, summarize the video content, or evaluate its information density. Also supports local video files. Trigger phrases include 总结这个B站视频, 提取字幕, bilibili链接, BV号, 信息密度, 帮我看这个视频, 语音转字幕, 字幕管理, 字幕收藏, 抖音视频总结, 总结抖音, 总结YouTube, 总结小红书, 视频字幕, or any message containing a bilibili.com, douyin.com, youtube.com, xiaohongshu.com, or xhslink.com URL, or a video file path (.mp4/.mkv/.mov)."
---

# 视频字幕提取与总结技能(B站 + 抖音 + YouTube + 小红书 + 本地文件)

## 技能概述

从 B站、抖音、YouTube、小红书视频及本地视频文件提取字幕(支持 API 字幕 + AI 语音识别双通道),生成结构化总结与信息密度评分,并提供弹幕分析、关键帧截图、说话人分离、SRT 字幕导出等高级功能。

## 支持的平台

| 平台 | API字幕 | ASR语音识别 | 总结评分 | 弹幕分析 | 链接格式 |
|------|---------|------------|----------|----------|----------|
| **B站** | ✅ | ✅ | ✅ | ✅ | `bilibili.com/video/BVxxx` 或 `BVxxx` |
| **抖音** | ❌ | ✅ | ✅ | ❌ | `douyin.com/video/xxx` 或 `v.douyin.com/xxx` |
| **YouTube** | ❌ | ✅ | ✅ | ❌ | `youtube.com/watch?v=xxx` 或 `youtu.be/xxx` |
| **小红书** | ❌ | ✅ | ✅ | ❌ | `xiaohongshu.com/explore/xxx` 或 `xhslink.com/xxx` |
| **本地文件** | ❌ | ✅ | ✅ | ❌ | `/path/to/video.mp4` |

## v3.0 新增功能

- ✅ **一键流程** (`pipeline.py`) — 自动完成全部步骤,Agent 只需调一次
- ✅ **批量处理** — 支持多个链接同时处理
- ✅ **B站收藏夹/合集** — 自动提取收藏夹内所有视频
- ✅ **本地视频文件** — 直接拖入本地 mp4/mkv/mov 文件
- ✅ **YouTube 支持** — yt-dlp 下载音频 + ASR 识别
- ✅ **小红书支持** — yt-dlp 下载音频 + ASR 识别 + 网页信息提取
- ✅ **SRT 字幕导出** — 标准字幕格式,可导入任意播放器
- ✅ **说话人分离** — 识别多人对话(FunASR SD 模型)
- ✅ **弹幕分析** — 词频统计、密度图、高赞弹幕(仅B站)
- ✅ **关键帧截图** — 固定间隔或场景切换检测

## 脚本清单

所有脚本位于 `~/.workbuddy/skills/bilibili-summarizer/scripts/`:

| 脚本 | 功能 | 依赖 |
|------|------|------|
| **`pipeline.py`** | ⭐ 一键流程(推荐使用) | yt-dlp, ffmpeg, FunASR/Whisper |
| `video_fetcher.py` | 提取视频信息 + API 字幕(B站/抖音/YouTube/小红书) | Python 标准库 / yt-dlp |
| `video_audio.py` | 下载/提取视频音频(B站/抖音/YouTube/小红书/本地) | yt-dlp, ffmpeg |
| `speech_to_text.py` | 语音转文字(ASR + 说话人分离 + SRT导出) | FunASR 或 Whisper |
| `danmaku_analyzer.py` | B站弹幕分析(词频/密度/热评) | Python 标准库 |
| `frame_extractor.py` | 关键帧截图(间隔/场景检测) | ffmpeg |
| `subtitle_manager.py` | 字幕收藏管理 | Python 标准库 |
| `bilibili_fetcher.py` | B站专用(向后兼容) | Python 标准库 |
| `bilibili_audio.py` | B站专用(向后兼容) | yt-dlp, ffmpeg |

---

## ⭐ 推荐使用:一键流程(pipeline.py)

### 单个视频

```bash
python3 ~/.workbuddy/skills/bilibili-summarizer/scripts/pipeline.py "https://www.bilibili.com/video/BVxxxx"
python3 ~/.workbuddy/skills/bilibili-summarizer/scripts/pipeline.py "https://v.douyin.com/xxx"
python3 ~/.workbuddy/skills/bilibili-summarizer/scripts/pipeline.py "https://youtube.com/watch?v=xxx"
python3 ~/.workbuddy/skills/bilibili-summarizer/scripts/pipeline.py "https://www.xiaohongshu.com/explore/xxx"
python3 ~/.workbuddy/skills/bilibili-summarizer/scripts/pipeline.py "/path/to/local_video.mp4"
```

### 批量处理

```bash
# 多个链接空格分隔
python3 ~/.workbuddy/skills/bilibili-summarizer/scripts/pipeline.py "链接1" "链接2" "链接3"

# B站收藏夹
python3 ~/.workbuddy/skills/bilibili-summarizer/scripts/p

_meta.json

{
  "ownerId": "kn72p5sdnyn2wz8vcf56yqxvyn82q7ra",
  "slug": "bilibili-summarizer",
  "version": "3.2.0",
  "publishedAt": 1775086481507
}

skill-card.md

## Description:

Extracts subtitles from Bilibili, Douyin, YouTube, Xiaohongshu, and local video files, then helps agents produce structured summaries, information-density ratings, danmaku analysis, key-frame screenshots, speaker diarization, and SRT exports.

This skill is ready for commercial/non-commercial use.

## Publisher:

[zhangligong0826](https://clawhub.ai/user/zhangligong0826)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and external users use this skill when an agent needs to process video links or local media from Bilibili, Douyin, YouTube, Xiaohongshu, and local files into transcripts, summaries, credibility notes, information-density scores, optional danmaku analysis, screenshots, and saved subtitle exports.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Crafted or untrusted URLs can cause unintended network fetches while resolving, downloading, or caching media.

Mitigation: Use trusted URLs and local files, and run with network egress controls that block loopback, private, and metadata-service addresses.

Risk: Downloaded media, generated transcripts, screenshots, and subtitle records may remain in a local cache and contain sensitive content.

Mitigation: Avoid confidential media unless local retention is acceptable, and review or clear the cache after processing sensitive transcripts.

Risk: ASR engines and media tools may download or execute model and dependency code in the runtime environment.

Mitigation: Pin dependencies and ASR models in a controlled environment before serious or commercial use.

Risk: Author and key-person background analysis can be misleading if the agent lacks reliable background information.

Mitigation: Require explicit uncertainty notices for unknown backgrounds and add extra trustworthiness warnings for medical, legal, financial, or other sensitive domains.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/zhangligong0826/skills/bilibili-summarizer)
- [Bilibili video metadata API](https://api.bilibili.com/x/web-interface/view)
- [Bilibili player subtitle API](https://api.bilibili.com/x/player/v2)

## Skill Output:

**Output Type(s):** [Text, Markdown, JSON, Files, Shell commands, Guidance]

**Output Format:** [Markdown summaries plus JSON processing results, SRT/TXT subtitle files, and JPG key-frame files]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May cache downloaded audio, generated transcripts, frame images, and subtitle records locally under the skill cache.]

## Skill Version(s):

3.2.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to 视频字幕提取与总结(B站+抖音+YouTube+小红书) and adjacent AI workflows.