Streaming IP camera images from NVR for Hikvision

nmn

n3wb
Apr 24, 2019
10
0
singapore
I have Hikvision NVRs and IP-cameras at my office.

I am doing streaming images from ip-camera. Ip-cameras are connected to NVR. I have 10 NVRs and each NVR has 20 ip-cameras.

I like to stream images of one ip-camera from one of the NVRs.

All NVRs are connected to Network switch.

I connect to Network switch using a LAN cable from my PC.

Then I scan all IP addresses that my PC can see using

sudo arp-scan --localnet

I can see the NVR's IP address from which I like to stream images of ip-cam.

Then I checked that IP address's ports using

nmap 192.xxx.xx.5

Starting Nmap 7.01 ( Nmap: the Network Mapper - Free Security Scanner ) at 2019-04-24 16:36 +08
mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using --system-dns or specify valid servers with --dns-servers
Nmap scan report for 192.168.10.5
Host is up (0.0020s latency).
Not shown: 997 closed ports
PORT STATE SERVICE
80/tcp open http
554/tcp open rtsp
8000/tcp open http-alt

Nmap done: 1 IP address (1 host up) scanned in 0.11 seconds

It showed that RTSP port is opened at that NVR.

I set my PC's ip address range, mask, gateway to be similar to NVR's network configuration,

For example, PC's network mask is I set same mask as NVR's mask. PC's gateway address is same as NVR's gateway address. PC's ipv4 ipaddress is in the same range as NVR.

Then I do streaming. NVR and ip-cam are Hikvision and I use their format.

rtsp://admin:Admin1234@192.xxx.xx.5:554/Streaming/Channels/102
or
rtsp://192.xxx.xx.5:554/ISAPI/streaming/channels/102

1 is camera id in that nvr and 02 for sub-stream.

I have

core input error: open of rtsp xxxxxx
live555 demux error: Failed to connect with rtsp://xxxxxx
core access error: read error: Connection reset by peer

Why I can't stream ip-cam's images from NVR?

Is there additional step I need to take care?