Simplify the BililiveRecorder → biliup-rs workflow.
Project description
brecup
Simplify my BililiveRecorder → biliup-rs workflow:
- Embed danmaku into the video.
- Clip the video.
- Upload/append the video.
Default Configuration
- DanmakuFactory:
- no msg box
- no override
- half the opacity
- ffmpeg:
- bitrate 8K
- codec h264_nvenc
Pre-requirements
-
DanmakuFactory's binary
danmaku-factoryis in your PATH. -
BililiveRecorder's binary
brecis in your PATH.Also make sure the records' xml danmaku files are ready to use.
-
biliup-rs's binary
biliupis in your PATH.Also make sure the corresponding
cookies.jsonis prepared. -
nvidia-smi,ffmpeg,ffprobeare in your PATH. -
At lease one NVIDIA GPU is available.
Installation
pip install brecup
Usage
The config file should be named as *.brecup.y[a]ml such as test.brecup.yaml or test.brecup.yml.
A schema file is provided here.
A sample:
records:
- video: /path/to/rec_0.flv
title: p0
to: 00:00:30
enabled: true
- video: /path/to/rec_1.flv
title: p1
ss: 00:06:50
enabled: true
title: 'Test Collection'
output-dir: /path/to/output/Test-Collection/
tid: 172
tag: 直播回放,单机游戏
cookies: /path/to/cookies.json
cover: /path/to/cover.jpg
If you have more videos to append, just add more records and disable the previous ones:
records:
- video: /path/to/rec_0.flv
title: p0
to: 00:00:30
enabled: false
- video: /path/to/rec_1.flv
title: p1
ss: 00:06:50
enabled: false
- video: /path/to/rec_2.flv
title: p2
ss: 00:06:50
to: 00:07:50
enabled: true
title: 'Test Collection'
output-dir: /path/to/output/Test-Collection/
tid: 172
tag: 直播回放,单机游戏
cookies: /path/to/cookies.json
cover: /path/to/cover.jpg
Then run:
brecup test.brecup.yaml
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brecup-0.0.5.tar.gz.
File metadata
- Download URL: brecup-0.0.5.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
103fb3650df28bf369ed41311b74c8955abd78978786cb455e9841aa4f076dc0
|
|
| MD5 |
9520fb10272746664253a41b2098389b
|
|
| BLAKE2b-256 |
ecbc518ea9e84f7e219961291b77e634fc9d77714dc17d15eea0acd1c5a2fd2b
|
File details
Details for the file brecup-0.0.5-py3-none-any.whl.
File metadata
- Download URL: brecup-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5ea8161988e995a071722f7560b5ef2af2ae9588160d8e71775885d5d22a8af
|
|
| MD5 |
3ec290f4979b885640f5f3347c64e09d
|
|
| BLAKE2b-256 |
17fc04a2ca350385fbf22d1aadb7c2abbaa4c0d27c354390e6b70f7f9f5d6d0f
|