Skip to content
Projects

itsVicOC/bilibili-downloader

View on GitHub

About

BiliFlow is an open-source Bilibili video downloader, live stream recorder, and local archiving tool. It supports batch downloads, resumable transfers, subtitles, and danmaku, with a desktop GUI and CLI.

Design & Media

How these counts are measured

Measured star growth

in 24h
0
in 7 days
+11
in 15 days
+40
in 1 month
+192

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original

BiliFlow app icon

BiliFlow

Bilibili video downloads · Live recording · Local archiving
One desktop workspace for media you have permission to save.

简体中文 · English · 日本語

Official website · Download stable release · Documentation · Changelog · Feedback

Official website: 1008.si Latest stable release Total GitHub Release downloads CI status Python 3.11–3.12 MIT License

BiliFlow (repository name: bilibili-downloader) is an open-source desktop tool for Bilibili video downloads and live recording, with both GUI and CLI modes. Download individual videos, multi-part videos, bangumi episodes, collections, series, and favorites; filter batches, pause and resume downloads, and organize video or audio alongside subtitles, danmaku, covers, and metadata.

Runs on Windows, macOS, and Linux. Prebuilt packages are available for Windows and Apple Silicon Macs; Linux users can run from source. Project code is licensed under MIT.

This README is available in English and Simplified Chinese. The current desktop interface and detailed documentation are primarily in Simplified Chinese; English links below point to those guides where applicable.

BiliFlow video workspace with system light and dark themes

Quick navigation: Features · Download and install · Quick start · Screenshots · Supported sources · Run from source · FAQ · Documentation · Contribute and support · Friend links

BiliFlow does not bypass membership, payment, regional restrictions, DRM, or account permissions. Permission to watch does not automatically grant permission to keep, redistribute, or commercially use a copy. Read the copyright and usage policy before downloading.

Features

Capability What you can do
Multiple sources Parse BV/AV IDs, bangumi ep/ss/md IDs, full Bilibili URLs, b23.tv short links, uploader collections/series, and favorites
Daily rankings Browse the sitewide Top 100, or sign in to sort followed creators' videos by date or views. Open a video or parse it for download
Media quality and codecs Select 240P–8K, HDR, Dolby Vision, AVC, HEVC, or AV1 when available, with a matching audio track
Local archives Save MP4, M4A, or Hi-Res FLAC, plus ASS danmaku, SRT subtitles, covers, and JSON metadata
Persistent task center Manage downloads, active recordings, and files. Apply bulk actions, undo record removal, and resume interrupted downloads after restarting
Live recording Browse followed rooms a screen at a time, record the current stream, monitor for the next session, and merge recordings to MP4. See the live recording guide
Batch and multi-part downloads Search and check parts, add ranges, retain selections across filters, preview batches, track or cancel metadata imports, retry failed entries, read paginated sources, deduplicate tasks, and run 1–8 concurrent downloads
Account login Start with QR login or use the Cookie fallback; manage your account from the sidebar with username and avatar, retaining only allowed Cookie fields and preferring the system credential store
Cross-platform desktop UI A PySide6 interface with a responsive layout down to 900×640, manual light/dark modes, and automatic system theme switching
Themes and backgrounds Xinghe and Qinghai themes; twelve Xiao Liu wallpapers or custom images, with large previews, filters, drag-and-drop imports, and independent light/dark visibility per workspace
Xiao Liu companion Twelve pixel animations follow five local time periods, with a full action after 15–30 seconds of foreground idle time and time-aware captions; animation previews
Update checks and installation Check at startup or manually, choose stable or beta channels, and verify/install/restart official macOS/Windows packages with recovery if startup fails

v0.8.3 adds the official download mirror for update discovery and package downloads, with GitHub fallback on network failures. Versions up to v0.8.2 use fixed GitHub endpoints; install v0.8.3 from the website to enable the mirror for future updates.

Automatic updates are available starting with v0.8.1b1 and are currently a beta feature. First install a version that includes the updater manually. Check Releases for stable and prerelease status.

Stable patch v0.8.13 fixes HTTP 403 failures when downloading or resuming from overseas CDNs (#33). Bounded range requests validate every chunk; complete audio/video downloads, decoding, and resumed-file integrity have been verified on US Windows and Linux runners. Accounts, settings, tasks, and media remain compatible. Download stable 0.8.13 · Changelog · Overseas CDN validation · UI validation (Chinese).

Path actions now sit beside the download directory, task views highlight whole rows, and recording-history sessions can be removed with undo while keeping all media files. Foreground clipboard recognition is enabled by default and requires confirmation before parsing; it does not queue downloads automatically. Accounts, settings, wallpapers, tasks, and media remain compatible. See the user guide, window restoration validation, and interaction validation (Chinese).

Download and install

BiliFlow v0.9.0 brings the Daily Top 100, on-demand loading for followed live channels, larger application icons on macOS and Windows, and a compact batch preview button. Both update channels can upgrade. Download 0.9.0 · Changelog

Includes durable media reuse, independent attachment repair, strict media matching, queue and batch search, custom part ranges, automatic network retries, media inspection, and directory relinking. Existing settings and queued output snapshots remain compatible. Checked items persist across filters with hidden selection counts; results separate media, specifications, and attachments, and naming fields support Chinese search. User guide · Workflow validation, including native comparisons, paired performance results, and the scope of the beta-stage checks.

Batch search and selection counts

Visit the BiliFlow website · 1008.si or download the latest stable release from GitHub. To try beta features, browse all releases and look for the Pre-release label.

Choose full for your first installation. It includes a minimal LGPL FFmpeg built from pinned source and the matching live recording engine; Python is not required. The smaller lite package needs an external FFmpeg installation and, for live recording, a matching recorder engine.

Live recording is included in stable releases from v0.8.0. Configure engine paths under Settings → Tools & Storage (设置 → 工具与存储); see the live recording guide.

Platform Release file Notes
macOS 13+ · Apple Silicon BilibiliDownloader-macOS-full-<version>.dmg From v0.8.1; drag into Applications before opening
Windows 10/11 · x64 BilibiliDownloader-Windows-full-<version>-setup.exe From v0.8.1; per-user installation without administrator rights
macOS 13+ · Apple Silicon BilibiliDownloader-macOS-full-<version>.zip Portable archive; move the app into Applications
macOS 13+ · Apple Silicon BilibiliDownloader-macOS-lite-<version>.zip Install FFmpeg separately
Windows 10/11 · x64 BilibiliDownloader-Windows-full-<version>.zip Portable archive; extract the entire archive before running
Windows 10/11 · x64 BilibiliDownloader-Windows-lite-<version>.zip Install FFmpeg separately
Linux No prebuilt package yet Follow Run from source

EXE/DMG assets are available starting with the stable v0.8.1 release. Windows installs into %LOCALAPPDATA%\Programs\BiliFlow by default and provides Start menu and system uninstall entries. Uninstall preserves configuration, task records, and user media. On macOS, install into Applications before launching. In-app updates continue using the corresponding full/lite ZIP.

For lite, source installations, or Linux, install FFmpeg using your package manager:

  • macOS: brew install ffmpeg
  • Windows: winget install Gyan.FFmpeg
  • Ubuntu / Debian: sudo apt install ffmpeg

If FFmpeg is not on your PATH, select and check its executable under Settings → Tools & Storage. A custom path takes priority over the bundled version, so full users can also choose another FFmpeg build.

Verify your download

Each Release provides SHA256SUMS.txt. Replace vX.Y.Z with your downloaded version, then compare the result with the corresponding checksum:

# macOS / Linux
shasum -a 256 BilibiliDownloader-macOS-full-vX.Y.Z.zip
# Windows PowerShell
Get-FileHash .\BilibiliDownloader-Windows-full-vX.Y.Z.zip -Algorithm SHA256

Releases also include the pinned FFmpeg source archive, a CycloneDX SBOM for each package, and the shared checksum file. Inside full, FFMPEG-NOTICE.txt records the actual binary checksum, build options, and license.

macOS packages are not Apple-notarized by default. Any signed and notarized release will say so in its release notes. If macOS blocks an unnotarized version on first launch, use System Settings → Privacy & Security to allow it after confirming the package came from this repository's Releases page.

Quick start

  1. Open BiliFlow. For lite or source installations, first confirm FFmpeg is available.
  2. Paste a BV/AV/ep ID, video or bangumi episode URL, or b23.tv short link into the video workspace, then click Parse (解析).
  3. Choose the parts, quality, codec, video/audio output, and archive extras you want.
  4. Click Add to queue (加入队列). Use the task center to view progress, pause, resume, and open the output folder.
  5. For collections, favorites, and bangumi ss/md pages, open Batch import (批量导入), add your sources, click Preview N sources (预览 N 个来源), and select the items to queue.
  6. Review the copyright notice when creating your first download task. Tasks and temporary media files are created only after confirmation.

Single parsing and batch import use the same fixed output card, with media settings and the save directory on the left and Edit settings / Add to queue on the right. You can configure output before parsing; choices that remain available are preserved after parsing.

Some higher-quality streams, member content, or account-specific videos require login. BiliFlow uses only playback permissions your account already has. It stops if the API returns only a preview, regional restrictions, DRM, or no complete unencrypted stream.

Open the project website from Settings → About & updates. The Discover workspace (发现榜单) shows the daily Top 100 and the Following ranking. Scroll to the end or select Load more (加载更多) to continue browsing. Select a cover or title to open the video in your browser, or select Parse for download (解析下载) to open the download workspace. Sign in to view the Following ranking and followed channels in the live workspace.

See the user guide for task states, output templates, and configuration locations, or troubleshooting for startup, parsing, FFmpeg, and login issues.

Recording a live stream? Add a room ID or live room URL on the Live recording page (直播录制) and enable monitoring. Use its Recording history tab to view segments and export MP4. Monitoring requires the app to stay open. See the live recording guide.

Keep tasks running after closing the window: On macOS, the red close button and ⌘W close only the window; click the Dock icon to restore it, or use ⌘Q / the app menu to quit. On Windows, closing offers Minimize to system tray or Quit, with an optional remembered choice. Change it in Settings → Appearance → Window (设置 → 外观 → 窗口). Click the tray icon to restore the window or use its context menu to quit. Downloads, live monitoring, recording, and exports continue while the window is closed or in the tray. Quitting confirms active tasks and waits for cleanup.

Screenshots

These screenshots show the 0.9.0 workspaces, sign-in, and settings with offline demo data. The download home and followed live channels both support light and dark modes.

Xiao Liu follows five local time periods, playing a different action after 15–30 seconds of foreground idle time. Animations pause while the app is hidden, minimized, or inactive.

Twelve Xiao Liu animations

Adding downloads keeps the current page open. The task center brings together the download queue, active recordings, and downloaded files. The live workspace includes monitored rooms, followed channels, and recording history.

BiliFlow task center

BiliFlow batch import preview BiliFlow download settings
Batch import: source summary, item selection, and output confirmation Download settings: templates, formats, and archive extras
BiliFlow light theme BiliFlow account login
Light theme follows your system settings Login guidance and credential protection

All screenshot titles, tasks, and account states use offline demo data. They contain no real Cookies, download URLs, or media content.

BiliFlow live recording workspace

Followed live channels with the Load more button

See UI design and validation for both themes, 900×640 / 1120×760 / 1320×860 layouts, and key interface states.

Supported sources

Source Single-item parsing Batch import Notes
BV/AV IDs and standard video URLs ✓ ✓ Multi-part videos supported
Bangumi ep episode ✓ ✓ Requires complete playback permission
Bangumi ss/md season or media page — ✓ Main episodes selected by default; PVs, extras, and specials can be added
Uploader collections and series — ✓ Paginated browsing and filtering
Favorites — ✓ Private or account-specific sources require login
b23.tv short links ✓ ✓ Requires a network connection to resolve the URL

Use the separate live recording workspace for live room links. International Bilibili, courses, Watch Later, dynamic feeds, DRM, regional proxy resolution, and any bypass of payment, membership, or account permissions are outside the supported scope. Actual formats and subtitles depend on the source, account permissions, and API response.

Run from source

Requires Python 3.11–3.12 and FFmpeg. The minimum is now 3.11 to use Pillow 13 security fixes. Prebuilt applications bundle Python and require no separate Python upgrade:

git clone https://github.com/itsVicOC/bilibili-downloader.git
cd bilibili-downloader
python -m venv .venv
source .venv/bin/activate
python -m pip install -c constraints.txt -e ".[dev]"
python -m bilibili_downloader

On Windows PowerShell, activate the environment with .\.venv\Scripts\Activate.ps1 instead.

Enable live recording in a source installation

Build the matching Rust / Mesio engine after installing the Rust toolchain:

cargo build --release --locked --manifest-path native/recorder/Cargo.toml

The app detects native/recorder/target/release/biliflow-recorder automatically (.exe on Windows). See live recording development for the validated toolchain version, dependencies, and complete procedure.

CLI examples

# Inspect metadata without downloading media
python -m bilibili_downloader test BV1GJ411x7h7

# Download 1080P video with danmaku and subtitles
# Save available Chinese and English tracks (including AI) as separate SRT files; use --all-subtitles for every language.
python -m bilibili_downloader download BV1GJ411x7h7 \
  --quality 80 --danmaku --subtitle

# Display the complete picture at 4:3 without cropping or re-encoding
python -m bilibili_downloader download BV1Syxv6JEa6 --aspect-ratio 4:3 --all-subtitles

# Save audio only
python -m bilibili_downloader download BV1GJ411x7h7 --audio-only

# Download a bangumi episode your account can play in full
python -m bilibili_downloader download ep123 --quality 80

# Seasons contain main episodes by default; explicitly include extras
python -m bilibili_downloader download \
  "https://www.bilibili.com/bangumi/play/ss123" \
  --include-extras

# Download an accessible collection with archive extras
python -m bilibili_downloader download \
  "https://space.bilibili.com/123/lists/456?type=season" \
  --quality 80 \
  --output ./downloads \
  --danmaku \
  --subtitle \
  --cover \
  --metadata \
  --path-template "{author}/{title}{part_suffix}" \
  --page all \
  --codec 12

Run python -m bilibili_downloader --help or read the CLI guide for all options.

The IDs ep123, ss123, and numbers in the collection URL are placeholders; replace them with your source. The first interactive CLI download asks for copyright confirmation. Non-interactive environments must explicitly pass --acknowledge-copyright.

FAQ

Should I choose full or lite? Do I need Python?

Prebuilt packages do not require Python. Choose full for a first installation: FFmpeg and the live recording engine are included. Choose lite if you prefer to manage those tools yourself. Python is needed only when running from source.

Can I use it without logging in? Why is 4K, HDR, or 8K missing?

Public videos that can be played in full can be parsed and downloaded without login. Higher quality, member content, and account-specific videos depend on the source and your account permissions. BiliFlow lists only formats returned by the API and does not unlock unauthorized content. See quality troubleshooting.

Do interrupted downloads have to start over?

Tasks and partial downloads are stored locally. Restart the app and resume the paused task in the task center. Keep the task database and the output directory's .biliflow-parts/ folder; clearing the cache removes unfinished download data.

What about Intel Macs, Linux, or phones?

Current prebuilt packages target Apple Silicon Macs and Windows x64. Linux and Intel Mac users can try running from source; Intel Macs have no prebuilt package, and compatibility must be verified on your system. The project does not currently provide Android or iOS clients.

What if the app will not open or cannot find FFmpeg?

First check that you extracted the correct archive completely. For full, verify the Release checksums. For lite or source installations, select the FFmpeg executable under Settings → Tools & Storage. See troubleshooting for macOS first-launch and Windows security prompts.

Documentation

Detailed guides are currently in Simplified Chinese.

Document Audience Contents
Documentation hub Everyone Installation, usage, troubleshooting, development, and release guides
User guide Users GUI, CLI, login, tasks, configuration, and local data
Live recording Users, developers Monitoring, recording history, engine setup, and validation scope
UI design and validation Users, developers Themes, responsive layouts, interface states, and screenshot index
Troubleshooting Users Startup, parsing, formats, FFmpeg, login, and recovery
Copyright and usage policy Everyone Permissions, prohibited uses, and rights-holder feedback
Building and releasing Developers Environment, tests, screenshots, packaging, and release process
Contributing Contributors Issues, branches, code quality, and pull requests
Security policy Researchers Vulnerability reporting and credential handling
Third-party notices Release maintainers Images, icons, FFmpeg, and licenses
Changelog Everyone Changes and fixes by release

Development checks

python -m compileall -q bilibili_downloader tests scripts
pytest -q
ruff check bilibili_downloader tests packaging_hooks scripts
git diff --check

For changes to packaging, resource paths, or dependencies, also run:

pyinstaller --noconfirm --clean BilibiliDownloader.spec

See Building and releasing for the project structure, screenshot generation, and complete release process.

Contribute and support

If BiliFlow helps you, give it a Star on GitHub, or share the website and repository with others looking for desktop media downloads and archiving.

  • Report bugs or suggest features: check troubleshooting and existing issues, then open an issue. Include your version, platform, and reproduction steps; remove Cookies, signed playback URLs, and personal information.
  • Improve code, documentation, or translations: read the contributing guide and submit a pull request. Keep features, installation instructions, and links synchronized between both READMEs.
  • Report vulnerabilities: follow the private reporting channel in the security policy.

Thanks to the contributors behind PySide6 / Qt, FFmpeg, Mesio / rust-srec, and the other open-source dependencies. See third-party notices for artwork and licenses.

Friend links

Privacy and disclaimer

  • The app does not send login credentials to project maintainers, project servers, or media CDNs. Cookies are sent only to trusted Bilibili API and web domains.
  • Only allowed Cookie fields are retained, preferably in the system credential store. If that store is unavailable, credentials stay in process memory and you must log in again after restarting.
  • Logs, task databases, metadata, and documentation screenshots should never contain valid Cookies or signed playback URLs.
  • This project is not affiliated with, authorized by, partnered with, or endorsed by Bilibili.
  • Prefer the official client's caching options where available, and follow local law, platform terms, and rights-holder permissions.

License

Project code is licensed under the MIT License. Interface assets and bundled FFmpeg retain their own licenses; see THIRD_PARTY_NOTICES.md.

Explore related projects

Loading…