Open lovegaoshi opened 1 year ago
Describe the bug 我最近一周内遇到有时候了主播下播后,录播仍不停止的情况。 我使用修改过的DDRecorder v1.3.0,没有修改录制函数部分,修正了UA。我查看DDRecorder v1.3.3也没有修改录制函数的部分。
To Reproduce 如下不正常日志。直播间680526下播后,录播并没有停止(没有680526 下播了日志,录制完成日志)。
Wed, 07 Jun 2023 16:08:47 139824366424064 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:685026] 直播间标题:【唱歌】唱就完事了,不听吃亏 Wed, 07 Jun 2023 16:08:47 139824366424064 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:25077199] 直播间标题:【LIVE】好久不见~ Wed, 07 Jun 2023 16:08:47 139824366424064 MainThread BaseLive.py[line:67] WARNING [Site:BiliBili Room:25077199] stream title 【LIVE】好久不见~ is rejected by the filter rule Wed, 07 Jun 2023 16:08:50 139824302200384 Thread-6 BaseLive.py[line:71] INFO [Site:BiliBili Room:23368278] 等待开播 Wed, 07 Jun 2023 16:09:15 139824335771200 Thread-2 BaseLive.py[line:71] INFO [Site:BiliBili Room:21802860] 等待开播 Wed, 07 Jun 2023 16:09:18 139824366424064 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:24688068] 直播间标题:上工 Wed, 07 Jun 2023 16:09:18 139824366424064 MainThread BaseLive.py[line:67] WARNING [Site:BiliBili Room:24688068] stream title 上工 is rejected by the filter rule Wed, 07 Jun 2023 16:09:38 139824366424064 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:24088644] 等待开播 Wed, 07 Jun 2023 16:09:49 139824366424064 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:685026] 直播间标题:【唱歌】唱就完事了,不听吃亏 Wed, 07 Jun 2023 16:09:49 139824366424064 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:25077199] 直播间标题:【LIVE】好久不见~ Wed, 07 Jun 2023 16:09:49 139824366424064 MainThread BaseLive.py[line:67] WARNING [Site:BiliBili Room:25077199] stream title 【LIVE】好久不见~ is rejected by the filter rule Wed, 07 Jun 2023 16:09:51 139824302200384 Thread-6 BaseLive.py[line:71] INFO [Site:BiliBili Room:23368278] 等待开播 Wed, 07 Jun 2023 16:10:16 139824335771200 Thread-2 BaseLive.py[line:71] INFO [Site:BiliBili Room:21802860] 等待开播 Wed, 07 Jun 2023 16:10:20 139824366424064 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:24688068] 直播间标题:上工 Wed, 07 Jun 2023 16:10:20 139824366424064 MainThread BaseLive.py[line:67] WARNING [Site:BiliBili Room:24688068] stream title 上工 is rejected by the filter rule Wed, 07 Jun 2023 16:10:40 139824366424064 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:24088644] 等待开播 Wed, 07 Jun 2023 16:10:51 139824366424064 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:685026] 直播间标题:【唱歌】唱就完事了,不听吃亏 Wed, 07 Jun 2023 16:10:51 139824302200384 Thread-6 BaseLive.py[line:71] INFO [Site:BiliBili Room:23368278] 等待开播 Wed, 07 Jun 2023 16:10:51 139824366424064 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:25077199] 直播间标题:【LIVE】好久不见~ Wed, 07 Jun 2023 16:10:51 139824366424064 MainThread BaseLive.py[line:67] WARNING [Site:BiliBili Room:25077199] stream title 【LIVE】好久不见~ is rejected by the filter rule Wed, 07 Jun 2023 16:11:16 139824335771200 Thread-2 BaseLive.py[line:71] INFO [Site:BiliBili Room:21802860] 等待开播 Wed, 07 Jun 2023 16:11:22 139824366424064 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:24688068] 直播间标题:上工 Wed, 07 Jun 2023 16:11:22 139824366424064 MainThread BaseLive.py[line:67] WARNING [Site:BiliBili Room:24688068] stream title 上工 is rejected by the filter rule Wed, 07 Jun 2023 16:11:42 139824366424064 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:24088644] 等待开播 Wed, 07 Jun 2023 16:11:52 139824302200384 Thread-6 BaseLive.py[line:71] INFO [Site:BiliBili Room:23368278] 等待开播 Wed, 07 Jun 2023 16:11:53 139824366424064 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:685026] 等待开播 Wed, 07 Jun 2023 16:11:53 139824366424064 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:25077199] 直播间标题:【LIVE】好久不见~ Wed, 07 Jun 2023 16:11:53 139824366424064 MainThread BaseLive.py[line:67] WARNING [Site:BiliBili Room:25077199] stream title 【LIVE】好久不见~ is rejected by the filter rule Wed, 07 Jun 2023 16:12:17 139824335771200 Thread-2 BaseLive.py[line:71] INFO [Site:BiliBili Room:21802860] 等待开播 Wed, 07 Jun 2023 16:12:24 139824366424064 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:24688068] 直播间标题:上工 Wed, 07 Jun 2023 16:12:24 139824366424064 MainThread BaseLive.py[line:67] WARNING [Site:BiliBili Room:24688068] stream title 上工 is rejected by the filter rule Wed, 07 Jun 2023 16:12:44 139824366424064 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:24088644] 等待开播 Wed, 07 Jun 2023 16:12:52 139824302200384 Thread-6 BaseLive.py[line:71] INFO [Site:BiliBili Room:23368278] 等待开播 Wed, 07 Jun 2023 16:12:55 139824366424064 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:685026] 等待开播
Expected behavior 如下正常日志。录制完成日志 被跟随 下播日志。
Wed, 07 Jun 2023 11:24:18 139824293807680 Thread-7 BiliLiveRecorder.py[line:67] INFO [Site:BiliBili Room:24088644] 录制完成/home/ubuntu/DDRecorder/recording/[海德薇Hedvika] 就是说今天唱歌 2023-06-07 11-23-59.flv Wed, 07 Jun 2023 11:24:19 139824366424064 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:25077199] 直播间标题:【LIVE】好久不见~ Wed, 07 Jun 2023 11:24:19 139824366424064 MainThread BaseLive.py[line:67] WARNING [Site:BiliBili Room:25077199] stream title 【LIVE】好久不见~ is rejected by the filter rule Wed, 07 Jun 2023 11:24:19 139824293807680 Thread-7 BiliLiveRecorder.py[line:33] INFO [Site:BiliBili Room:24088644] √ 正在录制...24088644 Wed, 07 Jun 2023 11:24:19 139824366424064 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:24088644] 直播间标题:就是说今天唱歌 Wed, 07 Jun 2023 11:24:39 139824293807680 Thread-7 BiliLiveRecorder.py[line:67] INFO [Site:BiliBili Room:24088644] 录制完成/home/ubuntu/DDRecorder/recording/[海德薇Hedvika] 就是说今天唱歌 2023-06-07 11-24-19.flv Wed, 07 Jun 2023 11:24:40 139824293807680 Thread-7 BiliLiveRecorder.py[line:33] INFO [Site:BiliBili Room:24088644] √ 正在录制...24088644 Wed, 07 Jun 2023 11:25:00 139824366424064 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:23368278] 直播间标题:红发保安看点漂亮姐姐 Wed, 07 Jun 2023 11:25:00 139824366424064 MainThread BaseLive.py[line:67] WARNING [Site:BiliBili Room:23368278] stream title 红发保安看点漂亮姐姐 is rejected by the filter rule Wed, 07 Jun 2023 11:25:00 139824293807680 Thread-7 BiliLiveRecorder.py[line:67] INFO [Site:BiliBili Room:24088644] 录制完成/home/ubuntu/DDRecorder/recording/[海德薇Hedvika] 就是说今天唱歌 2023-06-07 11-24-40.flv Wed, 07 Jun 2023 11:25:01 139824293807680 Thread-7 BaseLive.py[line:71] INFO [Site:BiliBili Room:24088644] 等待开播 Wed, 07 Jun 2023 11:25:01 139824293807680 Thread-7 BiliLiveRecorder.py[line:74] INFO [Site:BiliBili Room:24088644] 下播了
Screenshots N/A
Desktop (please complete the following information): Ubuntu 22.04 DDRecorder V1.3.0 Oracle Cloud US-West
Smartphone (please complete the following information): N/A
Additional context
我暂时添加了在300M内判定直播间状态的代码。根据如下日志描述,可以终止遇到这个bug的录制。
Wed, 07 Jun 2023 19:43:05 139802997421632 Thread-5 BaseLive.py[line:64] INFO [Site:BiliBili Room:25077199] 直播间标题:【LIVE】好久不见~ Wed, 07 Jun 2023 19:43:09 139803257458688 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:25077199] 直播间标题:【LIVE】好久不见~ Wed, 07 Jun 2023 19:43:12 139802980636224 Thread-7 BaseLive.py[line:71] INFO [Site:BiliBili Room:24088644] 等待开播 Wed, 07 Jun 2023 19:43:16 139803210102336 Thread-4 BaseLive.py[line:71] INFO [Site:BiliBili Room:24688068] 等待开播 Wed, 07 Jun 2023 19:43:19 139803257458688 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:21802860] 等待开播 Wed, 07 Jun 2023 19:43:20 139803257458688 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:685026] 等待开播 Wed, 07 Jun 2023 19:43:22 139802989028928 Thread-6 BaseLive.py[line:71] INFO [Site:BiliBili Room:23368278] 等待开播 Wed, 07 Jun 2023 19:43:26 139802997421632 Thread-5 BaseLive.py[line:64] INFO [Site:BiliBili Room:25077199] 直播间标题:【LIVE】好久不见~ Wed, 07 Jun 2023 19:43:31 139803257458688 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:25077199] 直播间标题:【LIVE】好久不见~ Wed, 07 Jun 2023 19:43:32 139802980636224 Thread-7 BaseLive.py[line:71] INFO [Site:BiliBili Room:24088644] 等待开播 Wed, 07 Jun 2023 19:43:36 139803210102336 Thread-4 BaseLive.py[line:71] INFO [Site:BiliBili Room:24688068] 等待开播 Wed, 07 Jun 2023 19:43:41 139803257458688 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:21802860] 等待开播 Wed, 07 Jun 2023 19:43:42 139803257458688 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:685026] 等待开播 Wed, 07 Jun 2023 19:43:43 139802989028928 Thread-6 BaseLive.py[line:71] INFO [Site:BiliBili Room:23368278] 等待开播 Wed, 07 Jun 2023 19:43:43 139803257458688 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:23368278] 等待开播 Wed, 07 Jun 2023 19:43:46 139802997421632 Thread-5 BaseLive.py[line:64] INFO [Site:BiliBili Room:25077199] 直播间标题:【LIVE】好久不见~ Wed, 07 Jun 2023 19:43:53 139802980636224 Thread-7 BaseLive.py[line:71] INFO [Site:BiliBili Room:24088644] 等待开播 Wed, 07 Jun 2023 19:43:53 139803257458688 MainThread BaseLive.py[line:64] INFO [Site:BiliBili Room:25077199] 直播间标题:【LIVE】好久不见~ Wed, 07 Jun 2023 19:43:57 139803210102336 Thread-4 BaseLive.py[line:71] INFO [Site:BiliBili Room:24688068] 等待开播 Wed, 07 Jun 2023 19:44:03 139803226887744 Thread-2 BaseLive.py[line:71] INFO [Site:BiliBili Room:21802860] 等待开播 Wed, 07 Jun 2023 19:44:04 139803257458688 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:685026] 等待开播 Wed, 07 Jun 2023 19:44:05 139803257458688 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:23368278] 等待开播 Wed, 07 Jun 2023 19:44:07 139802997421632 Thread-5 BaseLive.py[line:71] INFO [Site:BiliBili Room:25077199] 等待开播 Wed, 07 Jun 2023 19:44:14 139802980636224 Thread-7 BaseLive.py[line:71] INFO [Site:BiliBili Room:24088644] 等待开播 Wed, 07 Jun 2023 19:44:15 139803257458688 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:25077199] 等待开播 Wed, 07 Jun 2023 19:44:18 139803210102336 Thread-4 BaseLive.py[line:71] INFO [Site:BiliBili Room:24688068] 等待开播 Wed, 07 Jun 2023 19:44:24 139803226887744 Thread-2 BaseLive.py[line:71] INFO [Site:BiliBili Room:21802860] 等待开播 Wed, 07 Jun 2023 19:44:26 139803257458688 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:685026] 等待开播 Wed, 07 Jun 2023 19:44:27 139803257458688 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:23368278] 等待开播 Wed, 07 Jun 2023 19:44:28 139802997421632 Thread-5 BaseLive.py[line:71] INFO [Site:BiliBili Room:25077199] 等待开播 Wed, 07 Jun 2023 19:44:35 139802980636224 Thread-7 BaseLive.py[line:71] INFO [Site:BiliBili Room:24088644] 等待开播 Wed, 07 Jun 2023 19:44:38 139803257458688 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:25077199] 等待开播 Wed, 07 Jun 2023 19:44:39 139803210102336 Thread-4 BaseLive.py[line:71] INFO [Site:BiliBili Room:24688068] 等待开播 Wed, 07 Jun 2023 19:44:45 139803226887744 Thread-2 BaseLive.py[line:71] INFO [Site:BiliBili Room:21802860] 等待开播 Wed, 07 Jun 2023 19:44:48 139803257458688 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:685026] 等待开播 Wed, 07 Jun 2023 19:44:49 139803257458688 MainThread BaseLive.py[line:71] INFO [Site:BiliBili Room:23368278] 等待开播 Wed, 07 Jun 2023 19:44:52 139802997421632 Thread-5 BaseLive.py[line:71] INFO [Site:BiliBili Room:25077199] 等待开播 Wed, 07 Jun 2023 19:44:55 139802980636224 Thread-7 BaseLive.py[line:71] INFO [Site:BiliBili Room:24088644] 等待开播 Wed, 07 Jun 2023 19:44:56 139802997421632 Thread-5 BiliLiveRecorder.py[line:56] ERROR [Site:BiliBili Room:25077199] Error while recording:25077199 is not live anymore. Wed, 07 Jun 2023 19:44:57 139802997421632 Thread-5 BiliLiveRecorder.py[line:73] INFO [Site:BiliBili Room:25077199] 录制完成/home/ubuntu/DDRecorder/recording/[江崎Esaki97] 【LIVE】好久不见~ 2023-06-07 19-07-52.flv Wed, 07 Jun 2023 19:44:57 139802997421632 Thread-5 BiliLiveRecorder.py[line:80] INFO [Site:BiliBili Room:25077199] 下播了
感谢您的反馈,中止直播是由live_status控制的,这是由BiliLive.py通过get_room_info接口获取的,因此如果接口请求被风控,确实有可能导致无法正常中止录制。
更新:这个错误仍然发生在直播间 685026,而不是每个房间 live_status是按预期工作;我用它来检查直播流程中300MB内的直播录制
Describe the bug 我最近一周内遇到有时候了主播下播后,录播仍不停止的情况。 我使用修改过的DDRecorder v1.3.0,没有修改录制函数部分,修正了UA。我查看DDRecorder v1.3.3也没有修改录制函数的部分。
To Reproduce 如下不正常日志。直播间680526下播后,录播并没有停止(没有680526 下播了日志,录制完成日志)。
Expected behavior 如下正常日志。录制完成日志 被跟随 下播日志。
Screenshots N/A
Desktop (please complete the following information): Ubuntu 22.04 DDRecorder V1.3.0 Oracle Cloud US-West
Smartphone (please complete the following information): N/A
Additional context
我暂时添加了在300M内判定直播间状态的代码。根据如下日志描述,可以终止遇到这个bug的录制。