Koogeek/Smart Life Camera not working
-
Hi there,
I have a Koogeek/Smart Life camera that I have setup in monocle. I have went through all the troubleshooting steps I can think of.
VLC sees and plays my stream with a valid RTSP URL.
Codec is supported.
I can ping the FQDN successfully.
Using Monocle Gateway I have tried, noaudio with both tunnel, and proxy.Here is the log from my most recent attempt using the @tunnel tag.
------------------------------------------------- INITIALIZE RTSP STREAM: Garden Camera Monocle ------------------------------------------------- - NAME : Garden Camera Monocle - LABEL : PRIMARY - URL : rtsp://10.0.1.61:554/ - UUID : STREAM:68b1b8df-d001-44e2-a138-8a5f0d19790d - SESS : 6421f6d0-f2cd-4601-a2ef-3c7e399875b7 - MODIF : Sun Jan 05 2020 15:27:02 GMT+0000 (GMT) - TAGS : @noaudio,@tunnel ------------------------------------------------- 2020-01-05T15:34:44.341Z [INFO] [10.0.1.74:51762 <HynfGKke8>] RTSP CLIENT SOCKET CONNECTED 2020-01-05T15:34:44.471Z [INFO] [10.0.1.74:51762 <HynfGKke8>] RTSP CLIENT ATTACHED TO STREAM: Garden Camera Monocle (STREAM:68b1b8df-d001-44e2-a138-8a5f0d19790d) 2020-01-05T15:34:46.017Z [INFO] [10.0.1.74:51762 <HynfGKke8>] RTSP ENDPOINT SOCKET CONNECTED {10.0.1.61:554} 2020-01-05T15:34:46.018Z [DEBUG] [10.0.1.74:51762 <HynfGKke8>] [CLIENT REQUEST] --> [DESCRIBE] rtsp://c9b64ad4-b04b-4e4e-825a-ac94f51609a6.mproxy.io:443/STREAM:68b1b8df-d001-44e2-a138-8a5f0d19790d?session=6421f6d0-f2cd-4601-a2ef-3c7e399875b7 2020-01-05T15:34:46.018Z [TRACE] [10.0.1.74:51762 <HynfGKke8>] [CLIENT REQUEST] --> [HEADERS] { "accept": "application/sdp", "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)", "cseq": "1" } 2020-01-05T15:34:46.019Z [DEBUG] [10.0.1.74:51762 <HynfGKke8>] [ENDPOINT REQUEST] --> [DESCRIBE] rtsp://10.0.1.61:554/ 2020-01-05T15:34:46.019Z [TRACE] [10.0.1.74:51762 <HynfGKke8>] [ENDPOINT REQUEST] --> [HEADERS] { "accept": "application/sdp", "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)", "cseq": "1" } 2020-01-05T15:34:46.223Z [DEBUG] [10.0.1.74:51762 <HynfGKke8>] [ENDPOINT RESPONSE] <-- [551 (Invalid Method)] <cseq=0> (session=undefined) 2020-01-05T15:34:46.223Z [TRACE] [10.0.1.74:51762 <HynfGKke8>] [ENDPOINT RESPONSE] <-- [HEADERS] { "cseq": "0", "server": "TAS-Tech Streaming Server V100R001" } 2020-01-05T15:34:46.223Z [WARN] [10.0.1.74:51762 <HynfGKke8>] RTSP ENDPOINT RESPONSE ERROR: [DESCRIBE] = 551 (Invalid Method) 2020-01-05T15:34:46.224Z [DEBUG] [10.0.1.74:51762 <HynfGKke8>] [CLIENT RESPONSE] <-- [551 (Invalid Method)] <cseq=0> (session=undefined) 2020-01-05T15:34:46.224Z [TRACE] [10.0.1.74:51762 <HynfGKke8>] [CLIENT RESPONSE] <-- [HEADERS] { "cseq": "0", "server": "TAS-Tech Streaming Server V100R001" } 2020-01-05T15:34:46.228Z [INFO] [10.0.1.74:51762 <HynfGKke8>] RTSP CLIENT SOCKET CLOSED 2020-01-05T15:34:46.228Z [INFO] [10.0.1.74:51762 <HynfGKke8>] RTSP CLIENT DETACHED FROM STREAM: Garden Camera Monocle (STREAM:68b1b8df-d001-44e2-a138-8a5f0d19790d) 2020-01-05T15:34:46.228Z [INFO] [10.0.1.74:51762 <HynfGKke8>] RTSP ENDPOINT SOCKET CLOSED [10.0.1.74:51762 <HynfGKke8>]
And here is an attempt using the @proxy tag:
------------------------------------------------- INITIALIZE RTSP STREAM: Garden Camera Monocle ------------------------------------------------- - NAME : Garden Camera Monocle - LABEL : PRIMARY - URL : rtsp://10.0.1.61:554/ - UUID : STREAM:68b1b8df-d001-44e2-a138-8a5f0d19790d - SESS : da67833d-bec1-492a-ae24-7834399ced46 - MODIF : Sun Jan 05 2020 15:36:41 GMT+0000 (GMT) - TAGS : @noaudio,@proxy ------------------------------------------------- ------------------------------------------------- RTSP STREAM MODIFIED: Garden Camera Monocle Any existing RTSP steams will be shut down and a new stream instance will be registered. ------------------------------------------------- 2020-01-05T15:37:07.561Z [DEBUG] <RTSP-PROXY> [REQUEST] --> [DEREGISTER] rtsp://10.0.1.61:554/ 2020-01-05T15:37:07.561Z [TRACE] <RTSP-PROXY> [REQUEST] --> [HEADERS] { "cseq": "1", "transport": "reuse_connection=0;preferred_delivery_protocol=udp;proxy_url_suffix=STREAM:68b1b8df-d001-44e2-a138-8a5f0d19790d" } 2020-01-05T15:37:07.562Z [DEBUG] <RTSP-PROXY> [RESPONSE] <-- [451 (Invalid parameter)] <cseq=1> (session=undefined) 2020-01-05T15:37:07.562Z [TRACE] <RTSP-PROXY> [RESPONSE] <-- [HEADERS] { "cseq": "1", "date": "Sun, Jan 05 2020 15:37:07 GMT" } 2020-01-05T15:37:07.563Z [INFO] [RTSP PROXY] REGISTERING STREAM [Garden Camera Monocle/PRIMARY]; (STREAM:68b1b8df-d001-44e2-a138-8a5f0d19790d) 2020-01-05T15:37:07.565Z [DEBUG] <RTSP-PROXY> [REQUEST] --> [REGISTER] rtsp://10.0.1.61:554/ 2020-01-05T15:37:07.566Z [TRACE] <RTSP-PROXY> [REQUEST] --> [HEADERS] { "cseq": "1", "transport": "reuse_connection=0;preferred_delivery_protocol=udp;proxy_url_suffix=STREAM:68b1b8df-d001-44e2-a138-8a5f0d19790d" } 2020-01-05T15:37:07.566Z [DEBUG] <RTSP-PROXY> [RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined) 2020-01-05T15:37:07.567Z [TRACE] <RTSP-PROXY> [RESPONSE] <-- [HEADERS] { "cseq": "1", "date": "Sun, Jan 05 2020 15:37:07 GMT" } 2020-01-05T15:37:12.851Z [INFO] [10.0.1.74:51932 <r1ZnfK1eL>] RTSP CLIENT SOCKET CONNECTED 2020-01-05T15:37:12.978Z [INFO] [10.0.1.74:51932 <r1ZnfK1eL>] RTSP CLIENT ATTACHED TO STREAM: Garden Camera Monocle (STREAM:68b1b8df-d001-44e2-a138-8a5f0d19790d) 2020-01-05T15:37:12.979Z [INFO] [10.0.1.74:51932 <r1ZnfK1eL>] RTSP ENDPOINT SOCKET CONNECTED {127.0.0.1:8554} 2020-01-05T15:37:12.980Z [DEBUG] [10.0.1.74:51932 <r1ZnfK1eL>] [CLIENT REQUEST] --> [DESCRIBE] rtsp://c9b64ad4-b04b-4e4e-825a-ac94f51609a6.mproxy.io:443/STREAM:68b1b8df-d001-44e2-a138-8a5f0d19790d?session=da67833d-bec1-492a-ae24-7834399ced46 2020-01-05T15:37:12.980Z [TRACE] [10.0.1.74:51932 <r1ZnfK1eL>] [CLIENT REQUEST] --> [HEADERS] { "accept": "application/sdp", "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)", "cseq": "1" } 2020-01-05T15:37:12.981Z [DEBUG] [10.0.1.74:51932 <r1ZnfK1eL>] [ENDPOINT REQUEST] --> [DESCRIBE] rtsp://c9b64ad4-b04b-4e4e-825a-ac94f51609a6.mproxy.io:443/STREAM:68b1b8df-d001-44e2-a138-8a5f0d19790d 2020-01-05T15:37:12.981Z [TRACE] [10.0.1.74:51932 <r1ZnfK1eL>] [ENDPOINT REQUEST] --> [HEADERS] { "accept": "application/sdp", "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)", "cseq": "1" } 2020-01-05T15:37:12.982Z [DEBUG] [10.0.1.74:51932 <r1ZnfK1eL>] [ENDPOINT RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined) 2020-01-05T15:37:12.982Z [TRACE] [10.0.1.74:51932 <r1ZnfK1eL>] [ENDPOINT RESPONSE] <-- [HEADERS] { "cseq": "1", "date": "Sun, Jan 05 2020 15:37:12 GMT", "content-base": "rtsp://127.0.0.1:8554/STREAM:68b1b8df-d001-44e2-a138-8a5f0d19790d/", "content-type": "application/sdp", "content-length": "418" } 2020-01-05T15:37:12.982Z [TRACE] [10.0.1.74:51932 <r1ZnfK1eL>] [ENDPOINT RESPONSE] <-- [BODY] v=0 o=- 1578238627565732 1 IN IP4 10.0.1.9 s=LIVE555 Streaming Media v2018.04.25 i=LIVE555 Streaming Media v2018.04.25 t=0 0 a=tool:LIVE555 Streaming Media v2018.04.25 a=type:broadcast a=control:* a=range:npt=0- a=x-qt-text-nam:LIVE555 Streaming Media v2018.04.25 a=x-qt-text-inf:LIVE555 Streaming Media v2018.04.25 m=video 0 RTP/AVP 96 c=IN IP4 0.0.0.0 b=AS:50 a=rtpmap:96 H264/90000 a=control:track1 2020-01-05T15:37:12.982Z [INFO] [10.0.1.74:51932 <r1ZnfK1eL>] RTSP ENDPOINT AUTHENTICATION SUCCESSFUL: NONE 2020-01-05T15:37:12.984Z [DEBUG] [10.0.1.74:51932 <r1ZnfK1eL>] [CLIENT RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined) 2020-01-05T15:37:12.984Z [TRACE] [10.0.1.74:51932 <r1ZnfK1eL>] [CLIENT RESPONSE] <-- [HEADERS] { "cseq": "1", "date": "Sun, Jan 05 2020 15:37:12 GMT", "content-base": "rtsp://127.0.0.1:8554/STREAM:68b1b8df-d001-44e2-a138-8a5f0d19790d/", "content-type": "application/sdp", "content-length": "418" } 2020-01-05T15:37:12.984Z [TRACE] [10.0.1.74:51932 <r1ZnfK1eL>] [CLIENT RESPONSE] <-- [BODY] v=0 o=- 1578238627565732 1 IN IP4 10.0.1.9 s=LIVE555 Streaming Media v2018.04.25 i=LIVE555 Streaming Media v2018.04.25 t=0 0 a=control:* a=tool:LIVE555 Streaming Media v2018.04.25 a=type:broadcast a=range:npt=0- a=x-qt-text-nam:LIVE555 Streaming Media v2018.04.25 a=x-qt-text-inf:LIVE555 Streaming Media v2018.04.25 m=video 0 RTP/AVP 96 c=IN IP4 0.0.0.0 b=AS:50 a=rtpmap:96 H264/90000 a=control:track1 2020-01-05T15:37:13.007Z [INFO] [10.0.1.74:51932 <r1ZnfK1eL>] RTSP CLIENT SOCKET CLOSED 2020-01-05T15:37:13.007Z [INFO] [10.0.1.74:51932 <r1ZnfK1eL>] RTSP CLIENT DETACHED FROM STREAM: Garden Camera Monocle (STREAM:68b1b8df-d001-44e2-a138-8a5f0d19790d) 2020-01-05T15:37:13.008Z [INFO] [10.0.1.74:51932 <r1ZnfK1eL>] RTSP ENDPOINT SOCKET CLOSED [10.0.1.74:51932 <r1ZnfK1eL>]
Any help would be much appreciated.
-
From looking at this post it seems that using the @proxy tag Alexa sees the camera and returns the descriptor of the stream but Alexa doen’t like it.
My next steps, as described in the linked post, are to try either @ntpnow and or @fakefmtp to trick Alexa into liking the stream format. Will report back when I try this later tonight when I am home.
-
So none of these options worked for me. Any other things I can try? @Monocle ?
-
You are correct in your assessment comments.
1.)
@tunnel
- not working due to some odd 551 error. Camera does not like (and refuses) our RTSP DESCRIBE request from the Monocle Gateway.2.)
@proxy
- implements a different RTSP stack and this time the DESCRIBE request is accepted and the SDP is returned from the camera. Nothing looks odd to be about the SDP (descriptor). However, in the log, we can see that the Alexa device immediately terminates the connection after getting this SDP data. So there must be something in the SDP that Alexa does not like?3.) .
@ntpnow
and or@fakefmtp
- excellent attempts, these are what I would have suggested trying as well.You have tried everything we would have suggested from your end. If you would like and are able to temporarily expose your camera RTSP feed to us, we can try testing it here with some additional tools to se if we can get any further. You can PM me the access info and I should be able to look into it this week.
Thanks, Robert
-
Seems that I am having a similair issue. Was this resolved?
I have had a few successful streams but then trying to reconnect it will fail. I created a topic with a bit more info but here is my log. No matter if I use Basic or digest auth, proxy or proxy-tcp i get a similar log.Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: ------------------------------------------------- Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: INITIALIZE RTSP STREAM: FrontDoor Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: ------------------------------------------------- Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: - NAME : FrontDoor Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: - LABEL : PRIMARY Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: - URL : rtsp://192.168.1.164:554/unicast/c1/s1/live Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: - UUID : STREAM:ba484d49-15f4-4250-9bf7-e55768a8564b Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: - SESS : 44e9d9ec-b025-4d1d-8d45-58d2ba4c1cf1 Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: - MODIF : Fri Jun 26 2020 21:30:33 GMT+1200 (NZST) Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: - TAGS : @fake-fmtp,@proxy-tcp Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: ------------------------------------------------- Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: RTSP STREAM MODIFIED: FrontDoor Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: Any existing RTSP steams will be shut down Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: and a new stream instance will be registered. Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: ------------------------------------------------- Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: 2020-06-26T09:30:49.434Z [DEBUG] <RTSP-PROXY> [REQUEST] --> [DEREGISTER] rtsp://192.168.1.164:554/unicast/c1/s1/live Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: 2020-06-26T09:30:49.434Z [TRACE] <RTSP-PROXY> [REQUEST] --> [HEADERS] { Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: "cseq": "1", Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: "transport": "reuse_connection=0;preferred_delivery_protocol=interleaved;proxy_url_suffix=STREAM:ba484d49-15f4-4250-9bf7-e55768a8564b" Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: } Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: 2020-06-26T09:30:49.436Z [DEBUG] <RTSP-PROXY> [RESPONSE] <-- [451 (Invalid parameter)] <cseq=1> (session=undefined) Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: 2020-06-26T09:30:49.436Z [TRACE] <RTSP-PROXY> [RESPONSE] <-- [HEADERS] { Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: "cseq": "1", Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: "date": "Fri, Jun 26 2020 09:30:49 GMT" Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: } Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: 2020-06-26T09:30:49.437Z [INFO] [RTSP PROXY] REGISTERING STREAM [FrontDoor/PRIMARY]; (STREAM:ba484d49-15f4-4250-9bf7-e55768a8564b) Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: 2020-06-26T09:30:49.443Z [DEBUG] <RTSP-PROXY> [REQUEST] --> [REGISTER] rtsp://192.168.1.164:554/unicast/c1/s1/live Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: 2020-06-26T09:30:49.443Z [TRACE] <RTSP-PROXY> [REQUEST] --> [HEADERS] { Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: "cseq": "1", Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: "transport": "reuse_connection=0;preferred_delivery_protocol=interleaved;proxy_url_suffix=STREAM:ba484d49-15f4-4250-9bf7-e55768a8564b;username=rtsp;password=********" Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: } Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: 2020-06-26T09:30:49.445Z [DEBUG] <RTSP-PROXY> [RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined) Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: 2020-06-26T09:30:49.445Z [TRACE] <RTSP-PROXY> [RESPONSE] <-- [HEADERS] { Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: "cseq": "1", Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: "date": "Fri, Jun 26 2020 09:30:49 GMT" Jun 26 21:30:49 raspberrypi monocle-gateway[1216]: } Jun 26 21:30:51 raspberrypi monocle-gateway[1216]: ------------------------------------------------- Jun 26 21:30:51 raspberrypi monocle-gateway[1216]: INITIALIZE RTSP STREAM: FrontDoor Jun 26 21:30:51 raspberrypi monocle-gateway[1216]: ------------------------------------------------- Jun 26 21:30:51 raspberrypi monocle-gateway[1216]: - NAME : FrontDoor Jun 26 21:30:51 raspberrypi monocle-gateway[1216]: - LABEL : PRIMARY Jun 26 21:30:51 raspberrypi monocle-gateway[1216]: - URL : rtsp://192.168.1.164:554/unicast/c1/s1/live Jun 26 21:30:51 raspberrypi monocle-gateway[1216]: - UUID : STREAM:ba484d49-15f4-4250-9bf7-e55768a8564b Jun 26 21:30:51 raspberrypi monocle-gateway[1216]: - SESS : 856d703a-a3f5-48bf-b7ee-7eb2a3b90c75 Jun 26 21:30:51 raspberrypi monocle-gateway[1216]: - MODIF : Fri Jun 26 2020 21:30:33 GMT+1200 (NZST) Jun 26 21:30:51 raspberrypi monocle-gateway[1216]: - TAGS : @fake-fmtp,@proxy-tcp Jun 26 21:30:51 raspberrypi monocle-gateway[1216]: ------------------------------------------------- Jun 26 21:30:52 raspberrypi monocle-gateway[1216]: ------------------------------------------------- Jun 26 21:30:52 raspberrypi monocle-gateway[1216]: INITIALIZE RTSP STREAM: FrontDoor Jun 26 21:30:52 raspberrypi monocle-gateway[1216]: ------------------------------------------------- Jun 26 21:30:52 raspberrypi monocle-gateway[1216]: - NAME : FrontDoor Jun 26 21:30:52 raspberrypi monocle-gateway[1216]: - LABEL : PRIMARY Jun 26 21:30:52 raspberrypi monocle-gateway[1216]: - URL : rtsp://192.168.1.164:554/unicast/c1/s1/live Jun 26 21:30:52 raspberrypi monocle-gateway[1216]: - UUID : STREAM:ba484d49-15f4-4250-9bf7-e55768a8564b Jun 26 21:30:52 raspberrypi monocle-gateway[1216]: - SESS : e472c3f4-8302-4ead-987c-d76649648ad0 Jun 26 21:30:52 raspberrypi monocle-gateway[1216]: - MODIF : Fri Jun 26 2020 21:30:33 GMT+1200 (NZST) Jun 26 21:30:52 raspberrypi monocle-gateway[1216]: - TAGS : @fake-fmtp,@proxy-tcp Jun 26 21:30:52 raspberrypi monocle-gateway[1216]: ------------------------------------------------- Jun 26 21:31:46 raspberrypi monocle-gateway[1216]: 2020-06-26T09:31:46.717Z [INFO] [RTSP PROXY] STREAM [FrontDoor/PRIMARY] WILL BE DE-REGISTERED IN 4 MINUTES Jun 26 21:32:46 raspberrypi monocle-gateway[1216]: 2020-06-26T09:32:46.723Z [INFO] [RTSP PROXY] STREAM [FrontDoor/PRIMARY] WILL BE DE-REGISTERED IN 3 MINUTES Jun 26 21:33:46 raspberrypi monocle-gateway[1216]: 2020-06-26T09:33:46.752Z [INFO] [RTSP PROXY] STREAM [FrontDoor/PRIMARY] WILL BE DE-REGISTERED IN 2 MINUTES
Cheers
-
It appears that the Alexa device is not able to establish a connection to the Monocle Gateway. This is typically a networking related issue. Most often it is one of the following:
- The computer running Monocle Gateway has a firewall enabled blocking access to port 443.
- The Alexa and Monocle Gateway are not on the same network. Some users have “Guest” WiFI connections or isolated VLANs that prevent Alexa devices from accessing other nodes inside their private networks.
- DNS REBINDING. The Alexa device is not able to resolve the (custom) hostname address of the Monocle Gateway due to your router blocking the DNS request due to DNS REBINDING protection. See: https://monoclecam.com/monocle-gateway/troubleshooting/dns-rebinding
Alexa devices must connect to a publicly hosted DNS hostname (not direct IP address) and it must have a valid SSL certificate or Alexa will refuse to connect. Monocle Gateway provides all this, but it does require creating a custom hostname for your Monocle Gateway instance. On startup of the Monocle Gateway service, look for a line that lists your FQDN (fully-qualified-domain-name). This is the DNS hostname that Alexa will be given to connect to your Monocle Gateway instance. It must resolve to the private IP address of the computer running Monocle Gateway inside your network.
Thanks, Robert
-
I have exactly the same issue, same setup, same behaviour with @tunnel, @proxy and the other tags. None of the suggested options work for me. Is there any update how to fix this since this post?
-
@Monocle said in Koogeek/Smart Life Camera not working:
@fakefmtp
Monocle support is very bad, I have connection issue with Reolink camera, tried everything