← 返回 Skills 市场
gkd2323c

Bilibili Video Summary

作者 gkd2323c · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
35
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bilibili-video-summary
功能描述
Extract and summarize Bilibili videos. Fetches subtitles or GPU-transcribed audio, danmaku (scrolling comments), video comments, and description — outputs st...
使用说明 (SKILL.md)

Bilibili Video Summary Tool

Extract full content from a Bilibili video — transcript/subtitles, danmaku, comments, and description — then use your own LLM capabilities to produce a deep summary. No external AI API required (no OpenAI / Gemini key needed).

Capabilities

Data Source Method Priority
CC Subtitles Bilibili API Fastest, used if available
Audio Transcription whisper.cpp + Vulkan GPU Automatic fallback when no subtitles
Video Description yt-dlp Always captured
Danmaku (scrolling comments) yt-dlp Parsed, analyzed for frequent content
Comments Bilibili Comment API Hot-sorted, deduplicated, top liked extracted

Workflow

When you receive a Bilibili video link and are asked to summarize it, follow these steps:

Step 1: Extract all data

python bili-transcript.py "\x3Cvideo_url>"

The script automatically:

  1. Gets video title, uploader, duration, description
  2. Attempts Bilibili CC subtitles (fastest, used if available)
  3. Falls back to GPU transcription: download audio → convert to wav → whisper.cpp with Vulkan
  4. Downloads and analyzes danmaku (scrolling comments)
  5. Fetches video comments, sorted by likes

Output files are saved to ./bili-output/:

  • transcript.txt — full transcript/subtitle text
  • danmaku.json — danmaku data with statistics
  • comments.json — comment data with top-liked

The JSON output includes preview text, danmaku summary, and top comments.

Step 2: Read full transcript

The JSON preview truncates at 2000 characters. Read the full file:

cat ./bili-output/transcript.txt

Step 3: Read danmaku and comments

Review community response data:

cat ./bili-output/danmaku.json
cat ./bili-output/comments.json

Step 4: Compose your summary

Use your own LLM capabilities to produce a comprehensive summary. Suggested structure:

Video Overview — Title, uploader, duration, transcription source (subtitle / GPU). Key info from the description (project links, update notes, etc.).

Core Content — What the video is about. Fluent paragraph summary of the main narrative.

Key Points — Notable arguments, data points, or information worth highlighting.

Community Response (optional) — Reactions from danmaku and comments. Skip if content is insubstantial (spam, trolling, no valuable discussion).

  • Danmaku analysis: look for frequently repeated phrases (community memes/reactions), informative questions, technical discussions, controversy points
  • Comment analysis: look for top-liked opinions, creator interactions, user-reported issues, technical insights

Assessment (optional) — Content quality, information density, notable strengths or weaknesses.

Available Actions

# Video metadata only
python bili-transcript.py "\x3CURL>" --action info

# CC subtitles only (if available)
python bili-transcript.py "\x3CURL>" --action subtitle

# Force GPU transcription (skip subtitle check)
python bili-transcript.py "\x3CURL>" --action transcribe

# Danmaku only
python bili-transcript.py "\x3CURL>" --action danmaku

# Comments only
python bili-transcript.py "\x3CURL>" --action comments

# Custom output directory
python bili-transcript.py "\x3CURL>" --output ./my-output

Environment Variables

Variable Purpose
WHISPER_CPP_DIR Path to whisper.cpp directory (containing whisper-cli)
WHISPER_MODEL Path to whisper model file (e.g., ggml-large-v3-turbo.bin)
BILI_OUTPUT_DIR Default output directory (default: ./bili-output)

Performance Reference

Video Length Total Time Notes
5 minutes ~15s GPU transcription is fast
12 minutes ~22s Download + convert + transcribe
1 hour ~2-3 min Depends on audio density
Danmaku/Comments ~5-10s Depends on comment volume

Dependencies

  • Python packages: yt-dlp, av (PyAV)
  • Transcription engine: whisper.cpp with Vulkan support (optional, only needed if no CC subtitles)
  • Model: ggml-large-v3-turbo.bin (~1.6GB, download separately)
  • GPU: Any Vulkan-compatible GPU (NVIDIA, AMD, Intel) — auto-detected
  • No external AI API keys required

Limitations

  • Requires internet access to Bilibili
  • Some content requires login (paid courses, restricted videos) — may fail
  • Danmaku and comment APIs may be rate-limited
  • whisper.cpp does not support m4a; script auto-converts via PyAV
  • Very long videos (>2 hours) take significant transcription time; try --action subtitle first
  • Comments are fetched from the first 3 pages (~60 comments); may not cover very hot videos fully
安全使用建议
This skill looks coherent and not malicious based on the provided artifacts. Before installing, make sure you trust the Python script, yt-dlp, whisper.cpp, and model files; be careful about using logged-in Bilibili cookies or profiles; and delete the generated output directory if you do not want transcripts or comments retained locally.
功能分析
Type: OpenClaw Skill Name: bilibili-video-summary Version: 1.0.0 The skill bundle is a legitimate tool for extracting and summarizing Bilibili video content. The core logic in `bili-transcript.py` uses well-known utilities like `yt-dlp` and `whisper.cpp` to fetch metadata, subtitles, and transcribe audio. The script handles subprocess calls safely using lists rather than shell strings, and there is no evidence of data exfiltration, credential theft, or malicious prompt injection in `SKILL.md`. All network activity is directed toward Bilibili APIs as expected for the stated functionality.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The declared purpose matches the artifacts: it fetches Bilibili subtitles, audio transcripts, danmaku, comments, and descriptions for summarization.
Instruction Scope
The instructions are scoped to user-requested Bilibili video summarization and do not contain evidence of goal overriding or hidden agent behavior.
Install Mechanism
There is no install spec; setup relies on user-installed Python packages plus external tools such as yt-dlp and whisper.cpp/whisper-cli.
Credentials
Network access, media download/transcription, and local file writes are expected for this purpose, but users should be aware these operations can consume time, bandwidth, disk, and GPU resources.
Persistence & Privilege
The skill persists transcripts, danmaku, and comments under an output directory. This is disclosed and purpose-aligned, with no evidence of background persistence or self-propagation.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bilibili-video-summary
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bilibili-video-summary 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: subtitle extraction, GPU transcription (whisper.cpp+Vulkan), danmaku, comments, structured JSON output
元数据
Slug bilibili-video-summary
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Bilibili Video Summary 是什么?

Extract and summarize Bilibili videos. Fetches subtitles or GPU-transcribed audio, danmaku (scrolling comments), video comments, and description — outputs st... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 35 次。

如何安装 Bilibili Video Summary?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bilibili-video-summary」即可一键安装,无需额外配置。

Bilibili Video Summary 是免费的吗?

是的,Bilibili Video Summary 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Bilibili Video Summary 支持哪些平台?

Bilibili Video Summary 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Bilibili Video Summary?

由 gkd2323c(@gkd2323c)开发并维护,当前版本 v1.0.0。

💬 留言讨论