Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

biliass

PyPI - Python Version pypi PyPI - Downloads Build Status LICENSE Gitmoji

biliass,只是 Danmaku2ASS 的 bilili 与 yutto 适配版

原版:https://github.com/m13253/danmaku2ass

仅支持 bilibili 弹幕,支持 XML 弹幕和 Protobuf 弹幕

Install

pip install biliass

Usage

# XML 弹幕
biliass danmaku.xml -s 1920x1080 -o danmaku.ass
# protobuf 弹幕
biliass danmaku.pb -s 1920x1080 -f protobuf -o danmaku.ass
from biliass import Danmaku2ASS

# xml
Danmaku2ASS(
    xml_text_or_bytes,
    width,
    height,
    input_format="xml",
    reserve_blank=0,
    font_face="sans-serif",
    font_size=width / 40,
    text_opacity=0.8,
    duration_marquee=15.0,
    duration_still=10.0,
    comment_filter=None,
    is_reduce_comments=False,
    progress_callback=None,
)

# protobuf
Danmaku2ASS(
    protobuf_bytes, # only bytes
    width,
    height,
    input_format="protobuf",
    reserve_blank=0,
    font_face="sans-serif",
    font_size=width / 40,
    text_opacity=0.8,
    duration_marquee=15.0,
    duration_still=10.0,
    comment_filter=None,
    is_reduce_comments=False,
    progress_callback=None,
)

TODO

  • 导出 bilibili 网页上的弹幕设置,并导入到 biliass

Release files for biliass 1.3.7.dev1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for biliass 1.3.7.dev1
File Size Uploaded
biliass-1.3.7.dev1.tar.gz 24.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for biliass 1.3.7.dev1
File Interpreter ABI Platform
biliass-1.3.7.dev1-py3-none-any.whl Python 3 none any Details

Total release size: 48.5 kB

Release files / biliass-1.3.7.dev1.tar.gz

Download URL biliass-1.3.7.dev1.tar.gz
Size 24.1 kB
Tags Source
SHA-256 checksum
How to use checksums
60e9e14547c9e6038209ccb96914ce389224b45ae8e957f7c2f977d271513c37
BLAKE2b-256 checksum
How to use checksums
2c089bf37684cd012d9af4ce9b91870d80e65fbdc05000dbbe9bf4a690770fe2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.8 Darwin/22.1.0

Release files / biliass-1.3.7.dev1-py3-none-any.whl

Download URL biliass-1.3.7.dev1-py3-none-any.whl
Size 24.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a9283a87c0368d24f2ad82e1c5a66a9a24ec76cdf4f1b48ba3ee1a103f98b85
BLAKE2b-256 checksum
How to use checksums
9af6658cb2aec680731261e82944ab1e3608da0ad00a3886c14d3343ea64b38d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.8 Darwin/22.1.0

Release history Release notifications | RSS feed

2.4.0

29 release files

2.2.0

29 release files

2.1.1

15 release files

1.3.13

2 release files

1.3.11

2 release files

1.3.10

2 release files

1.3.9

2 release files

1.3.8

2 release files

1.3.7

2 release files

This release

1.3.7.dev1 This release

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page