Skip to content

Commit

Permalink
📝 docs(biliass): update README for biliass
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo committed Nov 3, 2024
1 parent 49cbb46 commit 9df3c6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
22 changes: 9 additions & 13 deletions packages/biliass/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
<a href="https://codspeed.io/yutto-dev/yutto"><img src="https://img.shields.io/endpoint?url=https://codspeed.io/badge.json&style=flat-square" alt="CodSpeed Badge"/></a>
</p>

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

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

仅支持 bilibili 弹幕,支持 XML 弹幕和 Protobuf 弹幕
biliass,高性能且易于使用的 bilibili 弹幕转换工具(XML/Protobuf 格式转 ASS),基于 [Danmaku2ASS](https://github.com/m13253/danmaku2ass),使用 rust 重写

## Install

Expand All @@ -37,32 +33,32 @@ from biliass import convert_to_ass
# xml
convert_to_ass(
xml_text_or_bytes,
width,
height,
1920,
1080,
input_format="xml",
display_region_ratio=1.0,
font_face="sans-serif",
font_size=width / 40,
font_size=25,
text_opacity=0.8,
duration_marquee=15.0,
duration_still=10.0,
comment_filter=None,
block_options=None,
reduce_comments=False,
)

# protobuf
convert_to_ass(
protobuf_bytes, # only bytes
width,
height,
1920,
1080,
input_format="protobuf",
display_region_ratio=1.0,
font_face="sans-serif",
font_size=width / 40,
font_size=25,
text_opacity=0.8,
duration_marquee=15.0,
duration_still=10.0,
comment_filter=None,
block_options=None,
reduce_comments=False,
)
```
2 changes: 1 addition & 1 deletion packages/biliass/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "biliass"
description = "将 B 站弹幕转换为 ASS 弹幕"
description = "💬 将 B 站 XML/protobuf 弹幕转换为 ASS 弹幕"
readme = "README.md"
requires-python = ">=3.9"
authors = [
Expand Down

0 comments on commit 9df3c6e

Please sign in to comment.