在Ubuntu系统部署bilive需完成以下步骤:
一、基础环境准备
- 操作系统:推荐Ubuntu 22.04 LTS及以上版本
- 硬件配置:至少2核CPU/2GB内存/40GB存储空间
- 网络要求:稳定3Mbps以上带宽
二、具体安装流程
- 通过Git获取源代码:
git clone https://github.com/timerring/bilive.git
- Go to the project catalog:
cd bilive
- Install Python dependencies:
pip install -r requirements.txt
三、关键配置调整
- modifications
settings.toml
配置文件:- 设置目标直播间ID(支持多个房间)
- 调整录制参数(分辨率/码率等)
- 配置弹幕渲染样式(字体/颜色/位置)
- 设置切片敏感度(弹幕密度阈值)
- 申请B站开放平台API密钥用于自动上传
安装完成后,执行./record.sh
启动录制,./scan.sh
开始自动处理流程。
This answer comes from the articlebilive: Unsupervised live recording and automatic slicing and uploading tools for B stationThe