Add a video stream

Video streams allow you to quickly and easily see what your robot is seeing and greatly aid in teleoperation. Formant supports USB and IP video streams via Real-Time Streaming Protocol (RTSP) and Real-Time Messaging Protocol (RTMP).

This guide will teach you how to configure a USB or IP video stream on your device.

Step 1: Create a video stream

  1. In Formant, in the upper-left corner, open the menu and click Settings.
  2. Click Devices, and then click on the device you want to configure.
  3. Click the Telemetry tab, and then click Add Stream.
  4. Click Hardware Video. This will open the New Hardware Video Stream configuration window:
new video stream configuration window
PropertyUsage
Telemetry stream nameGive the stream a name.
On demandIf ON, this stream will store data locally on your device, and only upload data to Formant when you click Retrieve on-demand data. Rate limit controls the rate at which datapoints are added to the on-device buffer. For more information, see On demand streams.

If OFF, this stream will ingest periodically. Rate limit controls the rate of data ingestion.
Quality of the videoSelect your video quality. Higher video quality requires more bandwidth.

The next few options depend on whether you are configuring a USB camera, or an IP camera over RSTP or RTMP.

Step 2: Configure a camera

USB

For USB devices, you can simply enter the path to the device file:

USB camera configuration
PropertyUsage
Video Hardware pathEnter the path to the Linux device file. This dropdown will auto-populate with devices detected by Formant.

Once configured, the Formant agent will automatically read the image stream from the selected USB camera, encode it to H.264, and ingest it as a video stream.

IP camera

Formant supports IP cameras via RTSP and RTMP, as well as the ONVIF protocol.

IP camera configuration
PropertyUsage
Video RTSP URIEnter the URI of your camera in the following format:
RTSP:
rtsp://<ip>:<port>/H264
RTMP:
rtmp://<ip>:<port>/steam/live
Encoding requiredSet this to YES if the video has any encoding other than H264.
Supports ONVIF (RTSP only)Set this to YES if your camera supports the ONVIF protocol.
UsernameEnter the username to access your camera.
PasswordEnter the password to access your camera.

Step 3 (optional): Configure audio

You can add an audio source to your video stream:

Audio hardware configuration
PropertyUsage
Audio Hardware nameEnter the name of the audio device you want to associate with this video stream.

Step 4 (optional): Tag your data

Add tags to your video stream using the following options:

adding tags to the data
PropertyUsage
Add tags (e.g. key: value) (optional)Add tags to each datapoint of this stream. For more information on tags, see Configure access levels.

When you're finished configuring your stream, click Done, and then Save.

Step 5: Add stream to a view

Once you've added a stream to your device, your next step is to add it to a view in Formant.

Add the streams you want to visualize, and then move on to Viewing data in Formant.

👋

If you notice an issue with this page or need help, please reach out to us! Use the 'Did this page help you?' buttons below, or get in contact with our Customer Success team via the Intercom messenger in the bottom-right corner of this page, or at [email protected].