• *****
  • 68
New video gadget
« on: July 15, 2017, 01:23:04 pm »
I submitted a PR that adds video to the PFD and a new video gadget to the GCS.

The PR can be found here

There is a readme file in ./ground/gcs/src/libs/gstreamer/ that gives some pointers to building this branch.

A demo video can seen here:

GStreamer is used to view, process, record and eventually stream video from a variety of sources (usb or ip camera, file, network...).
For those who know GStreamer, the new video gadget is more or less a glorified gst-launch.

The GCS video gadget comes with a number of sample GStreamer pipelines. Most of them work on Windows only but can easily be adapted to Linux or Mac.

A few Windows' specific GStreamer elements are used but most pipelines will work if those elements are switched with the corresponding element for the specific platform.

Type  Windows  Linux  Mac
Video capture  ksvideosrc  v4l2src  avfvideosrc
Video display  d3dvideosink  ximagesink  osxvideosink
Screen capture  dx9screencapsrc  ximagesrc  avfvideosrc

You can get information about GStreamer elements with gst-launch-1.0 <element name>

The branch is known to compile and work on Windows, Linux and Mac.
It will work best with the latest GStreamer (1.12.2). Your results may vary if you use an older version of GStreamer (but it should work...).

« Last Edit: September 13, 2017, 09:18:50 pm by filnet »


  • *****
  • 68
Re: New video gadget
« Reply #1 on: July 15, 2017, 04:37:45 pm »


  • *****
  • 3907
    • LibrePilot
Re: New video gadget
« Reply #2 on: September 25, 2017, 11:49:53 pm »
Video gadget is now merged to the development 'next' branch.