RTSP video stream
The sensor renders its point cloud into a video and serves it over RTSP. A VMS gets the address of the stream over ONVIF and shows it like the video of a camera. A video player such as VLC can open the stream directly.
The stream carries only the picture. Alarms reach a VMS as ONVIF events, so a VMS that only plays the RTSP stream receives no alarms, see ONVIF events.
The video shows the point cloud with the zones and their names, below a header with the date and time of the sensor and above a footer with its hostname.
The stream
| Property | Value |
|---|---|
Address |
|
Frame rate |
20 frames per second, independent of the frame rate of the scan pattern. |
Resolution and encoding |
1920 x 1080 (Full HD) or 1280 x 720 (HD), encoded as H.264 or MJPEG. The VMS chooses them in its ONVIF media settings of the sensor; the WebGUI has no setting for them. |
Several sensors |
In a swarm, each sensor serves its own stream of its own point cloud. |
For an IPv6 address, put it in square brackets, for example rtsp://<user>:<key>@[fd00::42]:554/local/pointcloud/core.
While the sensor sees no points, the video shows the empty scene with its zones and the stream continues.
Set the perspective
The stream shows the scene from a perspective you choose in the WebGUI.
-
In the sidebar, click
Viewer.
-
Move the view to the perspective the VMS should show.
-
Press Shift+V.
The stream switches to this perspective. A rotation of the picture set before is reset.
Transports
Video players and VMSs open the stream over RTSP on port 554. The sensor also serves it tunnelled over HTTP (port 80) and HTTPS (port 443), though not to plain and tunnelled clients at the same time: while one client streams over port 554, a client over a tunnel is rejected, and the other way round.
The firewall configuration of the sensor can move the RTSP port to a port from 10500 to 10599 or close it, see Security hardening.
Open the stream in a video player
The examples use the hostname qb2-ABC123XYZ.local and the credentials user:key. Replace them with the hostname of your sensor and your ONVIF credentials.
VLC
-
Click Media > Open Network Stream.
-
Enter the address and click Play:
rtsp://user:key@qb2-ABC123XYZ.local:554/local/pointcloud/core
Figure 2. The address of the stream in VLC
VLC plays the stream with its default settings. Where the video does not arrive over UDP, it switches to TCP by itself after 10 seconds.
GStreamer
$ gst-launch-1.0 rtspsrc location=rtsp://user:key@qb2-ABC123XYZ.local:554/local/pointcloud/core protocols=tcp ! decodebin ! autovideosink
FFmpeg
$ ffplay -rtsp_transport tcp rtsp://user:key@qb2-ABC123XYZ.local:554/local/pointcloud/core
Stream into a VMS
Add the sensor with the ONVIF driver of the VMS: the VMS asks the sensor for the address of the stream over ONVIF and receives the alarms as well. The guides for the tested VMSs are in Supported video management systems.
A VMS can also open the address of the stream directly with its generic RTSP driver, as Senstar Symphony does with the driver RTSP URL. It then receives no alarms.
Check the stream
-
In the sidebar, click Configuration.
-
Read Video / RTSP Stream on the ONVIF card. Active means that at least one client plays the stream.
Figure 4. The ONVIF card with an active video stream -
For the details, click System > Diagnostics and click the RTSP video box under Integrations.
Figure 5. Diagnostics of the video streamDetail What it shows Clients
The number of connected RTSP clients.
Fetch rate
How many point cloud frames per second the video takes from the processing pipeline.
Render rate
How many video frames per second are rendered from them.
Push rate
How many rendered frames per second go into the video stream.
The three rates follow the frame rate of the active scan pattern; with a pattern of 8 Hz they show about 8 fps. They are there for diagnosis: the stream itself is always delivered at 20 frames per second.
The health of the video is also available to developers through the API, see Health.