Monibuca / engine

Monibuca 核心引擎,包含流媒体核心转发逻辑,需要配合功能插件一起组合运行
MIT License
939 stars 199 forks source link

一样的GB28281接入设置,v3可以用,v4报错 #47

Closed Rebellioncry closed 2 years ago

Rebellioncry commented 2 years ago

17:47:12 INFO install {"plugin": "Debug", "version": "v4.0.0-20220506113031-34f3a736ceb2"} 17:47:12 INFO install {"plugin": "GB28181", "version": "v4.0.0-20220607131724-e110acfb56d3"} 17:47:12 INFO install {"plugin": "HDL", "version": "v4.0.0-20220520061858-640094798008"} 17:47:12 INFO install {"plugin": "HLS", "version": "v4.0.0-20220526032106-b2c401b1cbb5"} 17:47:12 INFO install {"plugin": "Hook", "version": "v4.0.0-20220510140048-d4f76fd1c415"} 17:47:12 INFO install {"plugin": "Jessica", "version": "v4.0.0-20220511035009-ac66c57b299d"} 17:47:12 INFO install {"plugin": "LogRotate", "version": "v4.0.0-20220506113619-1a557d4707a5"} 17:47:12 INFO install {"plugin": "Preview", "version": "v4.0.0-20220612074126-ea770517a67e"} 17:47:12 INFO install {"plugin": "Record", "version": "v4.0.0-20220612043738-8f9b23601007"} 17:47:12 INFO install {"plugin": "Room", "version": "v4.0.0-20220512035851-f980d4a7f6a0"} 17:47:12 INFO install {"plugin": "RTMP", "version": "v4.0.0-20220526123604-cbe785dedaae"} 17:47:12 INFO install {"plugin": "RTSP", "version": "v4.0.0-20220605130937-f9bc450d0186"} 17:47:12 INFO install {"plugin": "WebRTC", "version": "v4.0.0-20220606135438-05117be5d638"} 17:47:12 INFO install {"plugin": "WebTransport", "version": "v4.0.0-20220606132852-13c8e2349a26"} 17:47:12 INFO install {"plugin": "Snap", "version": "v4.0.0-20220612035905-720756e0d9ce"} 17:47:12 INFO Ⓜ starting m7s v4 17:47:12 INFO http handle added:/api/closestream {"engine": true} 17:47:12 INFO http handle added:/api/getconfig {"engine": true} 17:47:12 INFO http handle added:/api/modifyconfig {"engine": true} 17:47:12 INFO http handle added:/api/plugins {"engine": true} 17:47:12 INFO http handle added:/api/stream {"engine": true} 17:47:12 INFO http handle added:/api/summary {"engine": true} 17:47:12 INFO http handle added:/api/sysinfo {"engine": true} 17:47:12 INFO http handle added:/api/updateconfig {"engine": true} 17:47:12 INFO http handle added:/ {"engine": true} 17:47:12 DEBUG {"config": "global", "config": engine: publish: pubaudio: true pubvideo: true kickexist: false publishtimeout: 10 waitclosetimeout: 0 subscribe: subaudio: true subvideo: true iframeonly: false waittimeout: 10 http: listenaddr: :8080 listenaddrtls: "" certfile: "" keyfile: "" cors: true username: "" password: "" rtpreorder: false enableavcc: true enablertp: true enableflv: true consoleurl: wss://console.monibuca.com/ws/v1 secret: ""} 17:47:12 INFO 🌐 http listen at :8080 17:47:12 INFO http handle added:/ {"plugin": "Jessica"} 17:47:12 INFO http handle added to engine:/jessica/ {"plugin": "Jessica"} 17:47:12 DEBUG config {"plugin": "Jessica", "config": http: listenaddr: :8080 listenaddrtls: "" certfile: "" keyfile: "" cors: true username: "" password: "" subscribe: subaudio: true subvideo: true iframeonly: false waittimeout: 10} 17:47:12 DEBUG config {"plugin": "WebTransport", "config": listenaddr: :4433 certfile: "" keyfile: ""} 17:47:12 WARN no cert or key file specified, plugin disabled {"plugin": "WebTransport"} 17:47:12 INFO http handle added to engine:/hls/api/list {"plugin": "HLS"} 17:47:12 INFO http handle added to engine:/hls/api/pull {"plugin": "HLS"} 17:47:12 INFO http handle added to engine:/hls/api/save {"plugin": "HLS"} 17:47:12 INFO http handle added to engine:/hls/ {"plugin": "HLS"} 17:47:12 DEBUG config {"plugin": "HLS", "config": publish: pubaudio: true pubvideo: true kickexist: false publishtimeout: 10 waitclosetimeout: 0 pull: repull: 0 pullonstart: false pullonsubscribe: false pulllist: {} subscribe: subaudio: true subvideo: true iframeonly: false waittimeout: 10 fragment: 10 window: 2 filter: "" path: ""} 17:47:12 INFO http handle added to engine:/logrotate/api/download {"plugin": "LogRotate"} 17:47:12 INFO http handle added to engine:/logrotate/api/find {"plugin": "LogRotate"} 17:47:12 INFO http handle added to engine:/logrotate/api/list {"plugin": "LogRotate"} 17:47:12 INFO http handle added to engine:/logrotate/api/open {"plugin": "LogRotate"} 17:47:12 INFO http handle added to engine:/logrotate/api/tail {"plugin": "LogRotate"} 17:47:12 DEBUG config {"plugin": "LogRotate", "config": path: ./logs size: 0 days: 1 formatter: 2006-01-02T15} 17:47:12 INFO http handle added to engine:/preview/ {"plugin": "Preview"} 17:47:12 DEBUG config {"plugin": "Preview", "config": {}} 17:47:12 INFO http handle added to engine:/rtsp/api/pull {"plugin": "RTSP"} 17:47:12 INFO http handle added to engine:/rtsp/api/push {"plugin": "RTSP"} 17:47:12 INFO http handle added to engine:/rtsp/api/list {"plugin": "RTSP"} 17:47:12 DEBUG config {"plugin": "RTSP", "config": publish: pubaudio: true pubvideo: true kickexist: false publishtimeout: 10 waitclosetimeout: 0 subscribe: subaudio: true subvideo: true iframeonly: false waittimeout: 10 pull: repull: 0 pullonstart: false pullonsubscribe: false pulllist: {} push: repush: 0 pushlist: {} listenaddr: :554 udpaddr: :8000 rtcpaddr: :8001 readbuffersize: 2048 map: {}} 17:47:12 INFO http handle added to engine:/snap/ {"plugin": "Snap"} 17:47:12 DEBUG config {"plugin": "Snap", "config": subscribe: subaudio: true subvideo: true iframeonly: false waittimeout: 10 ffmpeg: ffmpeg path: "" filter: ""} 17:47:12 INFO http handle added to engine:/debug/profile {"plugin": "Debug"} 17:47:12 INFO http handle added to engine:/debug/ {"plugin": "Debug"} 17:47:12 INFO http handle added to engine:/debug/trace {"plugin": "Debug"} 17:47:12 DEBUG config {"plugin": "Debug", "config": {}} 17:47:12 INFO http handle added to engine:/gb28181/api/bye {"plugin": "GB28181"} 17:47:12 INFO http handle added to engine:/gb28181/api/control {"plugin": "GB28181"} 17:47:12 INFO http handle added to engine:/gb28181/api/invite {"plugin": "GB28181"} 17:47:12 INFO http handle added to engine:/gb28181/api/list {"plugin": "GB28181"} 17:47:12 INFO http handle added to engine:/gb28181/api/position {"plugin": "GB28181"} 17:47:12 INFO http handle added to engine:/gb28181/api/records {"plugin": "GB28181"} 17:47:12 DEBUG config {"plugin": "GB28181", "config": autoinvite: true prefetchrecord: false sipnetwork: udp sipip: 127.0.0.1 sipport: 5060 serial: "34020000002000000001" realm: "3402000000" username: "" password: "" acktimeout: 10 registervalidity: 60 registerinterval: 60 heartbeatinterval: 60 heartbeatretry: 3 mediaip: "" mediaport: 58200 medianetwork: udp mediaportmin: 0 mediaportmax: 0 mediaidletimeout: 30 logverbose: false removebaninterval: 600 udpcachesize: 0 publish: pubaudio: true pubvideo: true kickexist: false publishtimeout: 10 waitclosetimeout: 0 server: ignores: {}} 17:47:12 INFO Server gb28181 start at :5060 {"plugin": "GB28181"} 17:47:12 DEBUG config {"plugin": "Hook", "config": keepalive: 0 retrytimes: 3 baseurl: "" header: {} urllist: {} requestlist: {} extra: {}} 17:47:12 INFO http handle added to engine:/record/api/list {"plugin": "Record"} 17:47:12 INFO http handle added to engine:/record/api/start {"plugin": "Record"} 17:47:12 INFO http handle added to engine:/record/api/stop {"plugin": "Record"} 17:47:12 INFO http handle added to engine:/record/ {"plugin": "Record"} 17:47:12 DEBUG config {"plugin": "Record", "config": subscribe: subaudio: true subvideo: true iframeonly: false waittimeout: 10 flv: ext: .flv path: ./flv autorecord: false filter: "" fragment: 0 mp4: ext: .mp4 path: ./mp4 autorecord: false filter: "" fragment: 0 hls: ext: .m3u8 path: ./hls autorecord: false filter: "" fragment: 0 raw: ext: . path: ./raw autorecord: false filter: "" fragment: 0} 17:47:12 INFO Media udp server start. {"plugin": "GB28181", "port": 58200} 17:47:12 INFO http handle added:/api/list {"plugin": "HDL"} 17:47:12 INFO http handle added to engine:/hdl/api/list {"plugin": "HDL"} 17:47:12 INFO http handle added:/api/pull {"plugin": "HDL"} 17:47:12 INFO http handle added to engine:/hdl/api/pull {"plugin": "HDL"} 17:47:12 INFO http handle added:/ {"plugin": "HDL"} 17:47:12 INFO http handle added to engine:/hdl/ {"plugin": "HDL"} 17:47:12 DEBUG config {"plugin": "HDL", "config": http: listenaddr: :8080 listenaddrtls: "" certfile: "" keyfile: "" cors: true username: "" password: "" publish: pubaudio: true pubvideo: true kickexist: false publishtimeout: 10 waitclosetimeout: 0 subscribe: subaudio: true subvideo: true iframeonly: false waittimeout: 10 pull: repull: 0 pullonstart: false pullonsubscribe: false pulllist: {}} 17:47:12 INFO http handle added:/ {"plugin": "Room"} 17:47:12 INFO http handle added to engine:/room/ {"plugin": "Room"} 17:47:12 DEBUG config {"plugin": "Room", "config": http: listenaddr: :8080 listenaddrtls: "" certfile: "" keyfile: "" cors: true username: "" password: "" appname: room size: 20 private: {} verify: url: "" method: "" header: {}} 17:47:12 DEBUG config {"plugin": "RTMP", "config": publish: pubaudio: true pubvideo: true kickexist: false publishtimeout: 10 waitclosetimeout: 0 subscribe: subaudio: true subvideo: true iframeonly: false waittimeout: 10 tcp: listenaddr: :1935 listennum: 0 pull: repull: 0 pullonstart: false pullonsubscribe: false pulllist: {} push: repush: 0 pushlist: {} chunksize: 4096 keepalive: false} 17:47:12 INFO server rtmp start at {"plugin": "RTMP", "listen addr": ":1935"} 17:47:12 INFO http handle added to engine:/webrtc/play/ {"plugin": "WebRTC"} 17:47:12 INFO http handle added to engine:/webrtc/push/ {"plugin": "WebRTC"} 17:47:12 DEBUG config {"plugin": "WebRTC", "config": publish: pubaudio: true pubvideo: true kickexist: false publishtimeout: 10 waitclosetimeout: 0 subscribe: subaudio: true subvideo: true iframeonly: false waittimeout: 10 iceservers: [] publicip: [] portmin: 0 portmax: 0 pli: 2s} 17:47:34 DEBUG 34020000001110000030 {"plugin": "GB28181"} 17:47:34 DEBUG StoreDevice {"plugin": "GB28181", "id": "34020000001110000030"} 17:47:34 DEBUG SIP->Catalog:MESSAGE sip:34020000001110000030@3402000000 SIP/2.0 From: sip:34020000002000000001@127.0.0.1:5060;tag=141518326 To: sip:34020000001110000030@3402000000 Call-ID: 1415183261 User-Agent: Monibuca CSeq: 1 MESSAGE Contact: sip:34020000002000000001@127.0.0.1:5060;tag=141518326 Content-Type: Application/MANSCDP+xml Expires: 3600 Content-Length: 118

Catalog 1 34020000001110000030

{"plugin": "GB28181"} 17:47:34 DEBUG SIP->Catalog:MESSAGE sip:34020000001110000030@3402000000 SIP/2.0 From: sip:34020000002000000001@127.0.0.1:5060;tag=259111161 To: sip:34020000001110000030@3402000000 Call-ID: 2591111611 User-Agent: Monibuca CSeq: 2 MESSAGE Contact: sip:34020000002000000001@127.0.0.1:5060;tag=259111161 Content-Type: Application/MANSCDP+xml Expires: 3600 Content-Length: 118 17:47:34 DEBUG ⌛->🟢 {"stream": "34020000001110000030/34020000001320000001", "action": "publish"} 17:47:34 INFO subscribe {"plugin": "HLS", "path": "34020000001110000030/34020000001320000001"} 17:47:34 DEBUG Stream Found {"stream": "34020000001110000030/34020000001320000001"} 17:47:34 INFO suber +1 {"stream": "34020000001110000030/34020000001320000001", "id": "", "type": "HLSWriter", "remains": 1} 17:47:34 DEBUG wrong action {"stream": "34020000001110000030/34020000001320000001", "action": "first enter"} 17:47:39 DEBUG 🟢 ->⌛ {"stream": "34020000001110000030/34020000001320000001", "action": "publish lost"} 17:47:49 DEBUG timeout {"stream": "34020000001110000030/34020000001320000001", "state": "⌛"} 17:47:49 DEBUG ⌛->🔴 {"stream": "34020000001110000030/34020000001320000001", "action": "timeout"}