Skip to content

Bilibili ​

Bilibili is a Chinese video and live streaming platform.

URL Format ​

https://live.bilibili.com/{room_id}

Features ​

  • ✅ FLV and HLS streams
  • ✅ Danmaku collection
  • ✅ Multiple quality options
  • ✅ QR code login support

Authentication ​

Bilibili accounts are account profiles on the Bilibili platform.

  1. Go to Settings → Platforms and open Bilibili
  2. In the Network tab, click Add account, enter a label, keep Scan QR code selected and click Show QR code (to log an existing account in again, use Log in again on its row or Log in with QR code in its … menu)
  3. Scan the QR code with the Bilibili mobile app
  4. The profile is saved when the login completes; to record with it, click Change above the account list, select it under Account selection and save the page

Manual Cookies ​

Add a profile in the same place, choose Paste cookies and paste the cookies of a logged-in browser session:

CookieRequiredDescription
SESSDATAYesSession token
DedeUserIDOptionalUser ID; lets danmaku connect as the account

Pasted cookies are not renewed automatically: once Bilibili stops accepting them, the account needs a new login. Automatic refresh needs the access token and refresh token that a QR code login saves with the profile; the browser's ac_time_value is not such a token.

Quality Options ​

QualityDescription
10000原画 (Original)
400蓝光 (Blu-ray)
250超清 (Super HD)
150高清 (HD)
80流畅 (Smooth)

Notes ​

WARNING

A logged-in account is required for recording Super HD (1080P) and above quality.

INFO

  • Some streams require login for higher quality
  • VIP-only streams require corresponding membership
  • HLS streams may be delayed when the streamer first goes online.

Released under the MIT License.