asachiri / ddrecorder Goto Github PK
View Code? Open in Web Editor NEW📺Headless全自动B站直播录播、切片、上传一体工具
License: Apache License 2.0
📺Headless全自动B站直播录播、切片、上传一体工具
License: Apache License 2.0
不同分区对应不同简介、标题
biliup内置了 ws qn bda2 kodo gcs bos cos等多个上传线路,auto模式下检测延迟后自动选择
但海外vps及某些特殊情况下,kodo等线路延迟会较大,但却可以跑满带宽,故经常不会被auto模式选中,而选中某些低速线路。
故请求加入可配置的lines参数
biliup的配置文件:
b站上传线路选择,默认为自动模式,目前可手动切换为bda2, kodo, ws, qn, cos, cos-internal(支持腾讯云内网免流+提速)
lines: AUTO
嵌入库例子:
for file in file_list:
video_part = bili.upload_file(file, lines=lines, tasks=tasks)
(感谢大佬,我太菜了不然我就pr了QAQ)
日志:
Sun, 07 Aug 2022 23:22:09 12484 MainThread connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (1): api.bilibili.com:443
Sun, 07 Aug 2022 23:22:10 12484 MainThread connectionpool.py[line:456] DEBUG https://api.bilibili.com:443 "GET /x/web-interface/nav HTTP/1.1" 200 None
Sun, 07 Aug 2022 23:22:10 12484 MainThread connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (1): member.bilibili.com:443
Sun, 07 Aug 2022 23:22:10 12484 MainThread connectionpool.py[line:456] DEBUG https://member.bilibili.com:443 "GET /x/geetest/pre/add HTTP/1.1" 200 114
Sun, 07 Aug 2022 23:22:10 12484 MainThread connectionpool.py[line:228] DEBUG Starting new HTTP connection (1): api.bilibili.com:80
Sun, 07 Aug 2022 23:22:10 12484 MainThread connectionpool.py[line:456] DEBUG http://api.bilibili.com:80 "GET /x/space/myinfo HTTP/1.1" 200 None
Sun, 07 Aug 2022 23:22:10 12484 MainThread bili_webup.py[line:481] INFO 用户权重: 1
Sun, 07 Aug 2022 23:22:10 12484 MainThread bili_webup.py[line:504] INFO 使用客户端api端提交
Sun, 07 Aug 2022 23:22:10 12484 MainThread connectionpool.py[line:228] DEBUG Starting new HTTP connection (1): member.bilibili.com:80
Sun, 07 Aug 2022 23:22:10 12484 MainThread connectionpool.py[line:456] DEBUG http://member.bilibili.com:80 "POST /x/vu/client/add?access_key=f2f000a9b504072184d50e014ee75b71 HTTP/1.1" 200 80
Sun, 07 Aug 2022 23:22:10 12484 MainThread Uploader.py[line:140] ERROR [Site:BiliBili Room:11612417] Error while uploading:{'code': 21150, 'message': '投稿入口升级中,请重新编辑稿件', 'ttl': 1}Traceback (most recent call last):
File "Uploader.py", line 91, in upload
File "biliup\plugins\bili_webup.py", line 496, in submit
Exception: {'code': 21150, 'message': '投稿入口升级中,请重新编辑稿件', 'ttl': 1}
投稿标题如果是日期加当天直播间名称,感觉会便于后期翻查
想要个批量上传本地视频的功能,不知道能不能实现?
尝试了多个账号,更换IP也不行,全部提示如下:
{'code': 86066, 'message': '该账号冻结中', 'ttl': 1, 'data': None}
via 阿里云ECS服务器
OS = CentOS 7.9
python = 3.10.2
下面是报错细节
`[root@iZuf65sjhgk33mv8gbk7e2Z DDRecorder]# python -m pip install -r requirements.txt
Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/
Collecting git+git://github.com/FortuneDayssss/BilibiliUploader.git (from -r requirements.txt (line 58))
Cloning git://github.com/FortuneDayssss/BilibiliUploader.git to /tmp/pip-req-build-wenebb5a
Running command git clone --quiet git://github.com/FortuneDayssss/BilibiliUploader.git /tmp/pip-req-build-wenebb5a
Resolved git://github.com/FortuneDayssss/BilibiliUploader.git to commit 23266861c155c75eae5a29a424a15d87da81c132
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
ERROR: Can not execute setup.py
since setuptools is not available in the build environment.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.`
请问应该怎么解决?
点击去主播特定设置里没看到保存按钮。。。
这个是我的问题还是软件没有。。。
由于不知名原因,最新版安装包压损文件无法找到**文档
Line58
git+git://github.com/FortuneDayssss/BilibiliUploader.git
应更改为
git+https://github.com/FortuneDayssss/BilibiliUploader.git
git://链已拒绝访问,故请求此更改
Describe the bug
单直播间录播结束后,切片和按时间分割的录播文件正常生成。切片自动上传完毕,录播未能上传。填写了账号、密码、access_token、refresh_token。
录制是正常的但是无法上传。log里面显示Exception: {'code': 21011, 'message': '新增稿件分P不能为空', 'ttl': 1},尝试用了压缩包里面自带的配置文件(改了房间号和鉴权)但仍然不行
win10下使用没有其他问题。
录播上传问题
datestr = datetime.datetime.strptime(global_start, '%Y-%m-%d_%H-%M-%S').strftime('%Y{y}%m{m}%d{d}').format(y='年', m='月', d='日')
报错信息
Traceback (most recent call last):
File "D:\Application\Anaconda\lib\multiprocessing\process.py", line 258, in _bootstrap self.run()
File "D:\Application\Anaconda\lib\multiprocessing\process.py", line 93, in runself._target(*self._args, **self._kwargs)
File "E:\DD\DDRecorder-main\DDRecorder-main\main.py", line 24, in procd = u.upload(p.global_start)
File "E:\DD\DDRecorder-main\DDRecorder-main\Uploader.py", line 66, in uploadglobal_start, '%Y-%m-%d_%H-%M%S').strftime('%Y{y}%m{m}%d{d}').format(y='年', m='月', d='日')
TypeError: strptime() argument 1 must be str, not datetime.datetime
还有个问题就是当没有弹幕的时候不会生成弹幕文件,无法继续执行上传操作
请问一下 登录方式能够换成token登录吗,账号风控以后用用户名密码登录会登录不上
添加
{year} {month} {day} {rough_time} 上午下午晚上
{title} 直播标题
希望可以增加一个投稿默认封面图,或当前直播间封面图。
现在的时间格式是2021年10月6日这样的,希望能加入一个自定义功能,我想改成2021-10-6.
啊b的定时发布希望实现以下,我想每天上午9点定时发布而不是直播完就上传审核发布。
如果可能的话,信息刷新时加一个写入状态吧,如果状态不对可以及时发现修复。
大佬,为什么录制文件有flv和ts格式的啊
一场直播下来就是两份一样的文件,只是格式不同
而且records文件夹里还有很多0kb的flv文件
然后为什么merged还有一份mp4文件啊
开了切割还会在splits里每小时一个文件
几乎就是一场直播,四份一样的。。。
+--------+----------+---------+----------+--------------+---------------------+
| TID | 平台 | 房间号 | 直播状态 | 程序状态 | 状态变化时间 |
+--------+----------+---------+----------+--------------+---------------------+
| 332887 | BiliBili | 1991211 | 否 | 正在处理视频 | 2022-06-13 18:33:36 |
+--------+----------+---------+----------+--------------+---------------------+
Traceback (most recent call last):
File "/root/ddrecorder/DDRecorder-1.2.3/Processor.py", line 117, in concat
ret = subprocess.run(
File "/usr/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'ffmpeg -y -f concat -safe 0 -i ./data/merge_confs/1991211_2022-06-13_18-32-19_merge_conf.txt -c copy -fflags +igndts -avoid_negative_ts make_zero ./data/merged/1991211_2022-06-13_18-32-19_merged.mp4' returned non-zero exit status 1.
Traceback (most recent call last):
File "/root/ddrecorder/DDRecorder-1.2.3/Processor.py", line 239, in run
ret = self.pre_concat()
File "/root/ddrecorder/DDRecorder-1.2.3/Processor.py", line 180, in pre_concat
self.live_start = self.times[0][0]
IndexError: list index out of range
使用cookies上传
DDRecorder 当前时间:2022-06-13 18:34:39.711213 正在工作线程数:2
outputs文件夹里啥也没有 records文件夹里有几个flv但是都是0字节的文件 不知道哪步错了呢
萌新一个 刚学着折腾 还请大佬指教一下x
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
请问有没有可能增加手动切片功能, 比如自己在看的时候,看到想要切的地方, 一键保存历史x分钟, 然后自己再对获得的视频文件做别的编辑等 类似nvidia驱动自带的阴影时间
能否像b站录播姬一样,在录制视频的同时增加录制弹幕成xml文件的功能?
目前虽然能记录弹幕到log文件,但经观测发现弹幕缺失严重,而且没有style
在服务器部署,一个就要占130+m内存,多了就遭不住了
最好再来个油管录播上传功能
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
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.
【下面是Processor的log】
Mon, 11 Jul 2022 13:37:30 140254103205440 Thread-3 retry.py[line:351] DEBUG Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None, status=None)
Mon, 11 Jul 2022 13:37:30 140254103205440 Thread-3 connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (1): api.live.bilibili.com:443
Mon, 11 Jul 2022 13:37:30 140254103205440 Thread-3 connectionpool.py[line:456] DEBUG https://api.live.bilibili.com:443 "GET /room/v1/Room/get_info?room_id=24402048 HTTP/1.1" 200 None
Mon, 11 Jul 2022 13:37:30 140254103205440 Thread-3 BiliLive.py[line:26] DEBUG [Site:BiliBili Room:24402048] 房间API消息:ok
Mon, 11 Jul 2022 13:37:30 140254103205440 Thread-3 connectionpool.py[line:456] DEBUG https://api.live.bilibili.com:443 "GET /live_user/v1/UserInfo/get_anchor_in_room?roomid=24402048 HTTP/1.1" 200 773
Mon, 11 Jul 2022 13:37:30 140254103205440 Thread-3 connectionpool.py[line:456] DEBUG https://api.live.bilibili.com:443 "GET /room/v1/Room/get_info?room_id=24402048 HTTP/1.1" 200 None
Mon, 11 Jul 2022 13:37:30 140254103205440 Thread-3 BiliLive.py[line:26] DEBUG [Site:BiliBili Room:24402048] 房间API消息:ok
Mon, 11 Jul 2022 13:37:30 140254103205440 Thread-3 connectionpool.py[line:456] DEBUG https://api.live.bilibili.com:443 "GET /live_user/v1/UserInfo/get_anchor_in_room?roomid=24402048 HTTP/1.1" 200 773
Mon, 11 Jul 2022 13:37:30 140254103205440 Thread-3 BaseLive.py[line:66] INFO [Site:BiliBili Room:24402048] 等待开播
Mon, 11 Jul 2022 13:37:30 140254103205440 Thread-3 connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (1): api.bilibili.com:443
Mon, 11 Jul 2022 13:37:31 140254103205440 Thread-3 connectionpool.py[line:456] DEBUG https://api.bilibili.com:443 "GET /x/web-interface/nav HTTP/1.1" 200 None
Mon, 11 Jul 2022 13:37:31 140254103205440 Thread-3 connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (1): member.bilibili.com:443
Mon, 11 Jul 2022 13:37:31 140254103205440 Thread-3 connectionpool.py[line:456] DEBUG https://member.bilibili.com:443 "GET /x/geetest/pre/add HTTP/1.1" 200 None
Mon, 11 Jul 2022 13:37:31 140254103205440 Thread-3 connectionpool.py[line:228] DEBUG Starting new HTTP connection (1): api.bilibili.com:80
Mon, 11 Jul 2022 13:37:31 140254103205440 Thread-3 connectionpool.py[line:456] DEBUG http://api.bilibili.com:80 "GET /x/space/myinfo HTTP/1.1" 200 None
Mon, 11 Jul 2022 13:37:31 140254103205440 Thread-3 bili_webup.py[line:547] INFO 用户权重: 1
Mon, 11 Jul 2022 13:37:31 140254103205440 Thread-3 bili_webup.py[line:570] INFO 使用客户端api端提交
Mon, 11 Jul 2022 13:37:31 140254103205440 Thread-3 connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (1): passport.bilibili.com:443
Mon, 11 Jul 2022 13:37:31 140254103205440 Thread-3 connectionpool.py[line:456] DEBUG https://passport.bilibili.com:443 "GET /x/passport-login/web/key HTTP/1.1" 200 None
Mon, 11 Jul 2022 13:37:31 140254103205440 Thread-3 connectionpool.py[line:456] DEBUG https://passport.bilibili.com:443 "POST /x/passport-login/oauth2/login HTTP/1.1" 200 None
Mon, 11 Jul 2022 13:37:31 140254103205440 Thread-3 Uploader.py[line:132] ERROR [Site:BiliBili Room:24402048] Error while uploading:{'code': 0, 'message': '0', 'ttl': 1, 'data': {'status': 2, 'message': '本次登录环境存在风险, 需使用手机号进行验证或绑定', 'url': 'https://passport.bilibili.com/account/mobile/security/managephone/phone/verify?tmp_token=fd076ba81c3cef60b257ee349cfbd171&requestId=5a34c07a963e452b9f911074d4ab736b&source=risk', 'token_info': None, 'cookie_info': None, 'sso': None}}Traceback (most recent call last):
File "/root/ddrec/DDRecorder-main/Uploader.py", line 124, in upload
record_video_ret = self.uploader.submit()
File "/usr/local/lib/python3.10/dist-packages/biliup/plugins/bili_webup.py", line 556, in submit
ret = self.submit_client()
File "/usr/local/lib/python3.10/dist-packages/biliup/plugins/bili_webup.py", line 574, in submit_client
self.login_by_password(**self.account)
File "/usr/local/lib/python3.10/dist-packages/biliup/plugins/bili_webup.py", line 226, in login_by_password
raise RuntimeError(r)
RuntimeError: {'code': 0, 'message': '0', 'ttl': 1, 'data': {'status': 2, 'message': '本次登录环境存在风险, 需使用手机号进行验证或绑定', 'url': 'https://passport.bilibili.com/account/mobile/security/managephone/phone/verify?tmp_token=fd076ba81c3cef60b257ee349cfbd171&requestId=5a34c07a963e452b9f911074d4ab736b&source=risk', 'token_info': None, 'cookie_info': None, 'sso': None}}
录制是成功了的 就是上传没对
另外问一下ffmpeg的log【/bin/sh: 1: ffmpeg: not found】是什么情况呢 我设置了环境变量的 直接输入ffmpeg指令能调用出来
还请大佬指教orz
昨天开始突然就不自动上传了
提示这个“login fail, error code = -449”
请问是怎么回事?
使用的是latest(edba212)编译的Docker版跑在Ubuntu18.04上。
config.json
里已经设置"keep_raw_record" : false
和 "keep_record_after_upload": false
今天发现昨天的录播上传成功且过审之后,数据文件夹内records
是没有没有视频文件的(应该是"keep_raw_record" : false
参数起了作用),但merged
文件夹内保留了完整的录像mp4文件以及splits
文件夹内保留了所有split的mp4文件,"keep_record_after_upload": false
参数并没有起到作用。
完整的config.json
如下:
{
"root": {
"check_interval": 120,
"print_interval": 10,
"data_path": "/downloads",
"logger": { "log_path": "/app/log", "log_level": "DEBUG" },
"request_header": {},
"uploader": {
"upload_by_edit": true,
"thread_pool_workers": 4,
"max_retry": 10
},
"enable_baiduyun": false
},
"spec": [
{
"room_id": "22637920",
"recorder": { "keep_raw_record": false },
"parser": {
"interval": 30,
"up_ratio": 2.5,
"down_ratio": 0.75,
"topK": 5
},
"clipper": {
"enable_clipper": false,
"min_length": 60,
"start_offset": -20,
"end_offset": 10
},
"uploader": {
"account": {
"username": "xxxxxx",
"password": "xxxxxx"
},
"copyright": 2,
"record": {
"upload_record": true,
"keep_record_after_upload": false,
"split_interval": 3600,
"title": "{date} 直播录播",
"tid": 65,
"tags": ["直播录播"],
"desc": "本视频由全自动切片型智能DD机剪辑上传~"
},
"clips": {
"upload_clips": false,
"keep_clips_after_upload": false,
"title": "{date} 直播精彩剪辑【自动切片】",
"tid": 65,
"tags": ["直播录播"],
"desc": "本视频由全自动切片型智能DD机剪辑上传~"
}
},
"backup": false
}
]
}
Is your feature request related to a problem? Please describe.
有时候直播内容切换了,仅需要前一部分的录制内容进行快速切片发布,不想等到整场直播结束之后才开始剪辑。(尤其见于耐久直播)
Describe the solution you'd like
希望可以按文件大小或时长进行自动切换文件,这样可以直接获取已经关闭的flv录播文件进行剪辑。
Describe alternatives you've considered
或者,可以像手动切片一样,通过弹幕指令触发文件切换。
但是手动切片指令是在处理完成整场直播的录制文件之后才处理的。但这个手动分段指令则要求实时处理。
Additional context
暂无。单个的flv文件可不考虑进行时间轴修复,由用户手动通过 yamdi 等工具注入元数据进行修复。
DDRecorder git:(main) ✗ python main.py ./config/config.json
解析配置文件时出现错误,请检查配置文件!
错误详情:Invalid \escape: line 57 column 83 (char 1667)
sh:行1: pause:未找到命令
Traceback (most recent call last):
File "main.py", line 57, in
utils.check_and_create_dir(all_config.get(
NameError: name 'all_config' is not defined
DDRecorder已是最新版本!
下面是Processor的log
Wed, 06 Jul 2022 22:07:22 140207663871552 Thread-3 Processor.py[line:273] INFO Processing clipper
Wed, 06 Jul 2022 22:07:22 140207663871552 Thread-3 retry.py[line:351] DEBUG Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None, status=None)
Wed, 06 Jul 2022 22:07:22 140207663871552 Thread-3 connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (1): api.live.bilibili.com:443
Wed, 06 Jul 2022 22:07:22 140207663871552 Thread-3 connectionpool.py[line:456] DEBUG https://api.live.bilibili.com:443 "GET /room/v1/Room/get_info?room_id=1991211 HTTP/1.1" 200 None
Wed, 06 Jul 2022 22:07:22 140207663871552 Thread-3 BiliLive.py[line:26] DEBUG [Site:BiliBili Room:1991211] 房间API消息:ok
Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:456] DEBUG https://api.live.bilibili.com:443 "GET /live_user/v1/UserInfo/get_anchor_in_room?roomid=1991211 HTTP/1.1" 200 740
Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:456] DEBUG https://api.live.bilibili.com:443 "GET /room/v1/Room/get_info?room_id=1991211 HTTP/1.1" 200 None
Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 BiliLive.py[line:26] DEBUG [Site:BiliBili Room:1991211] 房间API消息:ok
Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:456] DEBUG https://api.live.bilibili.com:443 "GET /live_user/v1/UserInfo/get_anchor_in_room?roomid=1991211 HTTP/1.1" 200 740
Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 BaseLive.py[line:66] INFO [Site:BiliBili Room:1991211] 等待开播
Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (1): api.bilibili.com:443
Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:456] DEBUG https://api.bilibili.com:443 "GET /x/web-interface/nav HTTP/1.1" 200 None
Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (1): member.bilibili.com:443
Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:456] DEBUG https://member.bilibili.com:443 "GET /x/geetest/pre/add HTTP/1.1" 200 None
Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:228] DEBUG Starting new HTTP connection (1): api.bilibili.com:80
Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:456] DEBUG http://api.bilibili.com:80 "GET /x/space/myinfo HTTP/1.1" 200 None
Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 bili_webup.py[line:547] INFO 用户权重: 1
Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 bili_webup.py[line:570] INFO 使用客户端api端提交
Wed, 06 Jul 2022 22:07:23 140207663871552 Thread-3 connectionpool.py[line:228] DEBUG Starting new HTTP connection (1): member.bilibili.com:80
Wed, 06 Jul 2022 22:07:24 140207663871552 Thread-3 connectionpool.py[line:456] DEBUG http://member.bilibili.com:80 "POST /x/vu/client/add?access_key=2780e54b8b72a27b69be55325f3cba71 HTTP/1.1" 200 None
Wed, 06 Jul 2022 22:07:24 140207663871552 Thread-3 Uploader.py[line:132] ERROR [Site:BiliBili Room:1991211] Error while uploading:{'code': 21011, 'message': '新增稿件分P不能为空', 'ttl': 1}Traceback (most recent call last):
File "/root/ddrec/DDRecorder-main/Uploader.py", line 86, in upload
clips_video_ret = self.uploader.submit()
File "/usr/local/lib/python3.10/dist-packages/biliup/plugins/bili_webup.py", line 562, in submit
raise Exception(ret)
Exception: {'code': 21011, 'message': '新增稿件分P不能为空', 'ttl': 1}
环境:win10
软件版本:1.2.1
账号等级lv1
录播和切片的分P功能无效,自动投稿变成单P稿件
PS:目前网页端无法多P投稿,ForgQi/Caution这个项目目前可以通过客户端口提交多P稿件
实际自动上传录播时需要向同一bv号下新增视频 此时视频title固定 需要以编辑模式上传,变更视频名称。可以考虑新增这方面功能吗?
另外 考虑到直播连接不稳定的情况下,能否自定义录播的时长下限?
系统环境Ubuntu20
录播下载完成后显示运行ffmpeg,状态显示正在处理视频。
处理完毕后状态显示为正在上传至BiliBIli
弹出如下
upload 31384_2022-03-25_09-24-41_0001.mp4 added in pool
chunk0/1156
filename: 31384_2022-03-25_09-24-41_0000.mp4
200
该chunk值增加缓慢(超过一小时该主播录播未上传完毕)
后台显示上传速率10~20M左右
机器位于LV,带宽1000M,使用biliup-rs测试选择kodo线路,单文件并发上传数3~6可以跑满至900M
猜测时候是上传时选择了其他线路问题
不知如何更改,且不确定问题原因
在录播完成后视频处理阶段,某些python文件会报错导致不能正常将视频按照设置分段和上传,且导致录播源文件丢失,已开启保留源文件。
正在翻找log以确认具体错误。
打开DDRecorder.exe后
Traceback (most recent call last):
File "main.py", line 12, in <module>
File "PyInstaller\loader\pyimod03_importers.py", line 476, in exec_module
File "MainRunner.py", line 12, in <module>
File "PyInstaller\loader\pyimod03_importers.py", line 476, in exec_module
File "DanmuRecorder.py", line 13, in <module>
File "PyInstaller\loader\pyimod03_importers.py", line 476, in exec_module
File "brotli\__init__.py", line 3, in <module>
File "PyInstaller\loader\pyimod03_importers.py", line 476, in exec_module
File "brotli\brotli.py", line 5, in <module>
ModuleNotFoundError: No module named '_cffi_backend'
[24396] Failed to execute script 'main' due to unhandled exception!
大概是封包时cffi模组出错
Is your feature request related to a problem? Please describe.
手动切片的指令在直播间弹幕中有点刺眼。
Describe the solution you'd like
每个直播间的spec中manual_clipper
可以指定一个自定义命令。例如这样:
...
"manual_clipper": {
"uid": "UID",
"enabled": true,
"command": "/太草了"
},
...
则在直播间发送/太草了 60
即可快速切片(从弹幕时间回溯60秒)。
如果没有设置command则还是使用默认的/DDR clip
。
Describe alternatives you've considered
无。
Additional context
我这边可以提PR。
投稿类型为自制还是转载?是否可以自行选择?
录播录制完毕后正在合并flv文件时控制台出错,再次打开后就不会继续合成flv以及进行后续的切片操作了。能否增加继续之前未完成的任务的功能?
描述错误
多个直播间同时录制时,自动投稿只投稿第一个 且分P投稿失败
系统
Windows 10 企业版 LTSC 21H2
Thu, 21 Jul 2022 22:18:54 18996 MainThread retry.py[line:351] DEBUG Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None, status=None)
Thu, 21 Jul 2022 22:18:54 19340 Thread-1 ProjectHolder.py[line:58] INFO Using cache directory: C:\Users\asus\AppData\Local\lastversion\lastversion\Cache.
Thu, 21 Jul 2022 22:18:54 18996 MainThread connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (1): api.live.bilibili.com:443
Thu, 21 Jul 2022 22:18:54 19340 Thread-1 ProjectHolder.py[line:65] INFO Created instance of GitHubRepoSession
Thu, 21 Jul 2022 22:18:54 19340 Thread-1 controller.py[line:132] DEBUG Looking up "https://github.com/AsaChiri/DDRecorder/releases.atom" in the cache
Thu, 21 Jul 2022 22:18:54 19340 Thread-1 controller.py[line:147] DEBUG No cache entry available
Thu, 21 Jul 2022 22:18:54 19340 Thread-1 connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (1): github.com:443
Thu, 21 Jul 2022 22:18:54 18996 MainThread retry.py[line:594] DEBUG Incremented Retry for (url='/room/v1/Room/get_info?room_id=92613'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
Thu, 21 Jul 2022 22:18:54 18996 MainThread connectionpool.py[line:810] WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', FileNotFoundError(2, 'No such file or directory'))': /room/v1/Room/get_info?room_id=92613
Thu, 21 Jul 2022 22:18:54 18996 MainThread connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (2): api.live.bilibili.com:443
Thu, 21 Jul 2022 22:18:55 18996 MainThread retry.py[line:594] DEBUG Incremented Retry for (url='/room/v1/Room/get_info?room_id=92613'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
Thu, 21 Jul 2022 22:18:55 18996 MainThread connectionpool.py[line:810] WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', FileNotFoundError(2, 'No such file or directory'))': /room/v1/Room/get_info?room_id=92613
Thu, 21 Jul 2022 22:18:55 18996 MainThread connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (3): api.live.bilibili.com:443
Thu, 21 Jul 2022 22:18:55 18996 MainThread retry.py[line:594] DEBUG Incremented Retry for (url='/room/v1/Room/get_info?room_id=92613'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
Thu, 21 Jul 2022 22:18:55 18996 MainThread connectionpool.py[line:810] WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', FileNotFoundError(2, 'No such file or directory'))': /room/v1/Room/get_info?room_id=92613
Thu, 21 Jul 2022 22:18:55 18996 MainThread connectionpool.py[line:1001] DEBUG Starting new HTTPS connection (4): api.live.bilibili.com:443
Thu, 21 Jul 2022 22:18:55 18996 MainThread BaseLive.py[line:48] ERROR [Site:BiliBili Room:92613] Request ErrorHTTPSConnectionPool(host='api.live.bilibili.com', port=443): Max retries exceeded with url: /room/v1/Room/get_info?room_id=92613 (Caused by ProxyError('Cannot connect to proxy.', FileNotFoundError(2, 'No such file or directory')))Traceback (most recent call last):
File "urllib3\connectionpool.py", line 700, in urlopen
File "urllib3\connectionpool.py", line 994, in prepare_proxy
File "urllib3\connection.py", line 364, in connect
File "urllib3\connection.py", line 499, in connect_tls_proxy
File "urllib3\util\ssl.py", line 453, in ssl_wrap_socket
File "urllib3\util\ssl.py", line 495, in _ssl_wrap_socket_impl
File "ssl.py", line 500, in wrap_socket
File "ssl.py", line 1040, in _create
File "ssl.py", line 1309, in do_handshake
FileNotFoundError: [Errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "requests\adapters.py", line 440, in send
File "urllib3\connectionpool.py", line 813, in urlopen
File "urllib3\connectionpool.py", line 813, in urlopen
File "urllib3\connectionpool.py", line 813, in urlopen
File "urllib3\connectionpool.py", line 785, in urlopen
File "urllib3\util\retry.py", line 592, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.live.bilibili.com', port=443): Max retries exceeded with url: /room/v1/Room/get_info?room_id=92613 (Caused by ProxyError('Cannot connect to proxy.', FileNotFoundError(2, 'No such file or directory')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "BaseLive.py", line 41, in common_request
File "requests\sessions.py", line 542, in get
File "requests\sessions.py", line 529, in request
File "requests\sessions.py", line 645, in send
File "requests\adapters.py", line 513, in send
requests.exceptions.ProxyError: HTTPSConnectionPool(host='api.live.bilibili.com', port=443): Max retries exceeded with url: /room/v1/Room/get_info?room_id=92613 (Caused by ProxyError('Cannot connect to proxy.', FileNotFoundError(2, 'No such file or directory')))
Thu, 21 Jul 2022 22:18:55 18996 MainThread init.py[line:14] ERROR Uncaught exception:
Traceback (most recent call last):
File "main.py", line 77, in
File "MainRunner.py", line 126, in init
File "MainRunner.py", line 27, in init
File "BiliLive.py", line 16, in init
File "BiliLive.py", line 23, in get_room_info
AttributeError: 'NoneType' object has no attribute 'json'
我自己用 pyinstaller 编译出来 12M exe 可以正常运行,不知道 60M 是包含了什么?没有看到有编译相关的配置文件
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.