bilive: recording and republishing Bilibili streams, with its own warning up front
Extremely fast live recording, automatic slicing, danmaku rendering and subtitle generation, then uploading to Bilibili; integrates multiple multimodal models and is compatible with low-configuration machines.
At a glance
- What is it?
- bilive records Bilibili live streams plus danmaku, renders them with subtitles, slices them by comment density and uploads the results. Its README opens with a permission notice, and its installation has an arm64 hole that the documentation tells you to patch by hand.
- Who is it for?
- bilive suits someone who runs their own stream or has explicit permission from the person streaming, and who wants the whole post-production chain automated on a small machine. Before running it, settle three things.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Activity is slowing. The repository last received commits 7 months ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.
Star history
- timerring/bilive3,329 ★ · +41
| Repository | 2026-09-25 | 2026-11-23 |
|---|---|---|
| timerring/bilive | 3.3k | 3.3k |
41 Stars in the last 59 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The permission notice comes before the feature list
The first substantive block on the page, ahead of any feature description, is a notice, and it is the part a reader should not skip. It states that the project is for study and exchange, that you should record only after obtaining the other party's permission, that unauthorized content must not be used for commercial purposes, and that large scale recording is not the intended use. It adds the consequence directly: violators will be banned by the platform and bear the legal consequences themselves. Everything after that notice describes tooling that records a third party's live broadcast, converts the paid comments and gift messages that arrive with it, and uploads the result back to the same platform, so the permission question is not a formality here. It is the difference between archiving your own stream and republishing someone else's. The page also states that pulling stars and opening issues are welcome, and it carries a sponsored promotion for a third party API aggregator with a referral link near the top, which is worth knowing about when weighing what the page is recommending.
requirements.txt vendors a beta wheel and pins triton, which blocks arm64
The dependency file starts with a path rather than a package name: `./wheel/blrec-2.0.0b4-py3-none-any.whl`, a beta build of the recorder library that ships inside the repository rather than coming from an index. Three of the author's own libraries arrive as submodules, which is why the clone step is written the way it is:
git clone --recurse-submodules https://github.com/timerring/bilive.gitwith `git submodule update --init --recursive` for an existing clone, then `cd bilive` and `pip install -r requirements.txt`. After that first line, the file is pinned in a mixture of styles. Exact pins include `ffmpeg_python==0.2.0`, `librosa==0.9.1`, `tiktoken==0.4.0`, `triton==3.1.0` and `zhconv==1.4.3`. Ranged ones cap the numerical stack hard, with `numpy>=1.21.6, <1.26.4` and `torch>=1.11.0, <2.3.0`. One line carries an instruction rather than a version: `google-generativeai>=0.7.2 # don't change this part`. The triton pin is the one that bites. The hardware notes explain that PyPI has no aarch64 release of triton, linking the tracker issue, so on arm64 you are told to comment triton out of the requirements file yourself, and that doing so means local whisper is unavailable on that architecture. In other words the arm64 support advertised in the feature list depends on a manual edit to a dependency file.
Three processing modes trade GPU memory against how soon you can publish
The mode setting decides when the upload happens and what hardware you need. `pipeline` is the default and described as the fastest: it needs GPU support, it wants the segment length in the recorder library set to half an hour or less, speech recognition and rendering run in parallel, and the video is uploaded split into parts. `append` is the same shape with recognition and rendering running one after the other instead of in parallel, which the page puts at roughly 25 percent slower, in exchange for needing less video memory. `merge` waits until all recording has finished before doing any recognition, rendering or merging, uploads the complete recording rather than a multi-part submission, and is described as slow with a long wait, aimed at the case where you want the full stream rather than highlights. One qualification applies to all three: the GPU discussion only holds when the speech recognition method is `deploy`. Set it to `none` or `api` and no GPU is involved at any point. With a GPU present, the page insists the video memory must exceed what the program needs.
asr_method defaults to none, and the api path runs on a free tier
Subtitle settings live in the `[asr]` section of `bilive.toml`, and the switch `asr_method` defaults to `none`, so out of the box nothing is transcribed. Setting it to `api` asks for a `WHISPER_API_KEY` and routes audio through Groq, using their free tier `whisper-large-v3-turbo` model. The free tier has two limits that shape your configuration rather than just your bill: the upload cap is 40 MB, described as about half an hour of video, and requests are limited to 7200 seconds over 20 calls per hour and 28800 seconds over 2000 calls per day. The page's advice follows from that: if you use the API path, set the recording segment length to 30 minutes, which happens to be the default. Setting `asr_method` to `deploy` runs a local model instead, which means downloading model files into `src/subtitle/models`, with `small` as the default choice, and it needs at least 2.7 GB of video memory for that model. Without working NVIDIA drivers or CUDA, the page says it falls back to CPU inference, which it calls very resource hungry and not recommended.
auto_slice defaults to false and your prompt is debugged through a unit test
Automatic slicing is off by default, controlled by `auto_slice` in the `[slice]` section, and turning it on requires you to write `slice_prompt` yourself. The prompt may contain the `{artist}` keyword, which is substituted for you. Three numbers govern the output: `slice_duration` in seconds, with a recommendation to stay under 180, `slice_num` for how many slices, and `slice_overlap` for the overlap between them. The windowing itself is a sliding window implemented in a separate open source library, auto-slice-video, which is one of the author's other projects. What is unusual is the debugging path. Prompts are exercised through unit tests in `tests/test_autoslice.py`: `python -m unittest` followed by `tests.test_autoslice` runs the whole module, and `tests.test_autoslice.TestXXXMain` targets one model. The reason to iterate that way is stated in the same block, because some models return several titles and emoji where a single string was asked for, so the page tells you to say so in the prompt and to share working prompts in issues.
The compose file mounts ./app over a directory the repository does not contain
The container image copies the entire checkout into `/app` and sets that as the working directory, then starts `./start.sh`. The compose file takes a different approach: it mounts the host directory `./app` onto `/app`, and separately mounts your `bilive.toml`, your `settings.toml`, a `Videos` directory and a `logs` directory. The repository has no top-level `app/` directory; the Python code lives under `src/`. So the volume mount covers the path where the image put the code with a host path the checkout does not define, and a reader who follows this compose file without creating that directory gets an empty working directory. Two smaller things in the same file matter. The port mapping is `22333:2233` against an image that exposes 2233, so the record interface lands on host port 22333 rather than 2233. And the environment block carries `RECORD_KEY=your_record_password` with the comment your record password, a placeholder left in a committed file that protects an interface reachable from the host. The build block is commented out, so the compose run uses the published image tag 0.3.1 rather than anything in the tree.
The image bakes in a Chinese font because the danmaku renderer needs one
The Dockerfile starts from `python:3.10-slim` and copies a single asset into a system font path, `COPY ./assets/msyh.ttf /usr/share/fonts/msyh.ttf`. That is the Microsoft YaHei font, and it is there for the danmaku renderer: the comment conversion library turns the platform's xml comment data into ass subtitle files, and burning those onto the video needs a font that can draw the glyphs. The package list is `ffmpeg`, `procps`, `lsof`, `curl`, `vim` and `gcc`, the last three of which are there for debugging rather than for the pipeline, and the requirements are installed with `--no-cache-dir` in the same layer as the apt packages, with the apt lists removed afterwards. The image exposes 2233, sets the timezone to Asia/Shanghai, and runs `./start.sh`. A separate `Dockerfile-GPU` exists for the GPU path, and the compose file keeps the matching GPU image reference beside the CPU one as a comment, so the two variants are one line apart.
The Node toolchain builds documentation, and the test hardware has no GPU
The JavaScript half of the repository has one job. The dev dependencies are `vitepress`, `vitepress-plugin-mermaid`, `mermaid` and `cz-conventional-changelog`, the scripts are `docs:dev`, `docs:build` and `docs:preview`, and commitizen is configured for conventional commits. That is the documentation site and the commit message convention, with a `package-lock.json` at the root, and none of it ships in the container image. The Python dependency list doubles as the model provider list: `google-generativeai`, `zhipuai`, `openai`, `groq`, `lumaai` and `boto3` correspond to the named title models such as GLM-4V-PLUS and Gemini-2.5-flash and to the named cover models such as Luma Photon and Amazon Titan Image Generator V2. The test hardware table is where the low configuration claim gets its support, and it is worth reading carefully: an Alicloud machine with 2 cores, no GPU, 2 GB of memory, 40 GB of disk and 3 Mbps of bandwidth, an Oracle Cloud aarch64 machine with 1 core, no GPU, 4 GB and 100 Mbps, and a local server with 8 cores, a GTX 1650, 24 GB and 50 Mbps, all on Python 3.10. The accompanying note says the limit on how fast a video appears is upload bandwidth rather than rendering speed.
Editorial conclusion
bilive suits someone who runs their own stream or has explicit permission from the person streaming, and who wants the whole post-production chain automated on a small machine. Before running it, settle three things. The project asks you to record only with the other party's permission, to keep unauthorized content out of commercial use, and not to mass-record, and it states that violations risk an official ban. On arm64 the installation needs a manual edit, because the requirements file pins triton and PyPI has no arm64 release for it, which also disables local whisper on that architecture. And the compose file publishes the record port to the host while shipping a literal placeholder password, so change that before exposing it. The newest tag is v0.3.1 from 2025-04-27 while the repository itself was pushed on 2026-04-24, so a compose run gives you the tagged image, not the current tree.
Frequently asked questions
Do I need permission to record with bilive?
The project says so itself, in a notice placed before the feature list: it is for study and exchange, you should record only after obtaining the other party's permission, unauthorized content must not be used commercially, and large scale recording is not intended. It states that violators will be banned by the platform and bear the legal consequences. The tool records a third party's live broadcast and uploads the result back to the same platform.
Does bilive need a GPU?
Only for local speech recognition, which is the `deploy` setting of `asr_method`. That path needs working NVIDIA drivers and CUDA, and at least 2.7 GB of video memory for the default `small` whisper model; without them it falls back to CPU inference, which the page calls very resource hungry and not recommended. The default `none` and the `api` setting involve no GPU, and the `append` mode is described as needing less video memory than the default `pipeline` mode.
How do I install bilive?
Clone with `git clone --recurse-submodules https://github.com/timerring/bilive.git`, or run `git submodule update --init --recursive` on an existing clone, since three of the author's libraries are submodules. Then `cd bilive` and `pip install -r requirements.txt`, and install ffmpeg for your platform. Windows users are told to run it under WSL. On arm64 you also have to comment out triton in the requirements file yourself.
How does bilive turn Bilibili comments into burned-in subtitles?
Through DanmakuConvert, an open source library by the same author that converts the platform's xml comment data into ass danmaku files, which are then rendered into the video to produce a version with comments on it and uploaded separately. The container image copies a Chinese font, `assets/msyh.ttf`, into a system font path so the renderer has a font that can draw the glyphs.
How does bilive choose which parts of a stream to slice?
Slicing is off by default, with `auto_slice` false in the `[slice]` section of `bilive.toml`. Turning it on requires your own `slice_prompt`, which may include `{artist}` for substitution. `slice_duration` in seconds, `slice_num` and `slice_overlap` control the output, and the windowing is a sliding window in the separate auto-slice-video library. You can test prompts with `python -m unittest` against `tests.test_autoslice`.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/timerring-bilive)Star history chart for your README
[](https://hysenlabs.com/projects/timerring-bilive)Was this useful?