I submitted a PR that adds video to the PFD and a new video gadget to the GCS.
The PR can be found here
https://bitbucket.org/librepilot/librepilot/pull-requests/454There 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...).