bilibili-subtitle-extractor

Extract AI-generated or Whisper subtitles from Bilibili videos into structured outputs.

1|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/775266553/aispeak --skill bilibili-subtitle-extractor
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bilibili-subtitle-extractor
Source: https://github.com/775266553/aispeak/tree/main/.trae/skills/bilibili-subtitle-extractor
Command: npx skills add https://github.com/775266553/aispeak --skill bilibili-subtitle-extractor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This tool automates the extraction of complete subtitles from Bilibili videos, prioritizing AI-generated subtitles and falling back to Whisper ASR when AI subtitles are unavailable.

Core Features & Use Cases

  • AI-subtitle-first workflow for Bilibili videos, with Whisper fallback to ensure coverage.
  • Outputs include raw AI subtitle JSON, generated Chinese subtitles, and Whisper-transcribed text, organized in an output directory.
  • Works for online BV links and local media, enabling batch processing and easy integration into content workflows.

Quick Start

Provide a Bilibili BV URL and run the extractor to save AI and Whisper subtitles to the configured output directories.

Frequently Asked Questions about bilibili-subtitle-extractor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract AI-generated subtitles from a Bilibili video URL?▼

This tool automates Bilibili subtitle extraction by prioritizing AI-generated subtitles from BV URLs. It organizes raw AI JSON and generated Chinese subtitles into a structured output directory for easy access.

Do I need a Bilibili cookie to extract subtitles from BV links?▼

Yes, a valid Bilibili cookie is required for accessing video content and AI subtitles via bilibili-api-python. The cookie authentication ensures the extractor can retrieve data from protected Bilibili video URLs.

Can I use Whisper ASR to transcribe local media files instead of online videos?▼

Yes, Whisper ASR processes local media files when AI subtitles are unavailable. The faster-whisper integration transcribes local video content and saves Whisper transcripts to the standardized output subdirectories.

What happens when AI subtitles are unavailable for a Bilibili video?▼

When AI subtitles are missing, the tool automatically falls back to Whisper ASR transcription using faster-whisper. This ensures complete subtitle coverage by generating transcribed text from the video audio.

What output formats does the Bilibili subtitle extractor generate?▼

The extractor produces raw AI subtitle JSON, generated Chinese subtitles, and Whisper transcribed text files. These structured outputs are organized into standardized subdirectories under a defined output directory.

What Python dependencies are needed for Bilibili subtitle extraction with Whisper fallback?▼

You need bilibili-api-python, aiohttp, and faster-whisper installed. These dependencies enable Bilibili API access, asynchronous HTTP requests, and Whisper ASR transcription for the fallback workflow.