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

能不能加个自动按时间分p功能 #45

Open
MrZhongzq opened this issue Nov 28, 2022 · 2 comments
Open

能不能加个自动按时间分p功能 #45

MrZhongzq opened this issue Nov 28, 2022 · 2 comments

Comments

@MrZhongzq
Copy link

Screenshot_2022-11-29-07-26-00-736_tv danmaku bili
对于长时间直播的主播来说,经常超10个小时,b站有限制传不了。

@valkjsaaa
Copy link
Owner

挺不好改的,而且分p已经官方不支持了

@valkjsaaa
Copy link
Owner

如果一定要改,可能可以这里:

early_upload_task = UploadTask(

和这里:
danmaku_upload_task = UploadTask(

之前用 ffmpeg 以九个小时无损切割成小段,高能弹幕也得切割,然后类似这样上传

for i in range(segments)
    danmaku_upload_task = UploadTask(
            session_id=f"{session.session_id}_{i}" ,
            video_path=session.output_path()['danmaku_video'],
            thumbnail_path=session.output_path()['thumbnail'],
            sc_path=session.output_path()['sc_file'],
            he_path=session.output_path()['he_file'],
            subtitle_path=session.output_path()['sc_srt'],
            title=f"f{title}_{i}",
            source=room_config.source,
            description=description,
            tag=room_config.tags,
            channel_id=room_config.channel_id,
            danmaku=True,
            account=uploader
        )

我根本没有这样的测试数据,不太想改,你可以试试 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants