Closed wilicyy closed 1 year ago
推其他流时有报错:
2022-11-23 05:21:57,626 [89] DEBUG AKStream - [AKStreamWeb]->HTTP-INPUT->::ffff:127.0.0.1->POST->/MediaServer/WebHook/OnStreamChanged -> {"req":{"MediaServerId":"your_server_id","App":"rtp","Schema":"ts","Stream":"0AE1F0F5","Vhost":"defaultVhost","Regist":false}}
2022-11-23 05:21:57,626 [95] DEBUG AKStream - [AKStreamWeb]->HTTP-INPUT->::ffff:127.0.0.1->POST->/MediaServer/WebHook/OnStreamChanged -> {"req":{"MediaServerId":"your_server_id","App":"rtp","Schema":"rtsp","Stream":"0AE1F0F5","Vhost":"defaultVhost","Regist":false}}
2022-11-23 05:21:57,626 [94] DEBUG AKStream - [AKStreamWeb]->HTTP-INPUT->::ffff:127.0.0.1->POST->/MediaServer/WebHook/OnStreamChanged -> {"req":{"MediaServerId":"your_server_id","App":"rtp","Schema":"hls","Stream":"0AE1F0F5","Vhost":"defaultVhost","Regist":false}}
2022-11-23 05:21:57,627 [86] DEBUG AKStream - [AKStreamWeb]->HTTP-INPUT->::ffff:127.0.0.1->POST->/MediaServer/WebHook/OnStreamChanged -> {"req":{"MediaServerId":"your_server_id","App":"rtp","Schema":"rtmp","Stream":"0AE1F0F5","Vhost":"defaultVhost","Regist":false}}
2022-11-23 05:21:57,692 [95] DEBUG AKStream - [AKStreamWeb]->HTTP-OUTPUT->::ffff:127.0.0.1->POST->/MediaServer/WebHook/OnStreamChanged->StatusCode:200->Body: {"Msg":"success","Code":0}
2022-11-23 05:21:57,693 [89] DEBUG AKStream - [AKStreamWeb]->HTTP-OUTPUT->::ffff:127.0.0.1->POST->/MediaServer/WebHook/OnStreamChanged->StatusCode:200->Body: {"Msg":"success","Code":0}
2022-11-23 05:21:57,697 [94] DEBUG AKStream - [AKStreamWeb]->HTTP-OUTPUT->::ffff:127.0.0.1->POST->/MediaServer/WebHook/OnStreamChanged->StatusCode:200->Body: {"Msg":"success","Code":0}
2022-11-23 05:21:57,697 [89] DEBUG AKStream - [AKStreamWeb]->HTTP-INPUT->::ffff:127.0.0.1->POST->/MediaServer/WebHook/OnStreamChanged -> {"req":{"MediaServerId":"your_server_id","App":"rtp","Schema":"fmp4","Stream":"0AE1F0F5","Vhost":"defaultVhost","Regist":false}}
2022-11-23 05:21:57,698 [89] DEBUG AKStream - [AKStreamWeb]->HTTP-OUTPUT->::ffff:127.0.0.1->POST->/MediaServer/WebHook/OnStreamChanged->StatusCode:200->Body: {"Msg":"success","Code":0}
2022-11-23 05:21:57,698 [86] INFO AKStream - [AKStreamWeb]->收到WebHook-OnStreamChanged回调(流移除)->{"MediaServerId":"your_server_id","App":"rtp","Schema":"rtmp","Stream":"0AE1F0F5","Vhost":"defaultVhost","Regist":false}
2022-11-23 05:21:57,705 [86] ERROR AKStream - [AKStreamWeb]->HTTP-OUTPUT->::ffff:127.0.0.1->POST->/MediaServer/WebHook/OnStreamChanged->StatusCode:200->Object reference not set to an instance of an object.-> at AKStreamWeb.Attributes.LogAttribute.OnActionExecuted(ActionExecutedContext context) in /home/wilson/sgsstream/ivisionnet/src/AKStream/AKStreamWeb/Attributes/LogAttribute.cs:line 42
2022-11-23 05:21:57,713 [86] ERROR AKStream - [AKStreamWeb]->HTTP-OUTPUT->::ffff:127.0.0.1->POST->/MediaServer/WebHook/OnStreamChanged->StatusCode:500->Body: 抱歉,出错了
Object reference not set to an instance of an object.
at AKStreamWeb.Services.WebHookService.OnStreamChanged(ReqForWebHookOnStreamChange req) in /home/wilson/sgsstream/ivisionnet/src/AKStream/AKStreamWeb/Services/WebHookService.cs:line 454
at lambda_method770(Closure , Object , Object[] )
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.
拉相机的RTSP流也报错: { "Code": "MediaServer_WaitWebHookTimeOut", "Message": "等待流媒体服务器回调响应超时" } ZLMediaKit的LOG是: 2022-11-23 06:04:40.992 I MediaServer[5138-event poller 2] MediaSource.cpp:517 emitEvent | 媒体注册:hls://defaultVhost/live/81E6E541 2022-11-23 06:04:40.997 W MediaServer[5138-event poller 2] WebHook.cpp:179 operator() | hook http://127.0.0.1:5800/MediaServer/WebHook/OnStreamChanged 6ms,failed[bad http status code]:400:{ "aliveSecond" : 4, "app" : "live", "bytesSpeed" : 258843, "createStamp" : 1669154676, "isRecordingHLS" : true, "isRecordingMP4" : false, "mediaServerId" : "your_server_id", "originSock" : { "identifier" : "", "local_ip" : "192.168.1.5", "local_port" : 42171, "peer_ip" : "192.168.1.10", "peer_port" : 554 }, "originType" : 4, "originTypeStr" : "pull", "originUrl" : "rtsp://admin:sgs123456@192.168.1.10/stream1", "readerCount" : 0, "regist" : true, "schema" : "hls", "stream" : "81E6E541", "totalReaderCount" : 0, "tracks" : [ { "channels" : 1, "codec_id" : 4, "codec_id_name" : "PCMU", "codec_type" : 1, "loss" : 0.0, "ready" : true, "sample_bit" : 16, "sample_rate" : 8000 }, { "codec_id" : 0, "codec_id_name" : "H264", "codec_type" : 0, "fps" : 15.0, "height" : 1080, "loss" : 0.0, "ready" : true, "width" : 1920 } ], "vhost" : "defaultVhost" }
2022-11-23 06:04:44.001 W MediaServer[5138-event poller 2] WebHook.cpp:179 operator() | hook http://127.0.0.1:5800/MediaServer/WebHook/OnStreamChanged 4ms,failed[bad http status code]:400:{ "aliveSecond" : 4, "app" : "live", "bytesSpeed" : 258843, "createStamp" : 1669154676, "isRecordingHLS" : true, "isRecordingMP4" : false, "mediaServerId" : "your_server_id", "originSock" : { "identifier" : "", "local_ip" : "192.168.1.5", "local_port" : 42171, "peer_ip" : "192.168.1.10",
这个已经修复过了,你拉新代码试试
新代码国标相机还是无法自动推流,好像是找不到HttpSession,ZLM报错是:
2022-11-24 21:06:02.645 T MediaServer[19674-event poller 1] HttpSession.cpp:119 onError | 20-49(192.168.1.5:57150) close connection after send http body completed. 2022-11-24 21:06:02.645 T MediaServer[19674-event poller 1] HttpSession.cpp:33 ~HttpSession | 20-49(192.168.1.5:57150) 2022-11-24 21:06:02.711 T MediaServer[19674-event poller 1] HttpSession.cpp:27 HttpSession | 21-49(192.168.1.5:57156) 2022-11-24 21:06:02.712 D MediaServer[19674-event poller 1] WebApi.cpp:249 http api debug |
POST /index/api/listRtpServer
Accept : application/json,text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8 Connection : Keep-Alive Content-Length : 49 Content-Type : application/json;charset=utf-8 Host : 192.168.1.5:6080 traceparent : 00-1df410ce443652b94406f0dac4bca728-0cb27ec0b8a6f573-00
{"Secret":"035c73f7-bb6b-4889-a715-d9eb2d1925cc"}
{ "code" : 0 }
2022-11-24 21:06:02.713 T MediaServer[19674-event poller 1] HttpSession.cpp:119 onError | 21-49(192.168.1.5:57156) end of file 2022-11-24 21:06:02.713 T MediaServer[19674-event poller 1] HttpSession.cpp:33 ~HttpSession | 21-49(192.168.1.5:57156) 2022-11-24 21:06:03.213 T MediaServer[19674-event poller 1] HttpSession.cpp:27 HttpSession | 22-50(127.0.0.1:33429) 2022-11-24 21:06:03.225 D MediaServer[19674-event poller 1] WebApi.cpp:249 http api debug |
POST /index/hook/on_server_keepalive
Accept : / Accept-Language : zh-CN,zh;q=0.8 Connection : keep-alive Content-Length : 378 Content-Type : application/json Host : 127.0.0.1 User-Agent : ZLMediaKit(git hash:9fd5152/2022-11-19T09:52:10+08:00,branch:master,build time:2022-11-22T08:37:19)
{ "data" : { "Buffer" : 7, "BufferLikeString" : 1, "BufferList" : 0, "BufferRaw" : 6, "Frame" : 0, "FrameImp" : 0, "MediaSource" : 0, "MultiMediaSourceMuxer" : 0, "RtmpPacket" : 0, "RtpPacket" : 0, "Socket" : 58, "TcpClient" : 0, "TcpServer" : 39, "TcpSession" : 1, "UdpServer" : 18, "UdpSession" : 0 }, "mediaServerId" : "your_server_id" }
新代码国标相机还是无法自动推流,好像是找不到HttpSession,ZLM报错是:
2022-11-24 21:06:02.645 T MediaServer[19674-event poller 1] HttpSession.cpp:119 onError | 20-49(192.168.1.5:57150) close connection after send http body completed. 2022-11-24 21:06:02.645 T MediaServer[19674-event poller 1] HttpSession.cpp:33 ~HttpSession | 20-49(192.168.1.5:57150) 2022-11-24 21:06:02.711 T MediaServer[19674-event poller 1] HttpSession.cpp:27 HttpSession | 21-49(192.168.1.5:57156) 2022-11-24 21:06:02.712 D MediaServer[19674-event poller 1] WebApi.cpp:249 http api debug |
POST /index/api/listRtpServer
Accept : application/json,text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8 Connection : Keep-Alive Content-Length : 49 Content-Type : application/json;charset=utf-8 Host : 192.168.1.5:6080 traceparent : 00-1df410ce443652b94406f0dac4bca728-0cb27ec0b8a6f573-00
{"Secret":"035c73f7-bb6b-4889-a715-d9eb2d1925cc"}
{ "code" : 0 }
2022-11-24 21:06:02.713 T MediaServer[19674-event poller 1] HttpSession.cpp:119 onError | 21-49(192.168.1.5:57156) end of file 2022-11-24 21:06:02.713 T MediaServer[19674-event poller 1] HttpSession.cpp:33 ~HttpSession | 21-49(192.168.1.5:57156) 2022-11-24 21:06:03.213 T MediaServer[19674-event poller 1] HttpSession.cpp:27 HttpSession | 22-50(127.0.0.1:33429) 2022-11-24 21:06:03.225 D MediaServer[19674-event poller 1] WebApi.cpp:249 http api debug |
POST /index/hook/on_server_keepalive
Accept : / Accept-Language : zh-CN,zh;q=0.8 Connection : keep-alive Content-Length : 378 Content-Type : application/json Host : 127.0.0.1 User-Agent : ZLMediaKit(git hash:9fd5152/2022-11-19T09:52:10+08:00,branch:master,build time:2022-11-22T08:37:19)
{ "data" : { "Buffer" : 7, "BufferLikeString" : 1, "BufferList" : 0, "BufferRaw" : 6, "Frame" : 0, "FrameImp" : 0, "MediaSource" : 0, "MultiMediaSourceMuxer" : 0, "RtmpPacket" : 0, "RtpPacket" : 0, "Socket" : 58, "TcpClient" : 0, "TcpServer" : 39, "TcpSession" : 1, "UdpServer" : 18, "UdpSession" : 0 }, "mediaServerId" : "your_server_id" }
国标我这两天自己测试过,正常的,你再拉新代码试试
拉的最新代码测试了下,国标相机自动接入后,写数据库的服务器ID错了,还是不能自动推流,上个月可以的:
服务器id哪错了?unkonw这个? 如果是这个明显就是没激活麻
{ "Code": "Sys_DataBaseLimited", "Message": "数据库操作受限,请检查相关参数,如分页查询时每页不能超过10000行,第一页从1开始而不是从0开始" }