Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/libraries/AP_Camera/examples/README.md
Views: 1799
AP_Camera examples
GStreamer examples
The following examples demonstrate how to manipulate GStreamer pipelines to capture and display video streams from a UDP or RTSP source. They are useful for providing test images to camera algorithms, or forwarding streams from simulators such as Gazebo to ground control stations.
For further details see:
Install dependencies
Ubuntu
macOS
gst_rtsp_server.py
The example provides a number of test images as an RTSP stream that may be accessed at:
rtsp://127.0.0.1:8554/camera
rtsp://127.0.0.1:8554/ball
rtsp://127.0.0.1:8554/snow
Start the RTSP server:
Display the RTSP stream:
gst_rtsp_to_wx.py
The example displays an RTSP stream in a wxPython application.
Start the RTSP server:
Display the RTSP stream in wxPython
gst_udp_to_rtsp.py
Convert a UDP stream to RTSP. This example is configured to use the same UDP pipeline provided by the ArduPilot Gazebo GstCameraPlugin
. By converting the UDP stream to RTSP is may be consumed by multiple applications (e.g. a camera tracking algorithm and a GCS).
Create a UDP video stream
Convert to RTSP:
Display the RTSP stream:
gst_udp_to_wx.py
The example displays a UDP video stream in a wxPython application.
Create a UDP video stream:
Display the UDP video stream in wxPython: