Reference

Supported Platforms

rust-srec supports 14 streaming platforms with automatic stream detection and recording.

Platform List

PlatformURL FormatProtocolDanmaku
Bilibililive.bilibili.com/{room_id}FLV/HLS✅
Douyinlive.douyin.com/{room_id}FLV/HLS✅
Douyudouyu.com/{room_id}FLV✅
Huyahuya.com/{room_id}FLV/HLS✅
Twitchtwitch.tv/{channel}HLS✅
SOOPplay.sooplive.co.kr/{channel}, play.sooplive.com/{channel}HLS✅
Bigo Livebigo.tv/{id}FLV/HLS✅
TikToktiktok.com/@{user}/liveFLV/HLS/DASH✅
AcFunlive.acfun.cn/live/{room_id}FLV❌
PandaTVpandalive.co.kr/play/{id}HLS❌
Picartopicarto.tv/{user}HLS/MP4❌
Redbookxhslink.com/m/{id}, xhslink.com/o/{id}FLV/HLS❌
Twitcastingtwitcasting.tv/{user}HLS✅
Weiboweibo.com/u/{uid}, m.weibo.cn/u/{uid}, weibo.com/l/wblive/p/show/{id}FLV/HLS❌

Common Configuration

Each platform can be configured at the platform level via Settings → Platforms.

Authentication

Some platforms require a logged-in account profile for:

  • Higher quality streams
  • Region-restricted content
  • Subscriber-only streams
Stream Quality

If you are getting lower resolution than expected (e.g., 480p instead of 1080p), try adding a logged-in account on the platform's Network tab and selecting it. Many platforms restrict high-definition streams to authenticated users.

See individual platform pages for authentication details.

A streamer URL that no platform above recognizes, but the streamlink CLI can handle (for example YouTube or Kick), is added to the Streamlink platform. Its accounts are chosen on each streamer, not on the platform or in a template; see Streamlink accounts.

Batch detection

Bilibili and Twitch can report whether many streamers are live in a single request. To use this, turn on Batch Detection on the platform's Specific tab. It is off by default.

Bigo has no such request. For Bigo, the same switch turns on live notifications instead: BIGO tells rust-srec when a streamer goes live, and routine checks of offline streamers are answered without a request. They need a signed-in BIGO account that follows every monitored streamer; the rest of this section describes Bilibili and Twitch.

With it on, rust-srec asks the platform about up to 100 of its streamers at once, and uses the answer for the routine check of each streamer that is not recording:

  • A streamer the answer shows as offline counts as checked, with no request of its own.
  • When a batch reports a streamer live, rust-srec brings forward their next routine check. They don't have to wait for their own timer, even if another streamer triggered the request. Recording still starts only after the individual check confirms the stream and its recording rules allow it. The platform's own room page can show a new stream a little later than the batch answer, so while the batch keeps reporting the streamer live, each new batch answer checks them again, until their next routine check is due.
  • If the batch request fails, or the answer leaves a streamer out, those streamers are checked one by one, as without the setting. After a failed batch request, the next one is tried 30 seconds later, then at growing intervals of up to 10 minutes; meanwhile the check history shows ordinary bars.

An answer is reused for up to a quarter of the streamer's check interval (Streamer Check, 60 seconds by default, or the resolved platform, template or streamer override). With 250 Bilibili streamers at the default interval, that is about 12 requests a minute instead of about 250, which makes rate limits and platform anti-abuse checks less likely. With only a few streamers on a platform, most checks still make a request of their own.

What you give up:

  • This is still polling, not a start notification. If a stream starts just after a batch reports it offline, a routine check can reuse that offline answer for up to a quarter of the check interval. A slow batch request can also delay discovery.
  • The batch request is made without an account, over the connection the streamer itself uses (its own, its template's, the platform's or the global proxy setting), not an account's own proxy setting. Streamers on different connections are asked about in separate requests. If that connection cannot reach the platform, the batch request fails and those streamers are checked one by one, as without the setting. A streamer checked with a logged-in account still uses that account once it is live, but an expired login on that account may only be noticed when the streamer goes live, not while it is offline.

Batch detection never ends a recording. A streamer that is recording, or whose stream is being confirmed as ended, is always checked on its own, and so are streamers whose extractor is set to Streamlink. A streamer's first check after rust-srec starts, after it is added or after the setting is turned on is still an individual check, and so is every check of a streamer whose last check failed, until one succeeds.

