Bilibili video subtitle SRT export and semi-automatic transcription

Bilibili video subtitle SRT export and semi-automatic transcription

Solving the current problem of not being able to use official transcription.

madeBy
SShawn
installedBy
6
fromYouMind
B站字幕转录与SRT导出

https://www.bilibili.com/video/BV1SPPWzkEpB/?spm_id_from=333.1387.collection.video_card.click&vd_source=54d189621bad7cfb2bc05f8da31384ed

已提取 bvid:BV1SPPWzkEpB。现在进入第2步,调用 B站 view 接口获取权威视频信息。

view 接口返回的关键信息:

  • 标题:认知03.06:女星经纪人交易模型2026重制版(1)
  • UP主:懒惰投资者
  • aid:116180023117618 | cid:36489072225
  • 时长:765 秒(12分45秒)
  • 付费状态:免费视频(pay=0, ugc_pay=0, arc_pay=0 ✅)

现在进入第3步:打开浏览器,引导你手动开启 AI 字幕。

浏览器已连接,而且 B站视频页已经打开了!让我先确认页面状态。

页面已加载完毕。B站播放器上的「字幕」按钮(e24)已识别到。

根据经验教训,B站字幕菜单项位于 shadow DOM 中,浏览器扩展无法自动点击「中文」选项,需要你手动操作一下:


请在刚才打开的B站视频页中操作:

  1. 点击播放器右下角的 「字幕」 按钮
  2. 在弹出的菜单中选择 「中文」(不是「关闭」)
  3. 等待 5-10 秒,让 AI 字幕开始生成
  4. 然后回复 「继续」

当前视频:认知03.06:女星经纪人交易模型2026重制版(1)(up:懒惰投资者,时长 12:45)

继续

好的,现在获取当前时间戳并请求 player/v2 接口。

⚠️ 重要发现:该视频为充电专属视频!

player/v2 返回的关键信息:

字段
is_upower_exclusivetrue
is_upower_playtrue
elec_high_level.title「六阶深入解读」充电专属视频
need_login_subtitlefalse(已登录 ✅)
AI 字幕ai-zh / ai-en / ai-ja 等 6 种语言均可用

根据经验教训(MEMORY.md v4):充电专属视频的 AI 字幕极大概率会持续错配。 B站 AI 字幕系统可能无法正常访问充电专属视频的音频内容,会返回其他视频(如空镜头教程、手机评测等)的缓存错配字幕,且无论重试多少次都无法获得正确字幕。

不过这次有一个积极的信号:字幕 URL 路径中包含了当前视频的 aid+cid11618002311761836489072225),这在之前的错配案例中是没有的。所以这次的字幕有可能是正确的。

我建议以下方案,请选择一个:

继续

Instructions

The author has set the instructions to private. Below is a brief overview.

description

Under the condition of successfully crawling subtitles and generating SRT files, the minimum consumption in AUTO mode is 77 points. Currently, YM's transcription of Bilibili videos is not very good and will directly cause it to freeze (as shown in Figure 3). Before official optimization, this skill could obtain official AI subtitles from Bilibili videos (link/BV number/YouMind video file) using a logged-in browser, generate readable transcription documents, and selectively export standard SRT subtitle files (local .srt + YouMind document). Built-in CID calibration and subtitle consistency verification avoid mismatched/expired subtitles. The operation process has been simplified as much as possible. According to the skill prompt, when needed (see demonstration), manually click on the AI ​​to recognize subtitles in the already opened Bilibili video webpage, select Chinese, and you can then extract the subtitles. This is currently the most stable extraction method, as subtitles originally included in the video are generally not recognized. The file will be automatically downloaded to (~.download; Mac system. I don't know about Windows). Click "Upload" in the line-by-line view. ---————————————————————————————————————————————————--- The following issues that may be encountered and can be resolved are: 1. When adding the Bilibili link to the .ym file, there may be a failure to extract the subtitles. In this case, click the "..." in the upper right corner and select "Re-extract". After clicking, the normal screen will most likely appear, but there will be no video window. However, adding a new link again will allow the extraction to succeed. Alternatively, close all pages and reopen them / click the Bilibili shared link (instead of the webpage link) to try. 2. Occasionally, subtitle extraction errors may occur during skill execution. This may be due to charging/free videos. Let the AI ​​automatically repair the task. This problem should not occur if you follow the instructions. The official response is as follows: 1. The Bilibili video itself does not have a subtitle file. When we save the Bilibili link, it automatically tries to retrieve the subtitle file, but it failed, hence the empty result. 2. The subtitle retrieval task is initiated by AI, which attempts to retrieve the video stream for transcription, but Bilibili does not provide this method. Therefore, it keeps spinning, indicating failure. ------ Solution 1: Check if there are corresponding videos on YouTube and TikTok. These two websites support video stream transcription, so the second solution mentioned above will succeed. ------ Future optimizations: 1. We will enhance the behavior of the AI's `grabFileTranscript` to prevent Bilibili from retrieving subtitles, thus avoiding this situation. Looking forward to the official adaptation. Until then, this can serve as a temporary measure, allowing me to earn some points and recoup some losses. Thank you everyone. If you have any questions, you can @ShawnHam in the group.

Find your next favorite skill

Explore more curated AI skills for research, creation, and everyday work.

Explore all skills