bilibili-ai-subtitle

Download Bilibili AI-generated subtitles (auto-subtitles) for videos. Use when you need to quickly get subtitles from Bilibili videos that have AI-generated captions. Supports 9 languages: Chinese, English, Japanese, Spanish, Arabic, Portuguese, Korean, German, French. Language priority can be customized.

3,891 stars

Best use case

bilibili-ai-subtitle is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Download Bilibili AI-generated subtitles (auto-subtitles) for videos. Use when you need to quickly get subtitles from Bilibili videos that have AI-generated captions. Supports 9 languages: Chinese, English, Japanese, Spanish, Arabic, Portuguese, Korean, German, French. Language priority can be customized.

Teams using bilibili-ai-subtitle should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/bilibili-ai-subtitle/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/54lynnn/bilibili-ai-subtitle/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/bilibili-ai-subtitle/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How bilibili-ai-subtitle Compares

Feature / Agentbilibili-ai-subtitleStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Download Bilibili AI-generated subtitles (auto-subtitles) for videos. Use when you need to quickly get subtitles from Bilibili videos that have AI-generated captions. Supports 9 languages: Chinese, English, Japanese, Spanish, Arabic, Portuguese, Korean, German, French. Language priority can be customized.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Bilibili AI Subtitle Downloader v2.0

Download AI-generated subtitles from Bilibili videos quickly.

## What This Skill Does

This skill downloads **AI-generated subtitles** (自动生成的字幕) from Bilibili videos. These are subtitles automatically created by Bilibili's AI system, not manually uploaded by creators.

**Key improvements from v1.x:**
- ✅ Customizable language priority (e.g., prefer English over Chinese)
- ✅ Better filename format: `Title_Author_Date_Duration_BVid.txt`
- ✅ Three-part document structure (Info, Summary, Full Text)
- ✅ Improved UTF-8 filename handling
- ✅ Better WSL Chromium/Windows Edge Cookie support

## Supported AI Languages

Bilibili uses `ai-` prefix for AI-generated subtitles:

| Code | Language | 语言 |
|------|----------|------|
| `ai-zh` | Chinese | 中文 |
| `ai-en` | English | 英文 |
| `ai-ja` | Japanese | 日文 |
| `ai-es` | Spanish | 西班牙文 |
| `ai-ar` | Arabic | 阿拉伯文 |
| `ai-pt` | Portuguese | 葡萄牙文 |
| `ai-ko` | Korean | 韩文 |
| `ai-de` | German | 德文 |
| `ai-fr` | French | 法文 |

## Usage

### Basic Usage
```bash
./scripts/bilibili_ai_subtitle.sh "https://www.bilibili.com/video/BVxxxxx/"
```

### Specify Language Priority
```bash
# Prefer English, fallback to Chinese
./scripts/bilibili_ai_subtitle.sh -l en,zh "BVxxxxx"

# Prefer Japanese
./scripts/bilibili_ai_subtitle.sh --lang ja "BVxxxxx"

# Multiple languages in order of preference
./scripts/bilibili_ai_subtitle.sh -l en,zh,ja,es "BVxxxxx"
```

## Output

**File name format:** `VideoTitle_Author_Date_Duration_BVid.txt`

**File structure:**
```
第一部分:视频信息
├── 视频标题
├── B站链接
├── 作者
├── 发布时间
├── 视频时长
├── 原视频语言
└── 转录来源

第二部分:视频摘要
└── 自动生成的内容摘要

第三部分:完整原文
└── 完整字幕文本
```

## Setup

### Browser Cookie (Recommended)

For accessing member-only videos, log in to Bilibili in:
- **WSL Chromium** (preferred): `chromium-browser &`
- **Windows Edge**: Log in normally

The script will automatically detect and use available cookies.

## Requirements

- `yt-dlp` installed
- Optional: Browser with Bilibili login (for member-only videos)

## Notes

- AI subtitles are generated automatically by Bilibili's system
- Accuracy varies (typically 85-95% for clear speech)
- Not all videos have AI subtitles available
- Some videos may require membership to access AI subtitles

## Comparison with bilibili-transcript

| Feature | bilibili-ai-subtitle | bilibili-transcript |
|---------|---------------------|---------------------|
| **Purpose** | Download AI subtitles only | Full transcription workflow |
| **Speed** | ⚡ Fast (instant download) | Varies (subtitles → Whisper) |
| **Subtitle sources** | AI only | CC → AI → Whisper |
| **Use case** | Quick subtitle grab | Complete transcription |
| **Dependencies** | yt-dlp only | yt-dlp + optional Whisper |

**Recommendation:** Use `bilibili-ai-subtitle` for quick AI subtitle download, use `bilibili-transcript` when you need complete transcription (including voice transcription for videos without subtitles).

Related Skills

bilibili-sentiment-dashboard

3891
from openclaw/skills

B站/哔哩哔哩视频运营分析。当用户询问B站/B站视频/Bilibili的视频运营分析,评论情绪、评论区情感、弹幕情绪、口碑、正评负评、好评差评时触发。支持BV号、AV号或视频链接。

bilibili-downloader

3891
from openclaw/skills

Download videos, audio, subtitles, and covers from Bilibili using bilibili-api. Use when working with Bilibili content for downloading videos in various qualities, extracting audio, getting subtitles and danmaku, downloading covers, and managing download preferences.

bilibili-subtitle

3891
from openclaw/skills

处理 B 站(哔哩哔哩)视频字幕的完整工作流。能力包括:(1)引导用户扫码登录获取 Cookie;(2)自动获取视频字幕(优先 AI 字幕,自动回退 CC 字幕);(3)生成视频内容摘要;(4)当用户询问"某内容在哪个时间段"时,从字幕文件中精准定位时间戳。当用户提供 B 站视频链接、BVID,或提到"b站字幕""帮我看视频""视频摘要""视频哪里讲到了""字幕提取"等任何与 B 站视频内容理解相关的场景时,务必使用此 skill。即使用户只是随口提到一个 bilibili 链接,也应该触发此 skill。

subtitle-generator

3891
from openclaw/skills

当用户需要生成字幕、制作字幕、字幕对齐、ASR识别、语音转文字时使用此技能。触发词:生成字幕, 字幕生成, 制作字幕, 视频字幕, 语音识别, ASR字幕, Whisper字幕, 字幕制作, 视频转字幕, 字幕对齐, 音频转字幕, 语音转文字, 自动字幕, ASR识别, faster-whisper, subtitle, subtitles, caption, transcription, speech to text

Bilibili

3891
from openclaw/skills

Design videos for cultural resonance on Bilibili. Analyze danmu psychology, meme triggers, collective reaction points, and community-native emotional beats to increase deep engagement.

Movie Subtitle Viewer Skill

3891
from openclaw/skills

让 AI 通过字幕「看」电影的 OpenClaw 技能。

bilibili-transcript

3891
from openclaw/skills

Transcribe Bilibili videos to text with high accuracy using Whisper medium model. Use when the user provides a Bilibili video URL (BVxxxxx) and wants to: (1) Extract the complete audio content as text with high accuracy, (2) Get a detailed summary of the video content, (3) Save the transcript as a formatted TXT file instead of posting long text to Discord. Automatically detects CC subtitles if available, otherwise uses Whisper medium model with GPU acceleration. Output saves to 'Bilibili transcript' folder by default, includes video metadata, summary section, and full transcript in Simplified Chinese.

bilibili-insight

3891
from openclaw/skills

B 站 UP 主分析、视频数据追踪、粉丝画像、爆款内容拆解。适合内容创作者、品牌方、MCN 机构。

jkvideo-bilibili-react-native

3819
from openclaw/skills

Expert skill for building and extending JKVideo, a React Native Bilibili-like client with DASH playback, danmaku, WBI signing, and live streaming

---

3891
from openclaw/skills

name: article-factory-wechat

Content & Documentation

humanizer

3891
from openclaw/skills

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

Content & Documentation

find-skills

3891
from openclaw/skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

General Utilities