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: INLINECODE0
- ✅ 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 | 语言 |
|---|
| INLINECODE2 | Chinese | 中文 |
| INLINECODE3 |
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
CODEBLOCK0
Specify Language Priority
CODEBLOCK1
Output
File name format: INLINECODE11
File structure:
CODEBLOCK2
Setup
Browser Cookie (Recommended)
For accessing member-only videos, log in to Bilibili in:
- - WSL Chromium (preferred): INLINECODE12
- 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).
Bilibili AI 字幕下载器 v2.0
快速下载Bilibili视频的AI生成字幕。
功能说明
本技能可下载Bilibili视频的AI生成字幕(自动生成的字幕)。这些字幕由B站AI系统自动生成,非创作者手动上传。
v1.x版本主要改进:
- - ✅ 可自定义语言优先级(如优先英文而非中文)
- ✅ 更优的文件名格式:标题作者日期时长BV号.txt
- ✅ 三段式文档结构(信息、摘要、全文)
- ✅ 改进的UTF-8文件名处理
- ✅ 更好的WSL Chromium/Windows Edge Cookie支持
支持的AI语言
Bilibili使用ai-前缀标识AI生成字幕:
| 代码 | 语言 | 语言 |
|---|
| 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 | 法文 |
使用方法
基本用法
bash
./scripts/bilibili
aisubtitle.sh https://www.bilibili.com/video/BVxxxxx/
指定语言优先级
bash
优先英文,回退到中文
./scripts/bilibili
aisubtitle.sh -l en,zh BVxxxxx
优先日文
./scripts/bilibili
aisubtitle.sh --lang ja BVxxxxx
按优先级指定多种语言
./scripts/bilibili
aisubtitle.sh -l en,zh,ja,es BVxxxxx
输出
文件名格式: 视频标题作者日期时长BV号.txt
文件结构:
第一部分:视频信息
├── 视频标题
├── B站链接
├── 作者
├── 发布时间
├── 视频时长
├── 原视频语言
└── 转录来源
第二部分:视频摘要
└── 自动生成的内容摘要
第三部分:完整原文
└── 完整字幕文本
设置
浏览器Cookie(推荐)
如需访问会员专属视频,请在以下浏览器中登录Bilibili:
- - WSL Chromium(推荐):chromium-browser &
- Windows Edge:正常登录
脚本会自动检测并使用可用的Cookie。
系统要求
- - 已安装yt-dlp
- 可选:已登录Bilibili的浏览器(用于会员专属视频)
注意事项
- - AI字幕由B站系统自动生成
- 准确率因内容而异(清晰语音通常为85-95%)
- 并非所有视频都有AI字幕
- 部分视频可能需要会员才能获取AI字幕
与bilibili-transcript对比
| 特性 | bilibili-ai-subtitle | bilibili-transcript |
|---|
| 用途 | 仅下载AI字幕 | 完整转录工作流 |
| 速度 |
⚡ 快速(即时下载) | 视情况而定(字幕→Whisper) |
|
字幕来源 | 仅AI | CC→AI→Whisper |
|
使用场景 | 快速获取字幕 | 完整转录 |
|
依赖项 | 仅yt-dlp | yt-dlp + 可选Whisper |
建议: 快速获取AI字幕请使用bilibili-ai-subtitle,需要完整转录(包括为无字幕视频进行语音转录)时请使用bilibili-transcript。