Reolink RLC-820A Not working on Monocole Gateway
-
I posted about this over a year ago. I have been unable to get Reolink’s RLC-820A 4k camera to work over the Monocle Gateway (@tunnel). This same camera can be recorded on my QNAP QVR Pro just fine and viewed via Tinycam Pro. The reolink Alexa skill displays the camera in VGA and I do not want that.
Here’s what I am doing to try to get it to work.
Does anyone have any suggestions. The above is not working.
The return in the log is as follows:Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: "accept": "application/sdp", Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: "user-agent": "Fire OS/7.0 stagefright/1.2 (Linux;Android 9)", Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: "cseq": "1", Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: "authorization": "Digest username=\"admin\", realm=\"LIVE555 Streaming Media\", nonce=\"a20d603f8cd9c7c150343b039694916a\", uri=\"rtsp://192.168.30.60:554/h264Preview_01_main\", response=\"94ea2d7d5bdaefdab7834c5ca3d5db9e\"" Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: } Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: 2022-07-31T20:03:41.444Z [DEBUG] [192.168.30.16:49280 <nbQST5AC6>] [ENDPOINT RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined) Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: 2022-07-31T20:03:41.444Z [TRACE] [192.168.30.16:49280 <nbQST5AC6>] [ENDPOINT RESPONSE] <-- [HEADERS] { Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: "cseq": "1", Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: "date": "Sun, Jul 31 2022 20:03:42 GMT", Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: "content-base": "rtsp://192.168.30.60/h264Preview_01_main/", Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: "content-type": "application/sdp", Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: "content-length": "819" Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: } Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: 2022-07-31T20:03:41.444Z [TRACE] [192.168.30.16:49280 <nbQST5AC6>] [ENDPOINT RESPONSE] <-- [BODY] Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: v=0 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: o=- 1659250819279826 1 IN IP4 192.168.30.60 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: s=Session streamed by "preview" Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: i=h264Preview_01_main Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: t=0 0 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=tool:LIVE555 Streaming Media v2020.08.12 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=type:broadcast Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=control:* Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=range:npt=0- Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=x-qt-text-nam:Session streamed by "preview" Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=x-qt-text-inf:h264Preview_01_main Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: m=video 0 RTP/AVP 96 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: c=IN IP4 0.0.0.0 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: b=AS:500 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=rtpmap:96 H265/90000 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=fmtp:96 profile-space=0;profile-id=1;tier-flag=0;level-id=150;interop-constraints=0 00000000000;sprop-vps=QAEMAf//AWAAAAMAAAMAAAMAAAMAlqwJ;sprop-sps=QgEBAWAAAAMAAAMAAAMAAAMAlqAB4CACHH+KrTuiS7I=;sprop-pps=RAHAcvCJBAcONkg= Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=control:track1 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: m=audio 0 RTP/AVP 97 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: c=IN IP4 0.0.0.0 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: b=AS:256 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=rtpmap:97 MPEG4-GENERIC/16000 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1408 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=control:track2 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: 2022-07-31T20:03:41.444Z [INFO] [192.168.30.16:49280 <nbQST5AC6>] RTSP ENDPOINT AUTHENTICATION SUCCESSFUL: DIGEST Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: 2022-07-31T20:03:41.444Z [INFO] [192.168.30.16:49280 <nbQST5AC6>] RTSP ENDPOINT SDP APPLIED NTP=NOW- Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: 2022-07-31T20:03:41.445Z [DEBUG] [192.168.30.16:49280 <nbQST5AC6>] [CLIENT RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined) Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: 2022-07-31T20:03:41.445Z [TRACE] [192.168.30.16:49280 <nbQST5AC6>] [CLIENT RESPONSE] <-- [HEADERS] { Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: "cseq": "1", Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: "date": "Sun, Jul 31 2022 20:03:42 GMT", Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: "content-base": "rtsp://192.168.30.60/h264Preview_01_main/", Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: "content-type": "application/sdp", Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: "content-length": "815" Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: } Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: 2022-07-31T20:03:41.445Z [TRACE] [192.168.30.16:49280 <nbQST5AC6>] [CLIENT RESPONSE] <-- [BODY] Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: v=0 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: o=- 1659250819279826 1 IN IP4 192.168.30.60 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: s=Session streamed by "preview" Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: i=h264Preview_01_main Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: t=0 0 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=control:* Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=tool:LIVE555 Streaming Media v2020.08.12 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=type:broadcast Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=npt=now- Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=x-qt-text-nam:Session streamed by "preview" Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=x-qt-text-inf:h264Preview_01_main Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: m=video 0 RTP/AVP 96 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: c=IN IP4 0.0.0.0 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: b=AS:500 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=rtpmap:96 H265/90000 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=fmtp:96 profile-space=0;profile-id=1;tier-flag=0;level-id=150;interop-constraints=000000000000;sprop-vps=QAEMAf//AWAAAAMAAAMAAAMAAAMAlqwJ;sprop-sps=QgEBAWAAAAMAAAMAAAMAAAMAlqAB4CACHH+KrTuiS7I=;sprop-pps=RAHAcvCJBAcONkg= Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=control:track1 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: m=audio 0 RTP/AVP 97 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: c=IN IP4 0.0.0.0 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: b=AS:256 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=rtpmap:97 MPEG4-GENERIC/16000 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1408 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=control:tra ck2 Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: 2022-07-31T20:03:41.464Z [INFO] [192.168.30.16:49280 <nbQST5AC6>] RTSP CLIENT SOCKET CLOSED Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: 2022-07-31T20:03:41.464Z [INFO] [192.168.30.16:49280 <nbQST5AC6>] RTSP CLIENT DETACHED FROM STREAM: Mailbox (STREAM:5302e657-f7eb-4af4-a900-2124a4cf9d87) Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: 2022-07-31T20:03:41.464Z [INFO] [192.168.30.16:49280 <nbQST5AC6>] RTSP ENDPOINT SOCKET CLOSED [192.168.30.16:49280 <nbQST5AC6>] Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: 2022-07-31T20:03:41.464Z [INFO] [192.168.30.16:49280 <nbQST5AC6>] RTSP ENDPOINT SOCKET CLOSED {192.168.30.60:554}
-
@vmsman said in Reolink RLC-820A Not working on Monocole Gateway:
i=h264Preview_01_main
Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: t=0 0
Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=control:*
Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=tool:LIVE555 Streaming Media v2020.08.12
Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=type:broadcast
Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=npt=now-
Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=x-qt-text-nam:Session streamed by “preview”
Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=x-qt-text-inf:h264Preview_01_main
Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: m=video 0 RTP/AVP 96
Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: c=IN IP4 0.0.0.0
Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: b=AS:500
Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=rtpmap:96 H265/90000Despite the URL suggesting your request for a “
rtsp://192.168.30.60/h264Preview_01_main/
” h264 video stream ,the SDP information only seems to include a H265 video encoded stream/track as noted in the lines below:> Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: m=video 0 RTP/AVP 96 > Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=rtpmap:96 H265/90000 > Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=fmtp:96 profile-space=0;profile-id=1;tier-flag=0;level-id=150;interop-constraints=000000000000;sprop-vps=QAEMAf//AWAAAAMAAAMAAAMAAAMAlqwJ;sprop-sps=QgEBAWAAAAMAAAMAAAMAAAMAlqAB4CACHH+KrTuiS7I=;sprop-pps=RAHAcvCJBAcONkg= > Jul 31 20:03:41 MonocleGateway monocle-gateway[2183]: a=control:track1
Check your camera and see if you can change it to a H.264 video encoding for the stream or if there is perhaps a different URL you can request to get a H.264 stream. If you are able to make the stream available over the Internet (temporarily), you can also PM me the details and I have have a look and test it from here.
Thanks, Robert
-
@Monocle The camera only offers an H.265 stream only. The interesting part is that TinyCam Pro and QNAP QVR Pro both work providing /h264Preview_01_main. However both programs have issues with h265 and when I changed to /h264Preview_01_main, both programs started working. I also started using the Linux desktop cctv viewer and it worked with /h264Preview_01_main. I do know the camera stream is on /h265Preview_01_main though. Does it help you that these other three programs handled /h264Preview_01_main and worked with this camera?
-
@vmsman said in Reolink RLC-820A Not working on Monocole Gateway:
Does it help you that these other three programs handled /h264Preview_01_main and worked with this camera?
Not really … (unfortunately)
The hardware is probably capable of playing the stream … it’s the viewer software that must support the H265 codec. The URL signature/h264Preview_01_mai
really does not matter … it’s the data returned in the SDP (stream descriptor) that is telling the player to use the H.265 codec. Specifically this line:a=rtpmap:96 H265/90000
I only noticed a single video stream (#96) and single audio stream (#97) in the log data you posted above. It’s telling the viewing software the stream supports H.265 for video and AAC audio.
Unfortunately Amazon has not added support for any newer video codecs since H.264 for Alexa camera streaming. See https://developer.amazon.com/en-US/docs/alexa/device-apis/alexa-camerastreamcontroller.html#supported-video
You could try using the
@fakefmtp
tag … but I seriously doubt it will work.The only thing I can think of suggesting is to have some other software (like FFMPEG/FFSERVER) ingest the H.265 stream and re-encode (transcode) it and output it via H.264. Clearly this will add latency and is a somewhat ugly solution. Other users have mentioned using SCRYPTED for their Unifi cameras. I have not tried it out yet, but I think it may be using FFMGEG under the hood to transcode the stream.
Thanks, Robert