Hi
@Anam
You will need to use the RTSP stream from the camera to embed it on the website.
This is how to create the RTSP URL:
rtsp://<
NVR's Public IP Address>
:<
Opened RTSP Port>
/Streaming/Channels/<
channel number that the camera is on><
stream number>
Example 1:
rtsp://XXX.XXX.XXX.XXX:554/Streaming/channels/101
This will give you the stream for the main stream (01) of a camera on channel 1 (1) which is using RTSP port 554.
Example. 2:
rtsp://XXX.XXX.XXX.XXX:300/Streaming/channels/1002
This will give you the stream for the sub steam (02) of a camera on channel 10 (10) which is using RTSP port 300.
For it to work:
- You cannot use H.264+ or H.265+ encoding.
- The stream cannot be encrypted - you can only disable encryption directly on the NVR's local GUI by going to:
System > Network > Advanced > Platform Access > Enable Stream Encryption [untick]
- The RTSP Port for the camera must be opened/forwarded on your router - in the NVR's web browser interface, go to:
System > Network > TCP/IP> NAT > RTSP Port
(If this is set to the default of port 554, I would recommend changing it to another port on your router (can be any), for security purposes).
You can use this website to check that the port has been successfully opened - Open Port Check Tool -- Verify Port Forwarding on Your Router
Please note that this URL will require the user to input their username/password for the camera whenever they want to view the stream. If they do not want this, then they will need to use the second URL explained in this post:
We're asked quite frequently what the RTSP URLs are for Hikvision cameras, in order to use a program like VLC to decode the stream directly from the camera, or perhaps to instead embed the stream into a web page. Many VMS programs require you manually add the RTSP stream from the camera, in...
www.use-ip.co.uk
rtsp://<Username>:<Password>@<
NVR's Public IP Address>
:<
Opened RTSP Port>
/Streaming/Channels/<C
hannel number that the camera is on><S
tream number>