Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help] 目前是否暴露了DanmakuFactory的参数? #142

Closed
lululutx opened this issue Dec 16, 2024 · 2 comments
Closed

[Help] 目前是否暴露了DanmakuFactory的参数? #142

lululutx opened this issue Dec 16, 2024 · 2 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@lululutx
Copy link

录制的主播观众很多,所以sc和弹幕也很多,渲染出来的观感就很诡异(图1)

我看项目内DanmakuFactory被打成了包 (src/utils/DanmakuFactory),请问我能自己修改吗?要修改哪个地方?请指教

需求
1、弹幕只在上面1/3或者1/4区域内渲染 (还是这个需求要在弹幕文件里修改)
2、sc的停留时间更短,添加一些透明度(我看DanmakuFactory有人实现了,但是我找不到咱们项目的接口)

图1
image

@timerring timerring self-assigned this Dec 17, 2024
@timerring timerring added the help wanted Extra attention is needed label Dec 17, 2024
@timerring
Copy link
Owner

  1. 因为 DanmakuFactory 底层是用 C 实现的,为了在 python 中方便集成,我采用了它编译后的版本。可以参考 DanmakuFactory 的文档 查找对应的参数项,里面有显示弹幕范围等等参数。
  2. 我根据不同的分辨率 fine-tune 了一些对应的参数,可以在 src/burn/generate_danmakus.py 中根据你所录制的视频分辨率添加或者修改对应的参数。

@lululutx
Copy link
Author

ok我去瞧瞧☺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants