-
Notifications
You must be signed in to change notification settings - Fork 107
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
[Feature] 希望出一个分段后就上传(并继续录播),上传完就删除本地视频的功能,最后等检测到直播结束一起发布 #227
Comments
能详细描述一下需求吗?你的意思是分段后不压制弹幕直接上传原视频,然后本地删除,最后再发布合集吗?🤔 |
是的,打比方,一小时一分段,主播直播四个小时,当第一个小时录完后就可以开始上传了,这时候录播继续录下一个小时,当第一个分段完成上传后就可以把本地的删除掉了,当检测到主播下博后,就可以上传最后一段录播,最后所有的录播都上传到B站服务器了,然后一起发布。可以极大优化vps的资源,而且仅仅是增加了cpu的负荷 |
那其实我在 append 模式里已经写了对应的解决方案了,首先录制那里选择不录制弹幕,这样在没有字幕识别功能的前提下,服务器只会对录制完成的视频做一个 mv 移动换名的操作,然后直接就上传了。完全不占用其他资源。至于先上传再一起发布,貌似 b 站没有这个功能的 api 目前🤔 |
就是分p上传 |
那就是 append 模式的实现了,在没有弹幕文件且无需字幕识别的情况下,直接会 mv 文件名,接着就分 p 上传了。 bilive/src/burn/render_command.py Lines 60 to 61 in 02dfe35
|
默认上传后都是直接删除的,第一个分 p 审核通过会直接在动态里显示,后面的分 p 只是该分 p 的追加投稿。 |
之前我有想过把第一个分 p 设置为仅自己观看,最后等上传完成了再统一发布,但是后面的实践出来,每一个分 p 的上传成功都会让前面所有分 p 变为所有人可见,所以意义不大貌似。 |
现在唯一的可能性有一种方式,就是边录边传,在 b 站服务器声明一个比较大的空间,然后理想情况下衔接的好的话,后面不够的字节补 0 ,最后再统一 release,不过这种情况只能通过 flv 完成了,转码后的 mp4 很难做到。 |
后续如果我自己写录制的 package 的话,我应该会考虑这个 feature 的。 |
这个边录边传容易爆内存,对资源本不多的小鸡帮助也不大。 |
那可以生成一个很小的文件把分p占着,然后用录播的视频逐渐把这些文件替换掉吗 |
感谢理解 |
Is your feature request related to a problem? Please describe.
(A clear and concise description of what the problem is.)
Describe the solution you'd like
(A clear and concise description of what you want to happen.)
Describe alternatives you've considered
(A clear and concise description of any alternative solutions or features you've considered.)
Additional context
(Add any other context or screenshots about the feature request here.)
The text was updated successfully, but these errors were encountered: