Closed Yvan0329 closed 1 year ago
把无人观看自动取消点播的时间设置长一点
把无人观看自动取消点播的时间设置长一点
streamNoneReaderDelayMS=200000 我把这个参数设置大了也没有效果,还是一样的,播放一会就会断开
2023-05-08 03:10:12.670 WARN --- MessageRequestProcessor : [设备未找到 ]deviceId: 37070000081118000001, callId: 568820740@192.168.155.188
2023-05-08 03:11:12.591 INFO --- RegisterRequestProcessor : [注册请求] 设备:37070000081118000001, 开始处理: 172.17.0.1:42102
2023-05-08 03:11:12.615 INFO --- RegisterRequestProcessor : [注册请求] 设备:37070000081118000001, 远程地址为: 172.17.0.1:42102
2023-05-08 03:11:12.616 INFO --- RegisterRequestProcessor : [注册请求] 设备:37070000081118000001, 回复401: 172.17.0.1:42102
2023-05-08 03:11:12.690 INFO --- RegisterRequestProcessor : [注册请求] 设备:37070000081118000001, 开始处理: 172.17.0.1:42102
2023-05-08 03:11:12.698 INFO --- RegisterRequestProcessor : [注册请求] 设备:37070000081118000001, 远程地址为: 172.17.0.1:42102
2023-05-08 03:11:12.702 INFO --- RegisterRequestProcessor : [注册成功] deviceId: 37070000081118000001->172.17.0.1:42102
2023-05-08 03:11:12.702 INFO --- DeviceServiceImpl : [设备上线] deviceId:37070000081118000001->172.17.0.1:42102
2023-05-08 03:11:12.878 WARN --- PoolBase : wvp - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@f97b58c (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2023-05-08 03:11:12.884 WARN --- PoolBase : wvp - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@3bec3bce (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2023-05-08 03:11:12.890 WARN --- PoolBase : wvp - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@39d0a7c1 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2023-05-08 03:11:12.896 WARN --- PoolBase : wvp - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@bd94ea2 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2023-05-08 03:11:18.777 INFO --- ZLMRTPServerFactory : {"code":0,"exist":false}
2023-05-08 03:11:18.779 INFO --- ZLMRTPServerFactory : {"code":0,"port":30000}
2023-05-08 03:11:18.781 INFO --- PlayServiceImpl : [点播开始] deviceId: 37070000081118000001, channelId: 37070000081318000001,收流端口:30000, 收流模式:UDP, SSRC: 0102002226, SSRC校验:true
2023-05-08 03:11:18.796 INFO --- SIPCommander : 37070000081118000001_37070000081318000001 分配的ZLM为: LtN06anlUQb1Nf4X [192.168.155.109:30000]
2023-05-08 03:11:18.954 INFO --- InviteResponseProcessor : [回复ack] 37070000081318000001-> 172.17.0.1:42102
2023-05-08 03:11:19.103 INFO --- ZLMHttpHookListener : [ZLM HOOK]推流鉴权:LtN06anlUQb1Nf4X->rtp://172.17.0.1:59857/rtp/37070000081118000001_37070000081318000001?
2023-05-08 03:11:19.130 INFO --- ZLMHttpHookListener : 推流时发现尚未设置录像路径,从assist服务中读取
2023-05-08 03:11:29.275 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流注册, LtN06anlUQb1Nf4X->rtmp->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:11:29.276 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流注册, LtN06anlUQb1Nf4X->rtsp->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:11:29.277 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流注册, LtN06anlUQb1Nf4X->fmp4->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:11:29.278 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流注册, LtN06anlUQb1Nf4X->ts->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:11:29.294 INFO --- PlayServiceImpl : 收到订阅消息: {"aliveSecond":10,"app":"rtp","bytesSpeed":37,"createStamp":1683515479,"docker":false,"mediaServerId":"LtN06anlUQb1Nf4X","originSock":{"identifier":"37070000081118000001_37070000081318000001","local_ip":"172.17.0.2","local_port":30000,"peer_ip":"172.17.0.1","peer_port":59857},"originType":3,"originTypeStr":"rtp_push","originUrl":"rtp://__defaultVhost__/rtp/37070000081118000001_37070000081318000001","regist":true,"schema":"rtsp","stream":"37070000081118000001_37070000081318000001","totalReaderCount":"0","tracks":[{"channels":1,"codecId":0,"codecType":0,"fps":0,"height":0,"ready":true,"sampleBit":0,"sampleRate":0,"width":0},{"channels":0,"codecId":0,"codecType":0,"fps":25,"height":1080,"ready":true,"sampleBit":0,"sampleRate":0,"width":1920}],"vhost":"__defaultVhost__"}
2023-05-08 03:11:29.380 INFO --- PlayServiceImpl : [点播成功] deviceId: 37070000081118000001, channelId: 37070000081318000001
2023-05-08 03:11:29.380 INFO --- PlayServiceImpl : [请求截图]: 37070000081118000001_37070000081318000001.jpg
2023-05-08 03:11:29.395 INFO --- ZLMRESTfulUtils : Request{method=GET, url=http://0.0.0.0/index/api/getSnap?secret=035c73f7-bb6b-4889-a715-d9eb2d1925cc&expire_sec=1&url=rtsp%3A%2F%2F127.0.0.1%3A554%2Frtp%2F37070000081118000001_37070000081318000001&timeout_sec=15}
2023-05-08 03:11:30.239 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流注册, LtN06anlUQb1Nf4X->hls->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:04.108 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流注销, LtN06anlUQb1Nf4X->rtsp->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:04.108 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流注销, LtN06anlUQb1Nf4X->hls->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:04.109 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流注销, LtN06anlUQb1Nf4X->rtmp->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:04.114 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流注销, LtN06anlUQb1Nf4X->ts->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:04.117 WARN --- PoolBase : wvp - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@252afc5a (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2023-05-08 03:13:04.119 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流注销, LtN06anlUQb1Nf4X->fmp4->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:04.125 WARN --- PoolBase : wvp - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@4e4d94cf (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2023-05-08 03:13:04.146 WARN --- PoolBase : wvp - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@3432a80c (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2023-05-08 03:13:04.157 WARN --- PoolBase : wvp - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@46885afc (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2023-05-08 03:13:04.166 WARN --- PoolBase : wvp - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@26de0b5d (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2023-05-08 03:13:06.294 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流未找到:LtN06anlUQb1Nf4X->rtmp->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:06.313 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流未找到, 发起自动点播:LtN06anlUQb1Nf4X->rtmp->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:06.324 INFO --- ZLMRTPServerFactory : {"code":0,"exist":false}
2023-05-08 03:13:06.328 INFO --- ZLMRTPServerFactory : {"code":0,"port":30002}
2023-05-08 03:13:06.328 INFO --- PlayServiceImpl : [点播开始] deviceId: 37070000081118000001, channelId: 37070000081318000001,收流端口:30002, 收流模式:UDP, SSRC: 0102001476, SSRC校验:true
2023-05-08 03:13:06.330 INFO --- SIPCommander : 37070000081118000001_37070000081318000001 分配的ZLM为: LtN06anlUQb1Nf4X [192.168.155.109:30002]
2023-05-08 03:13:12.783 INFO --- KeepaliveNotifyMessageHandler : [心跳] 设备37070000081118000001地址变化, 远程地址为: 172.17.0.1:54901
2023-05-08 03:13:17.035 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流未找到:LtN06anlUQb1Nf4X->rtmp->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:17.065 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流未找到, 发起自动点播:LtN06anlUQb1Nf4X->rtmp->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:21.336 INFO --- ZLMHttpHookListener : [ZLM HOOK] rtpServer收流超时:LtN06anlUQb1Nf4X->37070000081118000001_37070000081318000001(102001476)
2023-05-08 03:13:24.329 INFO --- PlayServiceImpl : [点播超时] 收流超时 deviceId: 37070000081118000001, channelId: 37070000081318000001,端口:30002, SSRC: 0102001476
2023-05-08 03:13:28.006 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流未找到:LtN06anlUQb1Nf4X->rtmp->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:28.023 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流未找到, 发起自动点播:LtN06anlUQb1Nf4X->rtmp->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:28.029 INFO --- ZLMRTPServerFactory : {"code":0,"exist":false}
2023-05-08 03:13:28.030 INFO --- ZLMRTPServerFactory : {"code":0,"port":30004}
2023-05-08 03:13:28.030 INFO --- PlayServiceImpl : [点播开始] deviceId: 37070000081118000001, channelId: 37070000081318000001,收流端口:30004, 收流模式:UDP, SSRC: 0102008256, SSRC校验:true
2023-05-08 03:13:28.031 INFO --- SIPCommander : 37070000081118000001_37070000081318000001 分配的ZLM为: LtN06anlUQb1Nf4X [192.168.155.109:30004]
2023-05-08 03:13:28.177 INFO --- InviteResponseProcessor : [回复ack] 37070000081318000001-> 172.17.0.1:54901
2023-05-08 03:13:28.317 INFO --- ZLMHttpHookListener : [ZLM HOOK]推流鉴权:LtN06anlUQb1Nf4X->rtp://172.17.0.1:46545/rtp/37070000081118000001_37070000081318000001?
2023-05-08 03:13:28.339 INFO --- ZLMHttpHookListener : 推流时发现尚未设置录像路径,从assist服务中读取
2023-05-08 03:13:39.014 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流未找到:LtN06anlUQb1Nf4X->rtmp->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:39.031 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流未找到, 发起自动点播:LtN06anlUQb1Nf4X->rtmp->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:40.374 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流注册, LtN06anlUQb1Nf4X->rtmp->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:40.377 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流注册, LtN06anlUQb1Nf4X->rtsp->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:40.377 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流注册, LtN06anlUQb1Nf4X->ts->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:40.381 INFO --- PlayServiceImpl : 收到订阅消息: {"aliveSecond":11,"app":"rtp","bytesSpeed":31,"createStamp":1683515608,"docker":false,"mediaServerId":"LtN06anlUQb1Nf4X","originSock":{"identifier":"37070000081118000001_37070000081318000001","local_ip":"172.17.0.2","local_port":30004,"peer_ip":"172.17.0.1","peer_port":46545},"originType":3,"originTypeStr":"rtp_push","originUrl":"rtp://__defaultVhost__/rtp/37070000081118000001_37070000081318000001","regist":true,"schema":"rtsp","stream":"37070000081118000001_37070000081318000001","totalReaderCount":"0","tracks":[{"channels":1,"codecId":0,"codecType":0,"fps":0,"height":0,"ready":true,"sampleBit":0,"sampleRate":0,"width":0},{"channels":0,"codecId":0,"codecType":0,"fps":25,"height":1080,"ready":true,"sampleBit":0,"sampleRate":0,"width":1920}],"vhost":"__defaultVhost__"}
2023-05-08 03:13:40.381 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流注册, LtN06anlUQb1Nf4X->fmp4->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:40.398 INFO --- ZLMHttpHookListener : [ZLM HOOK] 流注册, LtN06anlUQb1Nf4X->hls->rtp/37070000081118000001_37070000081318000001
2023-05-08 03:13:40.461 INFO --- PlayServiceImpl : [点播成功] deviceId: 37070000081118000001, channelId: 37070000081318000001
2023-05-08 03:13:40.463 INFO --- PlayServiceImpl : [请求截图]: 37070000081118000001_37070000081318000001.jpg
2023-05-08 03:13:40.464 INFO --- ZLMRESTfulUtils : Request{method=GET, url=http://0.0.0.0/index/api/getSnap?secret=035c73f7-bb6b-4889-a715-d9eb2d1925cc&expire_sec=1&url=rtsp%3A%2F%2F127.0.0.1%3A554%2Frtp%2F37070000081118000001_37070000081318000001&timeout_sec=15}
你把点播的流类型换成tcp被动试试
Referen
TCP被动正常使用,视频不会断开重连。F12网络也没有重连请求,Log也没有断开重连
那就大概明白了。你之前的断开应该是rtcp断开了。目前咱们时自动开启rtcp保活的,如果必须解决得抓包看看rtcp为何不通了,欢迎来知识星球提问,这里有zlm大佬可以一起讨论下,
环境信息:
-p 18080:18080 -p 30000-30500:30000-30500/udp -p 30000-30500:30000-30500/tcp -p 80:80 -p 5060:5060 -p 5060:5060/udp
描述错误 启动的时候可以搜索到摄像头,并且可以播放视频,但是过一段时间(半分钟)左右就会断掉然后重连,网页的视频会黑屏一下再出现画面,重复几次之后,就无法播放视频,日志显示rtpServer收流超时。
如何复现 docker部署启动,刚启动就可以,过一段时间画面就出不来,收流超时
截图
抓包文件
日志
zlm配置文件
wvp配置文件