Zarosmm/obs-bilibili-stream
About
An OBS Studio plugin that simplifies the livestreaming workflow on Bilibili. It supports QR-code login to Bilibili, updating livestream room information, and retrieving the RTMP streaming URL and stream key.
Other ProjectsMeasured star growth
- in 24h
- 0
- in 7 days
- +4
- in 15 days
- +10
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README_en.md
OriginalOBS Bilibili Streaming Plugin
A plugin for OBS Studio that simplifies the streaming process on Bilibili platform. Supports QR code login, updating livestream room info, and obtaining RTMP streaming address and key.
Installation
Windows
Option 1: Installer (recommended)
- Download the installer: Download the latest
bilibili-stream-for-obs-*-windows-x64.exefrom the Releases page. - Close OBS: Quit OBS Studio before installing.
- Run the installer: Double-click it (administrator rights required) and choose how OBS is installed:
- Installed OBS Studio: installs to
C:\ProgramData\obs-studio\plugins\bilibili-stream-for-obs - Portable OBS Studio (including scoop and other no-install setups): select the OBS root folder (it must contain
bin\64bit\obs64.exe); the plugin is installed to<OBS root>\plugins\bilibili-stream-for-obs. Portable installation requires OBS Studio 33 or later; for older portable builds use the zip package below
- Installed OBS Studio: installs to
- Launch OBS: Restart OBS Studio, the plugin will load automatically.
- Confirm installation: Open Tools → Plugin Manager in OBS and check that
BILIBILI Stream for OBSis loaded. - Uninstall: Use Settings → Apps in Windows to remove
BILIBILI Stream for OBS. The plugin configuration is stored in the OBS config directory and is kept.
The installer writes both layouts: the new OBS 33+ layout and the legacy OBS 30–32 layout. OBS 33+ prefers the new layout and ignores the duplicate legacy copy; OBS 34 no longer loads the legacy layout.
The installer is currently unsigned, so SmartScreen may show a warning on first run. Choose More info → Run anyway.
Silent install:
bilibili-stream-for-obs-2.1.6-windows-x64.exe /VERYSILENT /SUPPRESSMSGBOXES
bilibili-stream-for-obs-2.1.6-windows-x64.exe /PORTABLE="D:\OBS" /VERYSILENT /SUPPRESSMSGBOXES
Option 2: Manual installation (zip)
- Download plugin: Download the latest
bilibili-stream-for-obs-*-windows-x64.zipfrom the Releases page. - Extract files: Unzip the downloaded archive.
- Choose the plugins folder:
- Installed OBS Studio:
C:\ProgramData\obs-studio\plugins - Portable OBS Studio (including scoop and other no-install setups): the
pluginsfolder in the OBS root directory, next tobin. For example, ifobs64.exeis atX:\xxx\obs-studio\bin\64bit\, the plugins folder isX:\xxx\obs-studio\plugins.Portable builds ignore plugins placed in
C:\ProgramData\obs-studio\plugins.
- Installed OBS Studio:
- Verify structure: OBS Studio 33 and later use the new plugin layout. Move the
.dllout ofbin\64bitso it sits directly in the plugin folder next todata:
On OBS Studio 30–32, keep the legacy<plugins folder>\ └── bilibili-stream-for-obs\ ├── bilibili-stream-for-obs.dll └── data\ └── locale\ └── (language .ini files)bin\64bitlayout:<plugins folder>\ └── bilibili-stream-for-obs\ ├── bin\ │ └── 64bit\ │ └── bilibili-stream-for-obs.dll └── data\ └── locale\ └── (language .ini files)The legacy layout still loads in OBS Studio 33 but is flagged as "Legacy" by the Plugin Manager. It is no longer supported starting with OBS Studio 34, so migrating to the new layout is recommended.
- Launch OBS: Restart OBS Studio, the plugin will load automatically.
- Confirm installation: Open Tools → Plugin Manager in OBS and check that
BILIBILI Stream for OBSis loaded.
macOS
- Download plugin: Download the latest
bilibili-stream-for-obs-*-macos-universal.pkgfrom the Releases page. - Install plugin: Double-click the
.pkgfile and follow the installation wizard. - Launch OBS: Restart OBS Studio, the plugin will load automatically.
The plugin will be installed to /Library/Application Support/obs-studio/plugins/.
Ubuntu/Debian
- Download plugin: Download the latest
.debpackage (e.g.,bilibili-stream-for-obs-*-x86_64-ubuntu-22.04.deb) from the Releases page. - Install plugin: Run the following command:
sudo dpkg -i bilibili-stream-for-obs-*.deb - Fix dependencies (if needed):
sudo apt-get install -f - Launch OBS: Restart OBS Studio, the plugin will load automatically.
The plugin will be installed to /usr/lib/obs-plugins/ directory.
Flatpak (OBS Studio Flatpak)
The Flatpak plugin is only compatible with the stable Flatpak build of OBS Studio and is currently provided for x86_64.
- Download plugin: Download the latest
bilibili-stream-for-obs-*-flatpak-x86_64.flatpakfrom the Releases page. - Install plugin: Run the following command in the download directory:
flatpak install --user ./bilibili-stream-for-obs-*-flatpak-x86_64.flatpak - Launch OBS: Start the Flatpak build of OBS Studio; the plugin will load automatically:
flatpak run com.obsproject.Studio
To update the plugin, download the new bundle and run:
flatpak install --user --or-update ./bilibili-stream-for-obs-*-flatpak-x86_64.flatpak
To uninstall the plugin, run:
flatpak uninstall --user com.obsproject.Studio.Plugin.BilibiliStream
This bundle cannot be used with a native OBS Studio installation from a system package. Use a .deb or .rpm package for those installations.
Fedora/openSUSE(Unoffical)
- Download plugin: Download the latest '.rpm' packages(e.g., `obs-bilibili-stream-2.1.3-5.1.x86_64.rpm)from the openSUSE Build Service.
- Install plugin:Run the following command:
sudo rpm -i obs-bilibili-stream-*.rpm - Launch OBS: Restart OBS Studio, the plugin will load automatically.
The plugin will be installed to /usr/lib/obs-plugins/ directory.
Usage
Login to Bilibili:
- Open OBS Studio, go to menu Bilibili直播 → 登录 (Login).
- Select 扫码登录 (QR Code Login) and scan with your Bilibili mobile app.
- After successful login, the "登录状态" (Login Status) will show "已登录" (Logged in).
Update Livestream Room Info:
- Go to Bilibili直播 → 更新直播间信息 (Update Room Info).
- Enter room title, select category and subcategory (e.g., "网游" → "英雄联盟").
- Click "确认" (Confirm) to save settings.
Start Streaming:
- Go to Bilibili直播 → 开始直播 (Start Streaming).
- Copy the RTMP Address and Stream Key from the popup dialog.
- In OBS, go to Settings → Output → Stream, set:
- Service: Custom
- Server: Paste RTMP address (e.g.,
rtmp://live-push.bilivideo.com/live-bvc/) - Stream Key: Paste stream key (e.g.,
?streamname=...)
- Click 开始直播 (Start Streaming) in OBS.
End Streaming:
- Click 停止直播 (Stop Streaming) in OBS.
- Go to Bilibili直播 → 停止直播 to close the Bilibili livestream room.
Troubleshooting
Stream fails / RTMP address unavailable: Bilibili's streaming servers do not all support the same codecs (H.264, HEVC, etc.). If streaming fails with the address returned by the plugin, try one of the alternate servers preset by Bilibili in OBS. Keep using the stream key provided by the plugin:
Server RTMP address Global - primary rtmp://live-push.bilivideo.com/live-bvc/Outside mainland China - primary rtmp://bdy.live-push.bilivideo.com/live-bvc/Mainland China - backup rtmp://txy2.live-push.bilivideo.com/live-bvc/Outside mainland China - backup rtmp://txy.live-push.bilivideo.com/live-bvc/Logs: If you encounter issues, check OBS log files:
- Windows:
C:\Users\<YourUser>\AppData\Roaming\obs-studio\logs - macOS:
~/Library/Logs/obs-studio/ - Linux:
~/.config/obs-studio/logs/
- Windows:
Requirements
- OBS Studio 30.0 or higher
- Windows / macOS / Ubuntu 22.04 or higher
Contributing
Feel free to submit issues or pull requests to the GitHub repository.
Star History
Explore related projects
Loading…