1.Introduction

RTSP (Real-Time Streaming Protocol) is a network control protocol used to control streaming media servers in entertainment and communications systems. It allows clients to control media stream playback (e.g., play, pause, and stop) and supports real-time audio and video streaming. RTSP is commonly used in network cameras, media servers, and video conferencing systems.

This document aims to show the configuration method of RTSP stream and the URLs used by camera, NVR and VMS for audio and video streaming via RTSP, for the convenience of product usage and configuration.


2.RTSP Stream Configuration

Image 1

The above picture shows the RTSP configure page and precautions for configuration.

3.RTSP URL Instruction

3.1Network Camera RTSP URL

The following is a list of RTSP URL except for Fisheye Camera,Dual-sensor Camera and Multi-directional Camera.

Network Camera RTSP URL

Stream

URL

Primary Stream

rtsp://IP:RTSP Port/main

Secondary Stream

rtsp://IP:RTSP Port/sub

Tertiary Stream

rtsp://IP:RTSP Port/third


The following is a list of RTSP URL for Fisheye Camera.

Fisheye Camera RTSP URL

Stream

URL

Primary Stream

rtsp://IP:RTSP Port/main

Secondary Stream

rtsp://IP:RTSP Port/sub

Channel 01

rtsp://IP:RTSP Port/main

Channel 02

rtsp://IP:RTSP Port/sub

Channel 03

rtsp://IP:RTSP Port/third

Channel 04

rtsp://IP:RTSP Port/fourth

Channel 05

rtsp://IP:RTSP Port/fifth


The following is a list of RTSP URL for AI Dual-sensor Camera.

MS-C8477-HPG1 RTSP URL- Channel 1

Stream

URL

Primary Stream

rtsp://IP:RTSP Port/channel1/main

Secondary Stream

rtsp://IP:RTSP Port/channel1/sub

Tertiary Stream

rtsp://IP:RTSP Port/channel1/third


MS-C8477-HPG1 RTSP URL- Channel 2

Stream

URL

Primary Stream

rtsp://IP:RTSP Port/channel2/main


MS-C8477-PC RTSP URL

Stream

URL

Primary Stream

rtsp://IP:RTSP Port/main

Secondary Stream

rtsp://IP:RTSP Port/sub

Tertiary Stream

rtsp://IP:RTSP Port/third


The following is a list of RTSP URL for AI Multi-directional Camera.

MS-C5321-FPE RTSP URL

Channel 1:
Primary Stream: rtsp://IP:RTSP Port/sensor1/main
Secondary Stream: rtsp://IP:RTSP Port/sensor1/sub

Channel 2:
Primary Stream: rtsp://IP:RTSP Port/sensor2/main
Secondary Stream: rtsp://IP:RTSP Port/sensor2/sub

Channel 3:
Primary Stream: rtsp://IP:RTSP Port/sensor3/main
Secondary Stream: rtsp://IP:RTSP Port/sensor3/sub

Channel 4:
Primary Stream: rtsp://IP:RTSP Port/sensor4/main
Secondary Stream: rtsp://IP:RTSP Port/sensor4/sub

Bundle Stream:
Primary Stream: rtsp://IP:RTSP Port/bundle/main


Note:

IP: The IP address of camera.

The default RTSP port is 554. 

RTSP port valid range is 1~65535.

The RTSP URL for Primary Stream and Secondary Stream of Fisheye camera is optional when transfer mode is bundle-stream mode.

The RTSP port needs to be mapped when enabling port mapping.

Image 2


3.2NVR RTSP URL

NVR RTSP URL

The RTSP format of Milesight NVR is “rtsp://IP:RTSP port/ch_xxx”.

IP: The IP address of NVR;

RTSP port: The default RTSP port is 554;

ch_xxx: The first number of xxx represents stream type, 1 for main stream and 4 for sub stream. The last two represents channel number, which start from '00’ (‘00’ means channel 1). 

Take ‘rtsp://192.168.8.179:554/ch_402’ as an example:

The IP address of NVR is 192.168.8.179.

The RTSP port is 554.

The stream type is sub stream.

The channel number is 3.

Image 3

3.3VMS Enterprise RTSP URL

VMS Enterprise RTSP URL

The RTSP format of Milesight VMS is “rtsp://{User}:{Pwd}@{Server_IP}:8092/live/{Device_ID}/{Channel_ID}/{Stream_Type}”

User/Pwd: the username and password for logging into the VMS system.

Server_IP: IP address of any online server in the system. (the Server not owned by the camera also supports streaming)

Device_ID: Device ID, the decimal form of the MAC address of the camera. You need to manually convert the hexadecimal MAC address to decimal.

Channel_ID: The channel ID of a device. The value is 0 for a single-channel device. The ChID of a multi-channel device which includes fisheye camera, AI Dual-sensor Camera, TrafficX camera and AI Multi-directional Camera is by parity of reasoning.

Stream_Type: 1- primary stream, 2- secondary stream.

Take ‘rtsp://Jasper:gza1114gza104@192.168.69.14:8092/live/31624218630288/0/1’ as an example:

The username is Jasper.

The password is gza1114gza104.

The Server IP is 192.168.69.14.

The Device ID in decimal form is 31624218630288.

The camera is a single-channel device, the channel ID is 0.

The stream type is primary stream.

Image 4


If you can't solve the RTSP problem, please contact support@milesight.com.






——————END——————