Skip to main content
DouyinLiveRecorder maps human-readable quality names to internal codes that are used when requesting stream URLs from each platform.

Quality levels

Quality name (Chinese)Internal codeDescription
原画ODOriginal / source quality — highest available bitrate
蓝光BDBlu-ray / 4K — high-bitrate tier on supported platforms
超清UHDUltra HD — typically 1080p60 or above
高清HDHD — typically 1080p or 720p
标清SDStandard definition
流畅LDSmooth / low — lowest quality, smallest file size
Use 原画 (OD) whenever possible. It records the source stream without any quality degradation introduced by the platform’s transcoding ladder. Many platforms only expose the top tier at original quality.
Not all platforms expose all quality levels. If the requested quality is unavailable the recorder falls back to the closest available tier.

Global quality setting

Set the default quality for all rooms in config/config.ini:
原画|超清|高清|标清|流畅 = 原画
Replace 原画 with any of the quality names listed above.

Per-room quality override

To record a specific room at a different quality, prefix its URL in config/URL_config.ini with the quality name and a comma:
超清,https://live.douyin.com/745964462470
The separator must be a comma (either full-width or half-width ,). No space is required between the quality name and the comma, but one is allowed.

Example URL_config.ini with mixed quality settings

# Uses global quality (原画)
https://live.bilibili.com/320

# Override to HD for this room
高清,https://www.huya.com/52333

# Override to Ultra HD
超清,https://live.douyin.com/745964462470

# Uses global quality
https://www.twitch.tv/gamerbee

# This room is commented out — not monitored
# https://www.douyu.com/3637778

Huya quality handling

Huya has two different stream-fetching paths depending on quality:
  • OD, BD, UHD — fetched via the Huya app stream API, which returns the highest-bitrate sources including 60 fps streams.
  • HD, SD, LD — fetched via the Huya web stream API.
If you want 60 fps or the highest possible bitrate on Huya, use 原画, 蓝光, or 超清.

Build docs developers (and LLMs) love