Closed abataille closed 8 years ago
Also, I tried with the other plugin fiscal-ng. same issue. BTW. Your plugin is better, because I can set the arm states.
Can you post the full log after you go into streaming in the home app? The log you provided only showed initialization, not the actually streaming log
What was the test: After some motion notifications I clicked the camera window in Home. After a time I received (the ip address is that of the camera ...21)
Unhandled rejection RequestError: Error: connect ETIMEDOUT 192.168.178.21:88 at new RequestError (/Users/rv/node_modules/request-promise/lib/errors.js:11:15) at Request.RP$callback as _callback at self.callback (/Users/rv/node_modules/request/request.js:187:22) at emitOne (events.js:77:13) at Request.emit (events.js:169:7) at Request.onRequestError (/Users/rv/node_modules/request/request.js:813:8) at emitOne (events.js:77:13) at ClientRequest.emit (events.js:169:7) at Socket.socketErrorListener (_http_client.js:259:9) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at emitErrorNT (net.js:1257:8) at doNTCallback2 (node.js:441:9) at process._tickCallback (node.js:355:17)
EventedHTTPServer [::ffff:192.xx.xx.53] New connection from client +36s EventedHTTPServer [::ffff:192.xx.xx.53] HTTP server listening on port 50053 +0ms EventedHTTPServer [::ffff:192.xx.xx.53] HTTP request: /pair-verify +1ms HAPServer [65:68:76:5F:9D:C5] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xx.xx.53] HTTP Response is finished +0ms EventedHTTPServer [::ffff:192.xx.xx.53] Client connection closed +10ms EventedHTTPServer [::ffff:192.xx.xx.53] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xx.xx.53] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xx.xx.29] New connection from client +4s EventedHTTPServer [::ffff:192.xx.xx.29] HTTP server listening on port 50059 +0ms EventedHTTPServer [::ffff:192.xx.xx.29] HTTP request: /pair-verify +1ms HAPServer [65:68:76:5F:9D:C5] HAP Request: POST /pair-verify +1ms EventedHTTPServer [::ffff:192.xx.xx.29] HTTP Response is finished +0ms EventedHTTPServer [::ffff:192.xx.xx.29] Client connection closed +10ms EventedHTTPServer [::ffff:192.xx.xx.29] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xx.xx.29] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xx.xx.51] New connection from client +14s EventedHTTPServer [::ffff:192.xx.xx.51] HTTP server listening on port 50084 +0ms EventedHTTPServer [::ffff:192.xx.xx.51] New connection from client +1ms EventedHTTPServer [::ffff:192.xx.xx.51] HTTP server listening on port 50085 +0ms EventedHTTPServer [::ffff:192.xx.xx.51] Client connection closed +0ms EventedHTTPServer [::ffff:192.xx.xx.51] HTTP connection was closed +1ms EventedHTTPServer [::ffff:192.xx.xx.51] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xx.xx.51] HTTP request: /pair-verify +0ms HAPServer [CC:22:3D:E3:DE:37] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xx.xx.51] HTTP Response is finished +0ms EventedHTTPServer [::ffff:192.xx.xx.51] New connection from client +2ms EventedHTTPServer [::ffff:192.xx.xx.51] HTTP server listening on port 50087 +0ms EventedHTTPServer [::ffff:192.xx.xx.51] HTTP request: /pair-verify +1ms HAPServer [65:68:76:5F:9D:C5] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xx.xx.51] HTTP Response is finished +1ms EventedHTTPServer [::ffff:192.xx.xx.51] Client connection closed +6ms EventedHTTPServer [::ffff:192.xx.xx.51] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xx.xx.51] HTTP server was closed +1ms EventedHTTPServer [::ffff:192.xx.xx.51] Client connection closed +41ms EventedHTTPServer [::ffff:192.xx.xx.51] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xx.xx.51] HTTP server was closed +1ms
I tried the same with a different app. It says not streaming and does not show anything in the log. The ip addresses mentioned ..51,..53 and ..29 are the IOS devices Home is running as well as the Apple TV
Any log before the error?
The following is everything I have:
Last login: Fri Sep 30 19:18:54 on ttys000
iMacLan:~ rv$ !!
DEBUG=* homebridge -P ~/Desktop/HDEV/ -U /Users/rv/Desktop/HDEV/
[9/30/2016, 7:42:54 PM] Plugin /Users/rv/node_modules/homebridge-foscam-stream package.json does not contain the keyword 'homebridge-plugin'.
[9/30/2016, 7:42:54 PM] Loaded plugin: homebridge-daylight
[9/30/2016, 7:42:54 PM] Registering accessory 'homebridge-daylight.Daylight'
[9/30/2016, 7:42:54 PM] ---
ref creating a reference to buffer +0ms
┌────────────┐
│ 004-45-155 │
└────────────┘
EventedHTTPServer Server listening on port 51826 +0ms [9/30/2016, 7:42:56 PM] Homebridge is running on port 51826. [9/30/2016, 7:42:56 PM] FoscamAccessory configured with RV 192.xxx.xxx.21 88 3 StreamController Client claims it doesn't support SRTP. The stream may stops working with future iOS releases. +58ms StreamController Client claims it doesn't support SRTP. The stream may stops working with future iOS releases. +5ms StreamController Client claims it doesn't support SRTP. The stream may stops working with future iOS releases. +2ms StreamController Client claims it doesn't support SRTP. The stream may stops working with future iOS releases. +1ms EventedHTTPServer Server listening on port 51618 +11ms [9/30/2016, 7:42:56 PM] Foscam Wohnzimmer is running on port 51618. rtsp-stream start-line sent +0ms DESCRIBE rtsp://192.xxx.xxx.21:88/videoMain RTSP/1.0 rtsp-stream headers sent +1ms { CSeq: 1 } rtsp-stream start-line sent +2ms DESCRIBE rtsp://192.xxx.xxx.21:88/videoMain RTSP/1.0 rtsp-stream headers sent +0ms { CSeq: 1 } rtsp-stream start-line sent +0ms DESCRIBE rtsp://192.xxx.xxx.21:88/videoSub RTSP/1.0 rtsp-stream headers sent +0ms { CSeq: 1 } rtsp-stream start-line sent +2ms DESCRIBE rtsp://192.xxx.xxx.21:88/videoSub RTSP/1.0 rtsp-stream headers sent +1ms { CSeq: 1 } rtsp-stream decoding chunk +40ms 'RTSP/1.0 401 Unauthorized\r\nCSeq: 1\r\nDate: Fri, Sep 30 2016 18:42:53 GMT\r\nWWW-Authenticate: Digest realm="Foscam IPCam Living Video", nonce="f07561f1875cfcbcc6b7f555aceb9904"\r\n\r\n' rtsp-stream start of header +0ms rtsp-stream end of header +0ms rtsp-stream start-line sent +3ms DESCRIBE rtsp://192.xxx.xxx.21:88/videoSub RTSP/1.0 rtsp-stream headers sent +0ms { CSeq: 2, Authorization: 'Digest username="RV", realm="Foscam IPCam Living Video", nonce="f07561f1875cfcbcc6b7f555aceb9904", uri="rtsp://192.xxx.xxx.21:88/videoSub", response="833501eb4f31eed1fd588894f816e078",' } rtsp-stream decoding chunk +1ms 'RTSP/1.0 401 Unauthorized\r\nCSeq: 1\r\nDate: Fri, Sep 30 2016 18:42:53 GMT\r\nWWW-Authenticate: Digest realm="Foscam IPCam Living Video", nonce="9bfe2e45d09ca8d216df4aa8638346ad"\r\n\r\n' rtsp-stream start of header +0ms rtsp-stream end of header +0ms rtsp-stream start-line sent +1ms DESCRIBE rtsp://192.xxx.xxx.21:88/videoSub RTSP/1.0 rtsp-stream headers sent +0ms { CSeq: 2, Authorization: 'Digest username="RV", realm="Foscam IPCam Living Video", nonce="9bfe2e45d09ca8d216df4aa8638346ad", uri="rtsp://192.xxx.xxx.21:88/videoSub", response="c902f0ece3c12e0a368f94518f1cfeb5",' } rtsp-stream decoding chunk +0ms 'RTSP/1.0 401 Unauthorized\r\nCSeq: 1\r\nDate: Fri, Sep 30 2016 18:42:53 GMT\r\nWWW-Authenticate: Digest realm="Foscam IPCam Living Video", nonce="ae7d659a1bd0f2b765c1fe13043400da"\r\n\r\n' rtsp-stream start of header +0ms rtsp-stream end of header +0ms rtsp-stream start-line sent +0ms DESCRIBE rtsp://192.xxx.xxx.21:88/videoMain RTSP/1.0 rtsp-stream headers sent +1ms { CSeq: 2, Authorization: 'Digest username="RV", realm="Foscam IPCam Living Video", nonce="ae7d659a1bd0f2b765c1fe13043400da", uri="rtsp://192.xxx.xxx.21:88/videoMain", response="7d2a192178832370e253db54c0c7fceb",' } rtsp-stream decoding chunk +0ms 'RTSP/1.0 401 Unauthorized\r\nCSeq: 1\r\nDate: Fri, Sep 30 2016 18:42:53 GMT\r\nWWW-Authenticate: Digest realm="Foscam IPCam Living Video", nonce="27a24dc1fed771bcad788827c640aff9"\r\n\r\n' rtsp-stream start of header +0ms rtsp-stream end of header +0ms rtsp-stream start-line sent +0ms DESCRIBE rtsp://192.xxx.xxx.21:88/videoMain RTSP/1.0 rtsp-stream headers sent +0ms { CSeq: 2, Authorization: 'Digest username="RV", realm="Foscam IPCam Living Video", nonce="27a24dc1fed771bcad788827c640aff9", uri="rtsp://192.xxx.xxx.21:88/videoMain", response="b2ec6a2dd684babcc08d6dcf031522df",' } [9/30/2016, 7:42:56 PM] Foscam Camera Info: { result: 0, productName: 'FI9821W+V2', serialNo: 1, devName: 'Wohnzimmer', mac: '00626E4CF475', year: 2016, mon: 9, day: 30, hour: 20, min: 42, sec: 53, timeZone: -3600, firmwareVer: '2.11.1.118', hardwareVer: '1.4.1.10', pkgTime: '2014-10-1616%3A04%3A44' } [9/30/2016, 7:42:56 PM] [Foscam Wohnzimmer] Current state: Armed (Stay). EventedHTTPServer [::ffff:192.xxx.xxx.29] New connection from client +1s EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server listening on port 51628 +1ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP request: /pair-verify +4ms HAPServer [CC:22:3D:E3:DE:37] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP Response is finished +2ms EventedHTTPServer [::ffff:192.xxx.xxx.53] New connection from client +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server listening on port 51630 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] New connection from client +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server listening on port 51631 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP request: /pair-verify +2ms HAPServer [CC:22:3D:E3:DE:37] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP Response is finished +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] Client connection closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP connection was closed +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] New connection from client +8ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server listening on port 51635 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP request: /pair-verify +6ms HAPServer [65:68:76:5F:9D:C5] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP Response is finished +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] Client connection closed +9ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server was closed +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] New connection from client +4ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server listening on port 51637 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] New connection from client +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server listening on port 51638 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP request: /pair-verify +13ms HAPServer [65:68:76:5F:9D:C5] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP Response is finished +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] Client connection closed +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] Client connection closed +4ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] Client connection closed +2ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP connection was closed +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] Client connection closed +14ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server was closed +0ms rtsp-stream decoding chunk +2s 'RTSP/1.0 200 OK\r\nCSeq: 2\r\nDate: Fri, Sep 30 2016 18:42:55 GMT\r\nContent-Base: rtsp://192.xxx.xxx.21:65534/videoSub/\r\nContent-Type: application/sdp\r\nContent-Length: 500\r\n\r\nv=0\r\no=- 1475260974002092 1 IN IP4 192.168.233.233\r\ns=IP Camera Video\r\ni=videoSub\r\nt=0 0\r\na=tool:LIVE555 Streaming Media v2014.02.10\r\na=type:broadcast\r\na=control:\r\na=range:npt=0-\r\na=x-qt-text-nam:IP Camera Video\r\na=x-qt-text-inf:videoSub\r\nm=video 0 RTP/AVP 96\r\nc=IN IP4 0.0.0.0\r\nb=AS:96\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==\r\na=control:track1\r\nm=audio 0 RTP/AVP 0\r\nc=IN IP4 0.0.0.0\r\nb=AS:64\r\na=control:track2\r\n' rtsp-stream start of header +1ms rtsp-stream end of header +0ms rtsp-stream decoding chunk +0ms 'v=0\r\no=- 1475260974002092 1 IN IP4 192.168.233.233\r\ns=IP Camera Video\r\ni=videoSub\r\nt=0 0\r\na=tool:LIVE555 Streaming Media v2014.02.10\r\na=type:broadcast\r\na=control:\r\na=range:npt=0-\r\na=x-qt-text-nam:IP Camera Video\r\na=x-qt-text-inf:videoSub\r\nm=video 0 RTP/AVP 96\r\nc=IN IP4 0.0.0.0\r\nb=AS:96\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==\r\na=control:track1\r\nm=audio 0 RTP/AVP 0\r\nc=IN IP4 0.0.0.0\r\nb=AS:64\r\na=control:track2\r\n' rtsp-stream start of body +0ms rtsp-stream end of body +1ms [9/30/2016, 7:42:58 PM] FoscamStream: RTSPClient got sdp. rtsp-stream decoding chunk +4ms 'RTSP/1.0 200 OK\r\nCSeq: 2\r\nDate: Fri, Sep 30 2016 18:42:55 GMT\r\nContent-Base: rtsp://192.xxx.xxx.21:65534/videoSub/\r\nContent-Type: application/sdp\r\nContent-Length: 500\r\n\r\nv=0\r\no=- 1475260974002092 1 IN IP4 192.168.233.233\r\ns=IP Camera Video\r\ni=videoSub\r\nt=0 0\r\na=tool:LIVE555 Streaming Media v2014.02.10\r\na=type:broadcast\r\na=control:\r\na=range:npt=0-\r\na=x-qt-text-nam:IP Camera Video\r\na=x-qt-text-inf:videoSub\r\nm=video 0 RTP/AVP 96\r\nc=IN IP4 0.0.0.0\r\nb=AS:96\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==\r\na=control:track1\r\nm=audio 0 RTP/AVP 0\r\nc=IN IP4 0.0.0.0\r\nb=AS:64\r\na=control:track2\r\n' rtsp-stream start of header +0ms rtsp-stream end of header +0ms rtsp-stream decoding chunk +1ms 'v=0\r\no=- 1475260974002092 1 IN IP4 192.168.233.233\r\ns=IP Camera Video\r\ni=videoSub\r\nt=0 0\r\na=tool:LIVE555 Streaming Media v2014.02.10\r\na=type:broadcast\r\na=control:_\r\na=range:npt=0-\r\na=x-qt-text-nam:IP Camera Video\r\na=x-qt-text-inf:videoSub\r\nm=video 0 RTP/AVP 96\r\nc=IN IP4 0.0.0.0\r\nb=AS:96\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==\r\na=control:track1\r\nm=audio 0 RTP/AVP 0\r\nc=IN IP4 0.0.0.0\r\nb=AS:64\r\na=control:track2\r\n' rtsp-stream start of body +0ms rtsp-stream end of body +0ms [9/30/2016, 7:42:58 PM] FoscamStream: RTSPClient got sdp. Unhandled rejection RequestError: Error: connect ENETUNREACH 192.168.78.20:88 at new RequestError (/Users/rv/node_modules/request-promise/lib/errors.js:11:15) at Request.RP$callback as _callback at self.callback (/Users/rv/node_modules/request/request.js:187:22) at emitOne (events.js:77:13) at Request.emit (events.js:169:7) at Request.onRequestError (/Users/rv/node_modules/request/request.js:813:8) at emitOne (events.js:77:13) at ClientRequest.emit (events.js:169:7) at Socket.socketErrorListener (_http_client.js:259:9) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at emitErrorNT (net.js:1257:8) at doNTCallback2 (node.js:441:9) at process.tickCallback (node.js:355:17) rtsp-stream decoding chunk +2s 'RTSP/1.0 200 OK\r\nCSeq: 2\r\nDate: Fri, Sep 30 2016 18:42:57 GMT\r\nContent-Base: rtsp://192.xxx.xxx.21:65534/videoMain/\r\nContent-Type: application/sdp\r\nContent-Length: 502\r\n\r\nv=0\r\no=- 1475260975886931 1 IN IP4 192.168.233.233\r\ns=IP Camera Video\r\ni=videoMain\r\nt=0 0\r\na=tool:LIVE555 Streaming Media v2014.02.10\r\na=type:broadcast\r\na=control:\r\na=range:npt=0-\r\na=x-qt-text-nam:IP Camera Video\r\na=x-qt-text-inf:videoMain\r\nm=video 0 RTP/AVP 96\r\nc=IN IP4 0.0.0.0\r\nb=AS:96\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==\r\na=control:track1\r\nm=audio 0 RTP/AVP 0\r\nc=IN IP4 0.0.0.0\r\nb=AS:64\r\na=control:track2\r\n' rtsp-stream start of header +0ms rtsp-stream end of header +0ms rtsp-stream decoding chunk +0ms 'v=0\r\no=- 1475260975886931 1 IN IP4 192.168.233.233\r\ns=IP Camera Video\r\ni=videoMain\r\nt=0 0\r\na=tool:LIVE555 Streaming Media v2014.02.10\r\na=type:broadcast\r\na=control:\r\na=range:npt=0-\r\na=x-qt-text-nam:IP Camera Video\r\na=x-qt-text-inf:videoMain\r\nm=video 0 RTP/AVP 96\r\nc=IN IP4 0.0.0.0\r\nb=AS:96\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==\r\na=control:track1\r\nm=audio 0 RTP/AVP 0\r\nc=IN IP4 0.0.0.0\r\nb=AS:64\r\na=control:track2\r\n' rtsp-stream start of body +1ms rtsp-stream end of body +0ms [9/30/2016, 7:43:00 PM] FoscamStream: RTSPClient got sdp. rtsp-stream decoding chunk +5ms 'RTSP/1.0 200 OK\r\nCSeq: 2\r\nDate: Fri, Sep 30 2016 18:42:57 GMT\r\nContent-Base: rtsp://192.xxx.xxx.21:65534/videoMain/\r\nContent-Type: application/sdp\r\nContent-Length: 502\r\n\r\nv=0\r\no=- 1475260975886931 1 IN IP4 192.168.233.233\r\ns=IP Camera Video\r\ni=videoMain\r\nt=0 0\r\na=tool:LIVE555 Streaming Media v2014.02.10\r\na=type:broadcast\r\na=control:\r\na=range:npt=0-\r\na=x-qt-text-nam:IP Camera Video\r\na=x-qt-text-inf:videoMain\r\nm=video 0 RTP/AVP 96\r\nc=IN IP4 0.0.0.0\r\nb=AS:96\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==\r\na=control:track1\r\nm=audio 0 RTP/AVP 0\r\nc=IN IP4 0.0.0.0\r\nb=AS:64\r\na=control:track2\r\n' rtsp-stream start of header +0ms rtsp-stream end of header +0ms rtsp-stream decoding chunk +1ms 'v=0\r\no=- 1475260975886931 1 IN IP4 192.168.233.233\r\ns=IP Camera Video\r\ni=videoMain\r\nt=0 0\r\na=tool:LIVE555 Streaming Media v2014.02.10\r\na=type:broadcast\r\na=control:_\r\na=range:npt=0-\r\na=x-qt-text-nam:IP Camera Video\r\na=x-qt-text-inf:videoMain\r\nm=video 0 RTP/AVP 96\r\nc=IN IP4 0.0.0.0\r\nb=AS:96\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==\r\na=control:track1\r\nm=audio 0 RTP/AVP 0\r\nc=IN IP4 0.0.0.0\r\nb=AS:64\r\na=control:track2\r\n' rtsp-stream start of body +0ms rtsp-stream end of body +0ms [9/30/2016, 7:43:00 PM] FoscamStream: RTSPClient got sdp. EventedHTTPServer [::ffff:192.xxx.xxx.53] New connection from client +16s EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server listening on port 51669 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] New connection from client +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server listening on port 51670 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP request: /pair-verify +1ms HAPServer [CC:22:3D:E3:DE:37] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP Response is finished +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP request: /pair-verify +0ms HAPServer [65:68:76:5F:9D:C5] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP Response is finished +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] Client connection closed +5ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server was closed +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] Client connection closed +183ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP connection was closed +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] New connection from client +1s EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server listening on port 51675 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP request: /pair-verify +1ms HAPServer [CC:22:3D:E3:DE:37] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP Response is finished +1ms EventedHTTPServer [::ffff:192.xxx.xxx.29] Client connection closed +7ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] New connection from client +11ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server listening on port 51677 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP request: /pair-verify +1ms HAPServer [65:68:76:5F:9D:C5] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP Response is finished +1ms EventedHTTPServer [::ffff:192.xxx.xxx.29] Client connection closed +37ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] New connection from client +23s EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server listening on port 51721 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP request: /pair-verify +2ms HAPServer [65:68:76:5F:9D:C5] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP Response is finished +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] Client connection closed +4ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] New connection from client +1s EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server listening on port 51725 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP request: /pair-verify +1ms HAPServer [65:68:76:5F:9D:C5] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP Response is finished +1ms EventedHTTPServer [::ffff:192.xxx.xxx.29] Client connection closed +4ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server was closed +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] New connection from client +365ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server listening on port 51727 +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP request: /pair-verify +1ms HAPServer [65:68:76:5F:9D:C5] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP Response is finished +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] Client connection closed +7ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] New connection from client +1s EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server listening on port 51733 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP request: /pair-verify +1ms HAPServer [65:68:76:5F:9D:C5] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP Response is finished +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] Client connection closed +7ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] New connection from client +5s EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server listening on port 51743 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP request: /pair-verify +1ms HAPServer [CC:22:3D:E3:DE:37] HAP Request: POST /pair-verify +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP Response is finished +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] New connection from client +3ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server listening on port 51745 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP request: /pair-verify +1ms HAPServer [65:68:76:5F:9D:C5] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP Response is finished +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] Client connection closed +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] Client connection closed +46ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server was closed +1ms EventedHTTPServer [::ffff:192.xxx.xxx.29] New connection from client +1s EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server listening on port 51756 +1ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP request: /pair-verify +1ms HAPServer [CC:22:3D:E3:DE:37] HAP Request: POST /pair-verify +1ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP Response is finished +1ms EventedHTTPServer [::ffff:192.xxx.xxx.29] Client connection closed +9ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] New connection from client +7ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server listening on port 51759 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP request: /pair-verify +1ms HAPServer [65:68:76:5F:9D:C5] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP Response is finished +1ms EventedHTTPServer [::ffff:192.xxx.xxx.29] Client connection closed +16ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP connection was closed +1ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] New connection from client +2m EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server listening on port 51973 +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] New connection from client +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server listening on port 51974 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP request: /pair-verify +1ms HAPServer [CC:22:3D:E3:DE:37] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP Response is finished +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP request: /pair-verify +0ms HAPServer [65:68:76:5F:9D:C5] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP Response is finished +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] Client connection closed +2ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP connection was closed +1ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] Client connection closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.53] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] New connection from client +1s EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server listening on port 51981 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP request: /pair-verify +1ms HAPServer [CC:22:3D:E3:DE:37] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP Response is finished +1ms EventedHTTPServer [::ffff:192.xxx.xxx.29] Client connection closed +5ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] New connection from client +9ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server listening on port 51983 +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP request: /pair-verify +1ms HAPServer [65:68:76:5F:9D:C5] HAP Request: POST /pair-verify +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP Response is finished +1ms EventedHTTPServer [::ffff:192.xxx.xxx.29] Client connection closed +6ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.xxx.xxx.29] HTTP server was closed +0ms
Cool. I will need to consult @planetbeing since he's the one who wrote the streaming part. Give us some time. Thanks.
According to @planetbeing, iOS is not requesting streaming to the server. May be you should restart everything check if that works. Another question is, what version of node and homebridge are you using?
This was a fresh restart. Homebridge was installed today. I think it is 0.4.5 Node I do not know yet, but I will update tomorrow morning. I will send you the results.
Sent from my iPad
On 30 Sep 2016, at 20:24, Luis Iam notifications@github.com wrote:
According to @planetbeing, iOS is not requesting streaming to the server. May be you should restart everything check if that works. Another question is, what version of node and homebridge are you using?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
The original problem was caused by an older node version. Now I made a clean install with node 6.7.0 npm 3.10.8 homebridge 0.4.5 Everything works fine now. Still there are some errors you may be interested in (look at the end of the log). I have attached a complete log. log.txt
After successfully tired at my iMac, I tired the same a the Raspberry PI 3. I was not able to add the camera as accessory. See the complete logs. homebridge_log.txt homebridge_err.txt
I just found out. The camera as accessory cannot be attached to more than one home. In my case it was attached to the iMac test home, so I could not attach it to the api. After I removed the cam from the test, I was able to attach to the api.
I just gave your new plugin a try. It works fine and with the motion sensor it notifies me and presents the snapshot. When I then click the picture it open a stream but stays black. So no streaming at all.
The camera is Foscam F9821W v2 with firmware 1.4.1.10 The log show as follows regarding your module: [9/30/2016, 3:00:16 PM] Loaded plugin: homebridge-foscamcamera [9/30/2016, 3:00:16 PM] Registering platform 'homebridge-foscamcamera.FoscamCamera' [9/30/2016, 3:00:16 PM] --- ... [9/30/2016, 3:00:16 PM] Initializing FoscamCamera platform... .. [9/30/2016, 3:00:17 PM] FoscamAccessory configured with RV 192.168.178.21 88 3 StreamController Client claims it doesn't support SRTP. The stream may stops working with future iOS releases. +140ms StreamController Client claims it doesn't support SRTP. The stream may stops working with future iOS releases. +5ms StreamController Client claims it doesn't support SRTP. The stream may stops working with future iOS releases. +2ms StreamController Client claims it doesn't support SRTP. The stream may stops working with future iOS releases. +1ms EventedHTTPServer Server listening on port 59779 +10ms [9/30/2016, 3:00:17 PM] Foscam Wohnzimmer is running on port 59779. rtsp-stream start-line sent +0ms DESCRIBE rtsp://192.168.178.21:88/videoMain RTSP/1.0 rtsp-stream headers sent +1ms { CSeq: 1 } rtsp-stream start-line sent +1ms DESCRIBE rtsp://192.168.178.21:88/videoMain RTSP/1.0 rtsp-stream headers sent +1ms { CSeq: 1 } rtsp-stream start-line sent +0ms DESCRIBE rtsp://192.168.178.21:88/videoSub RTSP/1.0 rtsp-stream headers sent +0ms { CSeq: 1 } rtsp-stream start-line sent +1ms DESCRIBE rtsp://192.168.178.21:88/videoSub RTSP/1.0 rtsp-stream headers sent +1ms { CSeq: 1 } rtsp-stream decoding chunk +41ms 'RTSP/1.0 401 Unauthorized\r\nCSeq: 1\r\nDate: Fri, Sep 30 2016 14:00:14 GMT\r\nWWW-Authenticate: Digest realm="Foscam IPCam Living Video", nonce="88d1cead0871a5e1bd247043e93439ef"\r\n\r\n' rtsp-stream start of header +1ms rtsp-stream end of header +0ms rtsp-stream start-line sent +3ms DESCRIBE rtsp://192.168.178.21:88/videoSub RTSP/1.0 rtsp-stream headers sent +0ms { CSeq: 2, Authorization: 'Digest username="RV", realm="Foscam IPCam Living Video", nonce="88d1cead0871a5e1bd247043e93439ef", uri="rtsp://192.168.178.21:88/videoSub", response="d32723cab29a544eeecf62b78db8c546",' } rtsp-stream decoding chunk +1ms 'RTSP/1.0 401 Unauthorized\r\nCSeq: 1\r\nDate: Fri, Sep 30 2016 14:00:14 GMT\r\nWWW-Authenticate: Digest realm="Foscam IPCam Living Video", nonce="4ed3062149ba5909ae28619822d30d27"\r\n\r\n' rtsp-stream start of header +0ms rtsp-stream end of header +0ms rtsp-stream start-line sent +0ms DESCRIBE rtsp://192.168.178.21:88/videoSub RTSP/1.0 rtsp-stream headers sent +1ms { CSeq: 2, Authorization: 'Digest username="RV", realm="Foscam IPCam Living Video", nonce="4ed3062149ba5909ae28619822d30d27", uri="rtsp://192.168.178.21:88/videoSub", response="2ce6f69275abc263467586b76333e4f4",' } rtsp-stream decoding chunk +15ms 'RTSP/1.0 401 Unauthorized\r\nCSeq: 1\r\nDate: Fri, Sep 30 2016 14:00:14 GMT\r\nWWW-Authenticate: Digest realm="Foscam IPCam Living Video", nonce="6357eea57bd9bcb093dd27749803082d"\r\n\r\n' rtsp-stream start of header +0ms rtsp-stream end of header +0ms rtsp-stream start-line sent +0ms DESCRIBE rtsp://192.168.178.21:88/videoMain RTSP/1.0 rtsp-stream headers sent +0ms { CSeq: 2, Authorization: 'Digest username="RV", realm="Foscam IPCam Living Video", nonce="6357eea57bd9bcb093dd27749803082d", uri="rtsp://192.168.178.21:88/videoMain", response="ccf7351f46f3091a6af4ab3882b2d6a0",' } rtsp-stream decoding chunk +1ms 'RTSP/1.0 401 Unauthorized\r\nCSeq: 1\r\nDate: Fri, Sep 30 2016 14:00:14 GMT\r\nWWW-Authenticate: Digest realm="Foscam IPCam Living Video", nonce="ae1c8c8f4f39fc81f8797b0aff033627"\r\n\r\n' rtsp-stream start of header +0ms rtsp-stream end of header +0ms rtsp-stream start-line sent +0ms DESCRIBE rtsp://192.168.178.21:88/videoMain RTSP/1.0 rtsp-stream headers sent +1ms { CSeq: 2, Authorization: 'Digest username="RV", realm="Foscam IPCam Living Video", nonce="ae1c8c8f4f39fc81f8797b0aff033627", uri="rtsp://192.168.178.21:88/videoMain", response="3a37edc7c7ef84ee890a0b4f46c95b0a",' } rtsp-stream decoding chunk +46ms 'RTSP/1.0 200 OK\r\nCSeq: 2\r\nDate: Fri, Sep 30 2016 14:00:14 GMT\r\nContent-Base: rtsp://192.168.178.21:65534/videoMain/\r\nContent-Type: application/sdp\r\nContent-Length: 502\r\n\r\nv=0\r\no=- 1475165734390276 1 IN IP4 192.168.233.233\r\ns=IP Camera Video\r\ni=videoMain\r\nt=0 0\r\na=tool:LIVE555 Streaming Media v2014.02.10\r\na=type:broadcast\r\na=control:\r\na=range:npt=0-\r\na=x-qt-text-nam:IP Camera Video\r\na=x-qt-text-inf:videoMain\r\nm=video 0 RTP/AVP 96\r\nc=IN IP4 0.0.0.0\r\nb=AS:96\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==\r\na=control:track1\r\nm=audio 0 RTP/AVP 0\r\nc=IN IP4 0.0.0.0\r\nb=AS:64\r\na=control:track2\r\n' rtsp-stream start of header +0ms rtsp-stream end of header +0ms rtsp-stream decoding chunk +1ms 'v=0\r\no=- 1475165734390276 1 IN IP4 192.168.233.233\r\ns=IP Camera Video\r\ni=videoMain\r\nt=0 0\r\na=tool:LIVE555 Streaming Media v2014.02.10\r\na=type:broadcast\r\na=control:\r\na=range:npt=0-\r\na=x-qt-text-nam:IP Camera Video\r\na=x-qt-text-inf:videoMain\r\nm=video 0 RTP/AVP 96\r\nc=IN IP4 0.0.0.0\r\nb=AS:96\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==\r\na=control:track1\r\nm=audio 0 RTP/AVP 0\r\nc=IN IP4 0.0.0.0\r\nb=AS:64\r\na=control:track2\r\n' rtsp-stream start of body +0ms rtsp-stream end of body +0ms [9/30/2016, 3:00:17 PM] FoscamStream: RTSPClient got sdp. rtsp-stream decoding chunk +4ms 'RTSP/1.0 200 OK\r\nCSeq: 2\r\nDate: Fri, Sep 30 2016 14:00:14 GMT\r\nContent-Base: rtsp://192.168.178.21:65534/videoMain/\r\nContent-Type: application/sdp\r\nContent-Length: 502\r\n\r\nv=0\r\no=- 1475165734390276 1 IN IP4 192.168.233.233\r\ns=IP Camera Video\r\ni=videoMain\r\nt=0 0\r\na=tool:LIVE555 Streaming Media v2014.02.10\r\na=type:broadcast\r\na=control:\r\na=range:npt=0-\r\na=x-qt-text-nam:IP Camera Video\r\na=x-qt-text-inf:videoMain\r\nm=video 0 RTP/AVP 96\r\nc=IN IP4 0.0.0.0\r\nb=AS:96\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==\r\na=control:track1\r\nm=audio 0 RTP/AVP 0\r\nc=IN IP4 0.0.0.0\r\nb=AS:64\r\na=control:track2\r\n' rtsp-stream start of header +0ms rtsp-stream end of header +0ms rtsp-stream decoding chunk +0ms 'v=0\r\no=- 1475165734390276 1 IN IP4 192.168.233.233\r\ns=IP Camera Video\r\ni=videoMain\r\nt=0 0\r\na=tool:LIVE555 Streaming Media v2014.02.10\r\na=type:broadcast\r\na=control:\r\na=range:npt=0-\r\na=x-qt-text-nam:IP Camera Video\r\na=x-qt-text-inf:videoMain\r\nm=video 0 RTP/AVP 96\r\nc=IN IP4 0.0.0.0\r\nb=AS:96\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==\r\na=control:track1\r\nm=audio 0 RTP/AVP 0\r\nc=IN IP4 0.0.0.0\r\nb=AS:64\r\na=control:track2\r\n' rtsp-stream start of body +0ms rtsp-stream end of body +1ms [9/30/2016, 3:00:17 PM] FoscamStream: RTSPClient got sdp. [9/30/2016, 3:00:17 PM] Foscam Camera Info: { result: 0, productName: 'FI9821W+V2', serialNo: 1, devName: 'Wohnzimmer', mac: '00626E4CF475', year: 2016, mon: 9, day: 30, hour: 16, min: 0, sec: 14, timeZone: -3600, firmwareVer: '2.11.1.118', hardwareVer: '1.4.1.10', pkgTime: '2014-10-16_16%3A04%3A44' }
any idea?