Reference

Bilibili

Bilibili is a Chinese video and live streaming platform.

URL Format

text
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

Set Preferred Quality (QN) (quality) in the Bilibili platform settings, or override it for a template or streamer. It is the highest quality to request; the default is 30000, which asks for the best quality the room offers.

QualityDescription
30000杜比视界 (Dolby Vision), default
200004K
10000原画 (Original)
401蓝光杜比 (Blu-ray Dolby)
400蓝光 (Blu-ray)
250超清 (Super HD)
150高清 (HD)
80流畅 (Smooth)
0Lowest available

Batch Detection

Turn on Batch Detection on the platform's Specific tab to check up to 100 offline rooms in one request; see Batch detection for what it changes.

Split On Title Change

Turn on Split On Title Change (split_on_title_change) on the platform's Specific tab (or in a template or streamer override) alongside Record Danmu to start a new recording file whenever the room title changes; see Splitting recordings on title change.

Notes

Warning

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

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