Skip to main content

Simplify the BililiveRecorder → biliup-rs workflow.

Project description

brecup

Simplify my BililiveRecorderbiliup-rs workflow:

  1. Embed danmaku into the video.
  2. Clip the video.
  3. 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-factory is in your PATH.

  • BililiveRecorder's binary brec is in your PATH.

    Also make sure the records' xml danmaku files are ready to use.

  • biliup-rs's binary biliup is in your PATH.

    Also make sure the corresponding cookies.json is prepared.

  • nvidia-smi, ffmpeg, ffprobe are 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brecup-0.0.5.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brecup-0.0.5-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for brecup-0.0.5.tar.gz
Algorithm Hash digest
SHA256 103fb3650df28bf369ed41311b74c8955abd78978786cb455e9841aa4f076dc0
MD5 9520fb10272746664253a41b2098389b
BLAKE2b-256 ecbc518ea9e84f7e219961291b77e634fc9d77714dc17d15eea0acd1c5a2fd2b

See more details on using hashes here.

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

Hashes for brecup-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b5ea8161988e995a071722f7560b5ef2af2ae9588160d8e71775885d5d22a8af
MD5 3ec290f4979b885640f5f3347c64e09d
BLAKE2b-256 17fc04a2ca350385fbf22d1aadb7c2abbaa4c0d27c354390e6b70f7f9f5d6d0f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page