RTSP video stream

This page documents an earlier firmware release. Read this page for the latest release

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.

Frame of the video: a yellow header with the Blickfeld logo, the date and the time, the point cloud of a fence with a person in the security zone Pre-Alarm, drawn red while in alarm, and a yellow footer with the hostname qb2-ABC123XYZ
Figure 1. A frame of the point cloud video of the sensor

The stream

Property Value

Address

rtsp://<user>:<key>@<sensor>:554/local/pointcloud/core, where <user> and <key> are the ONVIF credentials, see ONVIF credentials, and <sensor> is the hostname or IP address of the sensor.

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.

  1. In the sidebar, click Eye Viewer.

  2. Move the view to the perspective the VMS should show.

  3. 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

  1. Click Media > Open Network Stream.

  2. Enter the address and click Play:

    rtsp://user:key@qb2-ABC123XYZ.local:554/local/pointcloud/core
    VLC Open Media dialog, Network tab, with the network URL rtsp://user:key@qb2-ABC123XYZ.local:554/local/pointcloud/core and the Play button
    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.

Senstar Symphony, Devices, Cameras, Add Cameras, with the driver RTSP URL selected for a new camera
Figure 3. The generic RTSP driver in Senstar Symphony

Check the stream

  1. In the sidebar, click Configuration.

  2. Read Video / RTSP Stream on the ONVIF card. Active means that at least one client plays the stream.

    ONVIF card while a VMS is subscribed to the events and a video player plays the stream: Event Subscription Active, Video / RTSP Stream Active
    Figure 4. The ONVIF card with an active video stream
  3. For the details, click System > Diagnostics and click the RTSP video box under Integrations.

    Diagnostics graph with the box RTSP video selected under Integrations and its details with Clients, Fetch rate, Render rate and Push rate
    Figure 5. Diagnostics of the video stream
    Detail 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.