Tuesday, 15 March 2022

How to get the RTSP stream from a Reolink B800 camera?

1. connect the camera to the intranet and make sure it is connected to a normal reolink app


2. download the neolink github repo, https://github.com/thirtythreeforty/neolink, or attachment below:-

https://drive.google.com/file/d/1e3-1_raoUpCKVtSB2MrAZ5pmsY--DlHb/view?usp=sharing


3. unzip the neolink and cd into the folder, build the docker

cd neolink-master

docker build .

docker tag [image_id] neolink


4. once completed, configure the config.yoml by making a copy of sample.config.toml.

check the reolink app or poe switch for details.


5. run the docker as following command:-

docker run   -p 8554:8554   --restart=on-failure   --volume=$PWD/config.toml:/etc/neolink.toml   neolink:latest

For example:-

ninja$ docker run   -p 8554:8554   --restart=on-failure   --volume=$PWD/config.toml:/etc/neolink.toml   neolink:latest
[2022-03-16T00:55:13Z INFO  neolink] Neolink 0.4.0 (unknown commit) release
[2022-03-16T00:55:13Z INFO  neolink::rtsp] test: Connecting to camera at Address: 192.168.0.170:9000
[2022-03-16T00:55:13Z INFO  neolink::rtsp] test: Logging in
[2022-03-16T00:55:13Z INFO  neolink::rtsp] test: Connected and logged in
[2022-03-16T00:55:13Z INFO  neolink::rtsp] test: Camera time is already set: 2022-03-16 0:55:14 +0
[2022-03-16T00:55:13Z INFO  neolink::rtsp] test: Camera reports firmware version v3.0.0.82_20080600
[2022-03-16T00:55:13Z INFO  neolink::rtsp] test: Starting video stream Main Stream (Clear)


6. Then, you can stream it using vlc or gstreamer, for example:-

ninja$ gst-launch-1.0 playbin uri=rtsp://127.0.0.1:8554/test
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://
127.0.0.1:8554/test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 279
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 279
Redistribute latency...


No comments:

Post a Comment