A template's platform override or a streamer's Platform options tab can set it differently: choose On or Off there, or Inherit to use the template's or the platform's setting.

Checks answered by a batch request appear in the streamer's check history as shorter, lighter bars than other offline checks, and their tooltip says so.

Ending recordings on danmu close

When End stream on danmu stream closed (end_stream_on_danmu_stream_closed) is enabled alongside danmu collection, rust-srec treats a platform's explicit stream-closed signal on the danmu channel as the end of the broadcast so recording wraps up promptly instead of waiting for stalled media timeouts. Supported on Bilibili, Douyin, Douyu, Huya, Twitch, TikTok, and Twitcasting.

Splitting recordings on title change

When Split On Title Change (split_on_title_change, off by default) is enabled alongside Record Danmu, rust-srec starts a new recording file cleanly at the next safe cut point whenever the platform's danmu channel reports a new stream title while keeping the same session. Splitting uses the Mesio engine (with stream processing enabled) or FFmpeg / Streamlink with Enable lossless cutting turned on. If your filename template uses {title}, the new file picks up the updated title automatically. Supported on Bilibili and SOOP, and configurable per platform, template or streamer.

Stream Inspection

You can use the built-in player to inspect available stream details for any live streamer:

  1. Go to the Sidebar.
  2. Click on the Player option.
  3. In the player view, you can see all available Formats (FLV, HLS), CDNs, and Qualities.
  4. Check whether your configuration, including the selected account, provides access to the expected qualities and formats.

Multiple accounts and provider limits

Account pools and failover

Use account profiles to choose a fixed account or an ordered priority or round-robin pool. Automatic failover happens when the platform rejects an account's login, or throttles an account whose proxy setting gives it a different connection from the next account. Offline results, content restrictions and network failures do not justify trying every account, and a throttle on a connection the remaining accounts share ends the check. Providers that cannot distinguish these failures remain conservative; unsupported validation does not by itself make an account unusable.

Platform admission and rate limits

Platform admission limits apply across profiles, anonymous requests, explicit raw-cookie parses, refresh and QR login. Adding accounts does not multiply the platform's request allowance. A rate limit seen by any of these requests, including anonymous ones, pauses every request to that platform on the same connection for the platform's retry delay, or 60 seconds when it gives none. Direct, the system proxy and each saved proxy are separate connections, whichever setting or account chose them, and each pause sends a Platform rate limited notification naming its connection when it starts. A requested delay longer than 15 minutes is shortened to 15 minutes, so a single response cannot stop recording for hours. Bilibili QR/token requests, Douyu QR login and session renewal, Weibo QR login and account checks, and SOOP refresh pass the provider's retry delay through the same limit. An operation deadline includes admission and refresh waits. Repair consumes the same bounded attempt budget as extraction.

QR code login

QR login targets the platform or profile chosen when the code is generated. Changing the dialog's target requires a fresh code. Concurrent polls cannot apply one login to two accounts. Expiry or restart can require generating a new code; completed local receipts are safe to poll again. Each generate or poll request is limited to 30 seconds, and an abandoned code's login data is cleared within a minute of expiry. Profile/status screens distinguish administrative disable, invalid credentials and unsupported validation.

Managed playback

Managed playback keeps the account's cookies and provider headers on the server. The player receives the stream URLs together with an authorized temporary handle and always plays through the server proxy, which adds the account's headers only for the stream's own host and the source page's host; playlists, segments, keys and redirects on other hosts are fetched without them, and the proxy refuses a handle for any other host. Eviction, server restart, credential/policy changes or expiry require a new parse. Refreshing a player's source first renews it with the same account; if the handle expired or its selection changed, the player parses the source again, which may pick another pool account. Defaults are 1,024 contexts, 15 minutes idle and 12 hours absolute lifetime, so even active playback can eventually need renewal. Explicit raw-cookie input remains an isolated temporary override and cannot be combined with a managed-profile request.

Managed HLS playlists are rewritten the same way as other proxied playlists. EXT-X-DEFINE variable substitution is not supported, and low-latency _HLS_msn, _HLS_part and _HLS_skip query parameters are accepted but not forwarded upstream.

Platform credential formats

Twitch profiles can contain only an access token, with no cookies. The Twitch OAuth token is the profile's access token; Douyin ttwid and Douyu device_id (as acf_did) are cookies in the profile, not platform options. Room passwords and other non-account settings keep their normal inheritance.