Real-Time Streaming Protocol (RTSP) is a network control protocol used for streaming media across IP networks. Many WiFi and Ethernet cameras support RTSP streams for remote viewing and integration with third-party applications. This guide provides step-by-step instructions for setting up RTSP streams on various popular camera brands.
To get an RTSP stream from a Hikvision camera, follow these steps:
- Open the camera's web interface by entering its IP address in your web browser.
- Log in using your camera's username and password.
- Go to Configuration > Network > Advanced Settings > Integration Protocol.
- Enable the RTSP protocol and set the Authentication method to "digest/basic".
- Construct the RTSP URL using the following format:
rtsp://<username>:<password>@<camera_ip_address>:554/Streaming/Channels/<channel>
Replace <username>
, <password>
, <camera_ip_address>
, and <channel>
with the appropriate values. The channel is typically 101 for the main stream and 102 for the substream.
To get an RTSP stream from an Axis camera, follow these steps:
- Open the camera's web interface by entering its IP address in your web browser.
- Log in using your camera's username and password.
- Go to Setup > Video > Stream Profiles.
- Click "Add" to create a new profile, or edit an existing profile.
- Configure the desired video and audio settings for the stream, and enable the RTSP protocol.
- Click "Save" to save the settings.
- Construct the RTSP URL using the following format:
rtsp://<username>:<password>@<camera_ip_address>/axis-media/media.amp?videocodec=h264&streamprofile=<profile_name>
Replace <username>
, <password>
, <camera_ip_address>
, and <profile_name>
with the appropriate values.
To get an RTSP stream from a Foscam camera, follow these steps:
- Open the camera's web interface by entering its IP address in your web browser.
- Log in using your camera's username and password.
- Go to Settings > Network > IP Configuration.
- Note the camera's IP address, HTTP port, and RTSP port.
- Construct the RTSP URL using the following format:
rtsp://<username>:<password>@<camera_ip_address>:<rtsp_port>/videoMain
Replace <username>
, <password>
, <camera_ip_address>
, and <rtsp_port>
with the appropriate values.
To get an RTSP stream from an Amcrest camera, follow these steps:
- Open the camera's web interface by entering its IP address in your web browser.
- Log in using your camera's username and password.
- Go to Setup > Network > Connection.
- Note the camera's RTSP port.
- Construct the RTSP URL using the following format:
rtsp://<username>:<password>@<camera_ip_address>:<rtsp_port>/cam/realmonitor?channel=1&subtype=<stream_type>
Replace <username>
, <password>
, <camera_ip_address>
, <rtsp_port>
, and <stream_type>
with the appropriate values. The stream type is typically 0 for the main stream and 1 for the substream.
To obtain an RTSP stream from a Unifi Protect camera, follow these steps:
- Open the Unifi Protect web application by entering its IP address in your web browser.
- Log in using your Unifi Protect account credentials.
- Click on "Unifi Devices" and locate the device you want to connect to.
- In the right-panel, select "Settings" to access the camera's settings.
- Expand the "Advanced" section, where you will find the RTSP settings.
- Choose a resolution for the stream and enable it. An RTSP URL will be displayed below your selection.
Use the generated RTSP URL to connect to the camera stream in third-party applications or services.