RTSP is a network control protocol designed for controlling streaming media servers. The protocol is used for establishing and controlling media sessions between end points.
RTSP transmits video/audio data by using RTP. Below is a list of RTSP URLs by device type.
RTSP URLs:
IP Cameras
rtsp://<DeviceIP>/profile<no>/media.smp
rtsp://<DeviceIP>:port/profile<no>/media.smp
rtsp://user:password@<DeviceIP>:port/profile<no>/media.smp
The default port for RTSP Protocol is 554. It can be changed as necessary.
Available ports are 1024-65535 & 554. Ports 3702, 49152 are not available.
Example: rtsp://192.168.1.100/profile2/media.smp
Multi-Sensor IP Cameras & Encoders
rtsp://<DeviceIP>:<port>/<sensor#>/profile2/media.smp
rtsp://admin:<password>@<DeviceIP>:<port>/<sensor#>/profile2/media.smp
Sensor # range is from 0-3 (0 = Sensor 1, 1 = Sensor 2…)
Examples: PNM-9081VQ, PNM-9080VQ, PNM-9322VQP, PNM-9002VQ, or PNM-7002VD
Camera 1: rtsp://<IP address>/0/profile2/media.smp
Camera 2: rtsp://<IP address>/1/profile2/media.smp
Camera 3: rtsp://<IP address>/2/profile2/media.smp
Camera 4: rtsp://<IP address>/3/profile2/media.smp
MJPEG
Getting MJPEG stream with resolution of 800x450, frame rate of 15 and compression level of 10
http://<Device IP>/stw-cgi/video.cgi?msubmenu=stream&action=view&Profile=1&CodecType=MJPEG&Resolution=800x450&FrameRate=15&CompressionLevel=10
NVR
rtsp://<DeviceIP>:port/LiveChannel/0/media.smp
Channel numbering starts at 0
The RTSP port for NVRs will be the last Device Port set on the unit. i.e. if device port is set to 554-558, 558 will be the port for the RTSP URL.
We support 10 live sessions in NVR. A session URL needs to use a unique session key at the end RTSP URL
Eg: The below set of RTSP connections will be considered as single session since it uses same session key.
rtsp://YOUR IP ADDRESS:558/LiveChannel/0/media.smp/profile=2&session=222333
rtsp://YOUR IP ADDRESS:558/LiveChannel/1/media.smp/profile=2&session=222333
rtsp://YOUR IP ADDRESS:558/LiveChannel/2/media.smp/profile=2&session=222333
...
rtsp://YOUR IP ADDRESS:558/LiveChannel/15/media.smp/profile=2&session=222333
Where profile=1 is the Live profile on the NVR, profile=2 is the Record profile on the NVR and profile=3 is the Remote profile on the NVR
Or
rtsp://192.168.1.210:558/LiveChannel/0/media.smp/ProfileUsage=Record&session=999
Where ProfileUsage can be Live, Record or Remote
If client is not passing any “session” parameter at the end of the url each RTSP connection considered as a single session.
Another limitation is if using one session value a channel can be accessed only once
If the same channel needs to be connected, for e.g. low resolution profile etc, another session value has to be used.
DVR
rtsp://<DeviceIP>:port/<camera>
Camera numbering starts at 0
The RTSP port for DVRs will be the last Device Port set on the unit. i.e. if the device port is set to 4520-4524, 4524 will be the port for the RTSP URL.
Note: HRX units running newer firmware versions may use the NVR RTSP URL instead of the DVR RTSP URL. If the DVR RTSP URL fails to connect, try the NVR one.
For further information, please consult the SUNAPI documentation - you can obtain this via STEP Partner Portal