Manage RTSP streams with Mavlink

Table of contents

  1. Overview
  2. Prerequisites
  3. Installation
  4. Running mavink-camera-manager

Overview

mavink-camera-manager advertises camera names and RTSP stream URIs using the Mavlink camera protocol for use in QGroundControl. This allows you to use the camera selector drop down menu in the camera controls to choose an RTSP stream by camera name. The camera RTSP streams must already be setup using, for example, voxl-streamer

Prerequisites

An autopilot connection must already be established with QGroundControl otherwise it will ignore any cameras attempting to connect.

Installation

mavink-camera-manager is installed via ipk package.

yocto:/home/root/ipk# opkg install mavink-camera-manager_x.y.z.ipk

Running mavink-camera-manager

mavink-camera-manager is a command line application and can be started on the command line. Use the -h option to view online help:

yocto:/home/root# mavink-camera-manager -h
Usage: mavlink-camera-manager <options>
Options:
-h     print this help message
-d     Enable debug messages
-g     GCS IP address
-r     RTSP URI
-i     camera id (default is 0)
-n     camera name (default is "Camera X" where X is camera id)

The GCS IP address and RTSP URI parameters are required. Some examples:

# mavlink-camera-manager -g 192.168.0.10 -r rtsp://192.168.0.9:8900/live -n hires
# mavlink-camera-manager -g 192.168.0.10 -r rtsp://192.168.0.9:8901/live -i 1 -n stereo
# mavlink-camera-manager -g 192.168.0.10 -r rtsp://192.168.0.9:8902/live -i 2 -n tracking