Camera Not Working
-
OK - Ive had this working in the past, with the exact same setup, then one day it stopped…
My service is working:MONOCLE RUNTIME ENVIRONMENT ------------------------------------------------- VERSION = 0.0.6 OS/ARCH = linux/x64 PROCESS = monocle-gateway (PID=1) TIMESTAMP = 2022-08-26T05:21:52.101Z ------------------------------------------------- MONOCLE GATEWAY SERVICE (Version: 0.0.6) ------------------------------------------------- [Monocle Starting] [Monocle Connecting] [Monocle Started] [RTSP Server Starting] [RTSP Server Listening] 0.0.0.0:8555 (RTSP) [RTSP Server Listening] 0.0.0.0:443 (RTSP-TLS) [RTSP Proxy Started] (PID=16) [RTSP Server Listening] 0.0.0.0:8554 (PROXY) [RTSP Server Started] [Monocle Connected] [RTSP Server Registered] ------------------------------------------------- MONOCLE RTSP SERVICE - INITIALIZED ------------------------------------------------- FQDN = 8fc4dca0-d3fc-41b9-a064-6106f5767dba.mproxy.io HOST = 192.168.10.3 PORT = 443 -------------------------------------------------
And then this is the error i get after asking alexa to show my camera:
INITIALIZE RTSP STREAM: Front Door ------------------------------------------------- - NAME : Front Door - CAMERA.MFG : Dahua - CAMERA.MODEL : IPC5442TM-ASE - CAMERA.LABEL : PRIMARY - RTSP.URL : rtsp://192.168.10.5:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif - STREAM.ID : STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38 - SESSION.ID : 6303606c-eee5-4262-9544-774f410adde7 - LAST.MODIFIED : Tue Aug 23 2022 00:54:11 GMT+1000 (Australian Eastern Standard Time) - TAGS : @proxy ------------------------------------------------- ATTENTION -> Next you should see log statements showing your camera establishing an inbound connection to this gateway instance via: -> DNS URL: rtsp://8fc4dca0-d3fc-41b9-a064-6106f5767dba.mproxy.io:443/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38 -> This DNS host address should resolve to: 192.168.10.3:443 on your network. NOTE: If you don't receive any inbound connection log statements, please see: https://monoclecam.com/monocle-gateway-troubleshooting 2022-08-26T05:14:14.572Z [INFO] [192.168.20.3:49204 <JJOJJ8yZV>] RTSP CLIENT SOCKET CONNECTED ------------------------------------------------- INBOUND RTSP CONNECTION FROM ALEXA: [192.168.20.3:49204 <JJOJJ8yZV>] ------------------------------------------------- - CLIENT.IP : 192.168.20.3 ( <-- this should be your Alexa device) - CLIENT.PORT : 49204 - REQ.ID : JJOJJ8yZV - REQ.PROTOCOL : RTSP/1.0 - REQ.METHOD : DESCRIBE - REQ.URL : rtsp://8fc4dca0-d3fc-41b9-a064-6106f5767dba.mproxy.io:443/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38?session=6303606c-eee5-4262-9544-774f410adde7 - STREAM.ID : STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38 - SESSION.ID : 6303606c-eee5-4262-9544-774f410adde7 ------------------------------------------------- 2022-08-26T05:14:14.738Z [INFO] [192.168.20.3:49204 <JJOJJ8yZV>] RTSP CLIENT ATTACHED TO STREAM: Front Door (STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38) 2022-08-26T05:14:14.739Z [INFO] [192.168.20.3:49204 <JJOJJ8yZV>] RTSP ENDPOINT SOCKET CONNECTING TO: {127.0.0.1:8554} 2022-08-26T05:14:14.739Z [INFO] [192.168.20.3:49204 <JJOJJ8yZV>] RTSP ENDPOINT SOCKET CONNECTED {127.0.0.1:8554} 2022-08-26T05:14:14.739Z [DEBUG] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT REQUEST] --> [DESCRIBE] rtsp://8fc4dca0-d3fc-41b9-a064-6106f5767dba.mproxy.io:443/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38?session=6303606c-eee5-4262-9544-774f410adde7 2022-08-26T05:14:14.739Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT REQUEST] --> [HEADERS] { "accept": "application/sdp", "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)", "cseq": "1" } 2022-08-26T05:14:14.740Z [DEBUG] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT REQUEST] --> [DESCRIBE] rtsp://8fc4dca0-d3fc-41b9-a064-6106f5767dba.mproxy.io:443/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38 2022-08-26T05:14:14.740Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT REQUEST] --> [HEADERS] { "accept": "application/sdp", "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)", "cseq": "1" } 2022-08-26T05:14:14.740Z [DEBUG] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined) 2022-08-26T05:14:14.740Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT RESPONSE] <-- [HEADERS] { "cseq": "1", "date": "Fri, Aug 26 2022 05:14:14 GMT", "content-base": "rtsp://127.0.0.1:8554/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38/", "content-type": "application/sdp", "content-length": "746" } 2022-08-26T05:14:14.740Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT RESPONSE] <-- [BODY] v=0 o=- 1661490846054507 1 IN IP4 192.168.10.3 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=fmtp:96 packetization-mode=1;profile-level-id=4D0032;sprop-parameter-sets=Z00AMpY1QL4Co03BQEFQAAADABAAAAMDKEAA,aO4xsgA= a=control:track1 m=audio 0 RTP/AVP 97 c=IN IP4 0.0.0.0 b=AS:50 a=rtpmap:97 PCMA/8000 a=control:track2 m=application 0 RTP/AVP 98 c=IN IP4 0.0.0.0 b=AS:50 a=rtpmap:98 VND.ONVIF.METADATA/90000 a=control:track3 2022-08-26T05:14:14.740Z [INFO] [192.168.20.3:49204 <JJOJJ8yZV>] RTSP ENDPOINT AUTHENTICATION SUCCESSFUL: NONE 2022-08-26T05:14:14.741Z [DEBUG] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined) 2022-08-26T05:14:14.741Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT RESPONSE] <-- [HEADERS] { "cseq": "1", "date": "Fri, Aug 26 2022 05:14:14 GMT", "content-base": "rtsp://127.0.0.1:8554/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38/", "content-type": "application/sdp", "content-length": "746" } 2022-08-26T05:14:14.741Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT RESPONSE] <-- [BODY] v=0 o=- 1661490846054507 1 IN IP4 192.168.10.3 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=fmtp:96 packetization-mode=1;profile-level-id=4D0032;sprop-parameter-sets=Z00AMpY1QL4Co03BQEFQAAADABAAAAMDKEAA,aO4xsgA= a=control:track1 m=audio 0 RTP/AVP 97 c=IN IP4 0.0.0.0 b=AS:50 a=rtpmap:97 PCMA/8000 a=control:track2 m=application 0 RTP/AVP 98 c=IN IP4 0.0.0.0 b=AS:50 a=rtpmap:98 VND.ONVIF.METADATA/90000 a=control:track3 2022-08-26T05:14:14.752Z [DEBUG] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT REQUEST] --> [SETUP] rtsp://127.0.0.1:8554/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38/track1 2022-08-26T05:14:14.752Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT REQUEST] --> [HEADERS] { "transport": "RTP/AVP/TCP;interleaved=0-1", "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)", "cseq": "2" } 2022-08-26T05:14:14.753Z [DEBUG] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT REQUEST] --> [SETUP] rtsp://127.0.0.1:8554/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38/track1 2022-08-26T05:14:14.753Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT REQUEST] --> [HEADERS] { "transport": "RTP/AVP/TCP;interleaved=0-1", "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)", "cseq": "2" } 2022-08-26T05:14:14.753Z [DEBUG] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT RESPONSE] <-- [200 (OK)] <cseq=2> (session=CC56E48E;timeout=65) 2022-08-26T05:14:14.753Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT RESPONSE] <-- [HEADERS] { "cseq": "2", "date": "Fri, Aug 26 2022 05:14:14 GMT", "transport": "RTP/AVP/TCP;unicast;destination=127.0.0.1;source=127.0.0.1;interleaved=0-1", "session": "CC56E48E;timeout=65" } 2022-08-26T05:14:14.754Z [DEBUG] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT RESPONSE] <-- [200 (OK)] <cseq=2> (session=CC56E48E;timeout=65) 2022-08-26T05:14:14.754Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT RESPONSE] <-- [HEADERS] { "cseq": "2", "date": "Fri, Aug 26 2022 05:14:14 GMT", "transport": "RTP/AVP/TCP;unicast;destination=127.0.0.1;source=127.0.0.1;interleaved=0-1", "session": "CC56E48E;timeout=65" } 2022-08-26T05:14:14.808Z [DEBUG] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT REQUEST] --> [SETUP] rtsp://127.0.0.1:8554/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38/track2 2022-08-26T05:14:14.808Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT REQUEST] --> [HEADERS] { "transport": "RTP/AVP/TCP;interleaved=2-3", "session": "CC56E48E", "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)", "cseq": "3" } 2022-08-26T05:14:14.809Z [DEBUG] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT REQUEST] --> [SETUP] rtsp://127.0.0.1:8554/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38/track2 2022-08-26T05:14:14.809Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT REQUEST] --> [HEADERS] { "transport": "RTP/AVP/TCP;interleaved=2-3", "session": "CC56E48E", "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)", "cseq": "3" } 2022-08-26T05:14:14.809Z [DEBUG] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT RESPONSE] <-- [200 (OK)] <cseq=3> (session=CC56E48E;timeout=65) 2022-08-26T05:14:14.809Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT RESPONSE] <-- [HEADERS] { "cseq": "3", "date": "Fri, Aug 26 2022 05:14:14 GMT", "transport": "RTP/AVP/TCP;unicast;destination=127.0.0.1;source=127.0.0.1;interleaved=2-3", "session": "CC56E48E;timeout=65" } 2022-08-26T05:14:14.809Z [DEBUG] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT RESPONSE] <-- [200 (OK)] <cseq=3> (session=CC56E48E;timeout=65) 2022-08-26T05:14:14.809Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT RESPONSE] <-- [HEADERS] { "cseq": "3", "date": "Fri, Aug 26 2022 05:14:14 GMT", "transport": "RTP/AVP/TCP;unicast;destination=127.0.0.1;source=127.0.0.1;interleaved=2-3", "session": "CC56E48E;timeout=65" } 2022-08-26T05:14:14.857Z [DEBUG] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT REQUEST] --> [PLAY] rtsp://127.0.0.1:8554/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38/ 2022-08-26T05:14:14.857Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT REQUEST] --> [HEADERS] { "session": "CC56E48E", "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)", "cseq": "4" } 2022-08-26T05:14:14.858Z [DEBUG] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT REQUEST] --> [PLAY] rtsp://127.0.0.1:8554/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38/ 2022-08-26T05:14:14.858Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT REQUEST] --> [HEADERS] { "session": "CC56E48E", "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)", "cseq": "4" } 2022-08-26T05:14:14.898Z [DEBUG] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT RESPONSE] <-- [200 (OK)] <cseq=4> (session=CC56E48E) 2022-08-26T05:14:14.898Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [ENDPOINT RESPONSE] <-- [HEADERS] { "cseq": "4", "date": "Fri, Aug 26 2022 05:14:14 GMT", "range": "npt=0.000-", "session": "CC56E48E", "rtp-info": "url=rtsp://127.0.0.1:8554/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38/track1;seq=51816;rtptime=1659583175,url=rtsp://127.0.0.1:8554/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38/track2;seq=46672;rtptime=2648476578,url=rtsp://127.0.0.1:8554/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38/track3;seq=0;rtptime=0" } 2022-08-26T05:14:14.899Z [DEBUG] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT RESPONSE] <-- [200 (OK)] <cseq=4> (session=CC56E48E) 2022-08-26T05:14:14.899Z [TRACE] [192.168.20.3:49204 <JJOJJ8yZV>] [CLIENT RESPONSE] <-- [HEADERS] { "cseq": "4", "date": "Fri, Aug 26 2022 05:14:14 GMT", "range": "npt=0.000-", "session": "CC56E48E", "rtp-info": "url=rtsp://127.0.0.1:8554/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38/track1;seq=51816;rtptime=1659583175,url=rtsp://127.0.0.1:8554/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38/track2;seq=46672;rtptime=2648476578,url=rtsp://127.0.0.1:8554/STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38/track3;seq=0;rtptime=0" } 2022-08-26T05:14:14.899Z [INFO] [192.168.20.3:49204 <JJOJJ8yZV>] RTSP ENDPOINT PLAYING MEDIA STREAM: Front Door (STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38) 2022-08-26T05:14:14.899Z [INFO] [192.168.20.3:49204 <JJOJJ8yZV>] RTSP CLIENT PLAYING MEDIA STREAM: Front Door (STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38) 2022-08-26T05:14:15.094Z [INFO] [192.168.20.3:49204 <JJOJJ8yZV>] RTSP CLIENT SOCKET CLOSED 2022-08-26T05:14:15.095Z [INFO] [192.168.20.3:49204 <JJOJJ8yZV>] RTSP CLIENT DETACHED FROM STREAM: Front Door (STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38) 2022-08-26T05:14:15.095Z [INFO] [192.168.20.3:49204 <JJOJJ8yZV>] RTSP ENDPOINT SOCKET CLOSED [192.168.20.3:49204 <JJOJJ8yZV>] 2022-08-26T05:14:15.095Z [INFO] [192.168.20.3:49204 <JJOJJ8yZV>] RTSP ENDPOINT SOCKET CLOSED {127.0.0.1:8554} 2022-08-26T05:14:42.614Z [INFO] [RTSP PROXY] STREAM [Front Door/PRIMARY] WILL BE DE-REGISTERED IN 4 MINUTES 2022-08-26T05:15:42.627Z [INFO] [RTSP PROXY] STREAM [Front Door/PRIMARY] WILL BE DE-REGISTERED IN 3 MINUTES 2022-08-26T05:16:42.662Z [INFO] [RTSP PROXY] STREAM [Front Door/PRIMARY] WILL BE DE-REGISTERED IN 2 MINUTES
Any assistance as to where to look next??
The FQDN address is added to pfsense, and when i troucert the address, i resolves to my service gateway IP
Thanks -
My guess is an update to the Alexa devices or perhaps the camera firmware caused some incompatibility issue.
As far as the log data goes it all looks like the camera is successfully connecting and negotiating the RTSP layer with your Monocle Gateway instance. Thus it does not appear to be any setup, install or network related issue.The following log lines …
2022-08-26T05:14:14.899Z [INFO] [192.168.20.3:49204 <JJOJJ8yZV>] RTSP CLIENT PLAYING MEDIA STREAM: Front Door (STREAM:3c0979ac-29ab-421b-b713-c5c30e95be38) 2022-08-26T05:14:15.094Z [INFO] [192.168.20.3:49204 <JJOJJ8yZV>] RTSP CLIENT SOCKET CLOSED
… suggest that the Alexa device does start attempting the play the stream and then something in the stream data is causing Alexa to abort or fail to play.
This is a shot in the dark, but try the following:
1.) add the
@noaudio
tag and re-test the stream.
2.) add the@fake-fmtp
tag and re-test the stream.
3.) replace@tunnel
tag with@proxy
and re-test the stream.If all this fails, see if there are other RTPS stream resolutions provided by the camera you can try.
-
This is a shot in the dark, but try the following:
1.) add the
@noaudio
tag and re-test the stream.
2.) add the@fake-fmtp
tag and re-test the stream.
3.) replace@tunnel
tag with@proxy
and re-test the stream.If all this fails, see if there are other RTPS stream resolutions provided by the camera you can try.
Ok, so for my dahua cam, i needed to use @fake-fmtp, @tunnel in order for it to work
For my Hikvision cude cam, nothing works, except if add @fake-fmtp it loads but i get a bright green scree. Tested on a Show 5 & 8
Need to keep trying for the hikvision
-
Is the Hikvision set to the H.264 codec? Some newer cameras now ship using H.265 by default and Alexa devices do not yet support H.265.
I forgot one other tag combination you can try.
Try
@proxy-tcp
instead of@tunnel
. Also add@noaudio
… if I recall correctly I think several Hikvision cameras had audio streaming issues with Alexa, at least some of the older ones.Thanks, Robert
-
@Monocle said in Camera Not Working:
Is the Hikvision set to the H.264 codec? Some newer cameras now ship using H.265 by default and Alexa devices do not yet support H.265.
I forgot one other tag combination you can try.
Try
@proxy-tcp
instead of@tunnel
. Also add@noaudio
… if I recall correctly I think several Hikvision cameras had audio streaming issues with Alexa, at least some of the older ones.Thanks, Robert
Thanks, i will give those a try!
AFAIK, the hikvision is set to H.256, but ill double check.
Nothing has changed settings wise in the hikvision, so definitely something has changed on amazons end