1. Home
  2. Cameras
  3. How do I get the RTSP stream URL from my camera?

How do I get the RTSP stream URL from my camera?

Not all camera systems provide the URL directly. In some situations, users may have to generate the URL themselves. But don’t worry! We are here to guide you step by step. 

To get the RTSP stream URL from your camera, please first make sure: 
• your camera is connected to the internet, and;
• RTSP is supported by your camera/DVR/NVR, and;
• RTSP port on your camera/DVR/NVR is open

RTSP URL format

A RTSP URL consists of 4 pieces of information, which are obtainable from different pages of the camera/DVR/NVR system specified in the table below. 

ComponentsWhere to find

Username and Password

·   DVR/NVR Camera setup page
·   Camera setup page

Public IP address

·   Router

RTSP port

·   Router (if port forwarding is done)
·   DVR/NVR

Suffix

Depending on the way your camera is connected to internet, there are two ways to extract the suffix:
Scenario 1: Cameras directly connected to internet;
Scenario 2: Cameras connected to DVR/NVR first, then connect to internet

Example of RTSP URL

Suffix Examples

Scenario 1: Cameras directly connected to the internet:

Suffix
Main stream/live/ch0
Sub stream/live/ch1
Specific codec (avc)/avc
Specific codec (H264)/H.264

Scenario 2: Cameras connected to DVR/NVR first, then connect to the internet:


Suffix (Hikvision NVR)Suffix (Dahua NVR)
Channel 1, main stream/Streaming/Channels/101/cam/realmonitor?channel=1&subtype=0
Channel 2, main stream/Streaming/Channels/201/cam/realmonitor?channel=2&subtype=0
Channel 1, sub stream/Streaming/Channels/102/cam/realmonitor?channel=1&subtype=1

For the above examples, they might work on some other DVR/NVR models even if the manufacturer is different.  For the official RTSP suffixes, please refer to the manufacturers’ user manual.

Please contact us at support@dayta.ai if you have any more questions, our team will assist you in solving the problem. 

RTSP Format of most camera manufacturer (will keep updating)

Dahua RTSP stream (Cameras & NVR)

rtsp://<username>:<password>@<ip>:<port>/cam/realmonitor?channel=<channelNo>&subtype=<typeNo>

<ip> – the IP address of the IP Camera.

<port> – the default port for RTSP is 554

<channelNo> – the channel number. It starts from 1.

<typeNo> – the stream type. The <typeNo> of main stream is 0, extra stream 1 is 1, extra stream 2 is 2.

Example URL: rtsp://admin:12345scw@192.168.1.210:554/cam/realmonitor?channel=1&subtype=1 will bring up substream for channel 1


Hikvision RTSP Stream (NVR)

rtsp:// <username>:<password>@<ip>:<port>/Streaming/Channels/<id>

<ip> – the IP address of the IP Camera.

<port> – the default port for RTSP is 554

<id> – streaming channel – for example “101” would be channel 1 and stream #1 (mainstream). Changing the <id> to 102 would create channel 1 and stream #2. 201 would produce the channel #2 of the NVR and mainstream and 202 would produce channel #2 and substream.

Example URL: rtsp://admin:12345@192.168.1.210:554/Streaming/Channels/101 will bring up mainstream for channel 1, where admin is the username and 12345 is the password.


Uniview RTSP Stream (NVR)

rtsp://<ip>:<port>/unicast/c<channel number>/s<stream type>/live

<ip> – the IP address of the IP Camera.

<channel number> – c1 would be channel 1, c2 channel 2, etc

<stream type>: 0 (main stream) or 1 (sub stream)

Example URL: rtsp://admin:12345scw@192.168.1.210/unicast/c2/s2/live will bring up substream for channel 2.


Axis RTSP Stream

rtsp://<ip>/axis-media/media.amp

<ip> – the IP address of the IP Camera.

Example URL rtsp://192.168.1.210/axis-media/media.amp


ACTI RTSP Stream

rtsp://<ip>/

<ip> – the IP address of the IP Camera.

Example URL rtsp://192.168.1.


Honeywell RTSP Stream

Honeywell uses various software and hardware manufacturers depending on the year, line, etc. We recommend trying some of the Hikvision and Dahua URLs to see if they function.


Avigilon RTSP Stream

http://<username>:<password>@<generated RTSP Stream URI>/

Avigilon RTSP streams must be generated in the web UI of the camera under compression and image rate.


Samsung / Hanwha Techwin Camera RTSP Stream

rtsp://<username>:<password>@<ip>:<port>/profile<no>/media.smp

<ip> – the IP address of the IP Camera.

<port> – the default port for RTSP is 554

<no> – stream type either 1 for mainstream or 2 for substream

Example URL: rtsp://admin:12345@192.168.1.210:554/profile1/media.smp will bring up mainstream for a camera on 192.168.1.210


Samsung / Hanwha Techwin NVR RTSP Stream

rtsp://<ip>:port/LiveChannel/0/media.smp

<ip> – the IP address of the IP Camera.

Note: LiveChannel/0/ where “0” equals the channel number. Channels start at 0.

Example URL: rtsp://192.168.1.210:554/LiveChannel/0/media.smp


Swann camera RTSP Stream

rtsp://<username>:<password>@<ip>:<port>/ch01/0 where 0 = mainstream and 1 = substream

<ip> – the IP address of the IP Camera.

<port> – the default port for RTSP is 554

Note: Swann uses various lines of hardware and software and RTSP streams. You may have to contact support for your specific model. They sometimes use the Hikvision APIs


Arecont Vision RTSP Stream

rtsp://<ip>/h264.sdp

<ip> – the IP address of the IP Camera.

Example URL: rtsp://192.168.1.210/h264.sdp


Pelco RTSP stream

For Sarix models rtsp://<ip>/stream1

<ip> – the IP address of the IP Camera.

Example URL – rtsp://192.168.1.210/stream1


Lorex RTSP stream

Lorex uses various software and hardware manufacturers depending on the year, line, etc. We recommend trying some of the Dahua and Hikvision URLs to see if they function.

Some Lorex cameras, especially their battery powered line, are primarily designed to work exclusively Lorex equipment it’s possible RTSP or other third party functionality may have been disabled.


EzViz RTSP Stream (Cameras & NVR)

EZviz cameras are designed to work exclusively with the EZViz applications – thus RTSP and third party access is extremely limited if not completely unavailable.


FLIR RTSP stream (Cameras & NVR)

FLIR has used various software and hardware manufacturers depending on the year, line, etc. We recommend trying the Dahua RTSP streams to see if they function.

Since FLIR cameras are primarily designed to work exclusively FLIR equipment it’s possible RTSP or other third party functionality may have been disabled.


Arlo RTSP Stream

Like most battery/cloud cameras Arlo does not support an RTSP stream as the video feed is directly sent to Cloud servers.


Like most battery/cloud cameras Blink does not support an RTSP stream as the video feed is directly sent to Cloud servers.


Related Questions:

Updated on May 12, 2021

Was this article helpful?