> For the complete documentation index, see [llms.txt](https://px4.gitbook.io/px4-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://px4.gitbook.io/px4-user-guide/drone_parts/companion_computer/video_streaming.md).

# Video Streaming

PX4-based vehicles support video streaming using a camera connected to a companion computer. GStreamer is used to send the video to *QGroundControl* over an IP link.

:::note You can't video stream directly from a camera connected to PX4. :::

To support streaming use cases you will need to install *GStreamer* development packages on both your companion computer and on the system running *QGroundControl*.

*QGroundControl* uses GStreamer 1.14.4 and a stripped down version of *QtGstreamer* to support UDP RTP and RSTP video streaming.

## Companion Computer Setup

General instructions for installing *GStreamer* and starting the stream on your companion computer are provided in the [QGroundControl VideoReceiver README](https://github.com/mavlink/qgroundcontrol/blob/master/src/VideoReceiver/README.md).

## QGC Setup

To setup and use video steaming with QGC:

1. Install GStreamer before running QGC. On Ubuntu this is done with the command:

   ```
   sudo apt install gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-gl -y
   ```

   For other platforms follow the instructions in [QGroundControl VideoReceiver README](https://github.com/mavlink/qgroundcontrol/blob/master/src/VideoReceiver/README.md).
2. Enable video in *Fly View*: [QGroundControl > General Settings (Settings View) > Video](https://docs.qgroundcontrol.com/master/en/SettingsView/General.html#video)
3. If everything works, you should see the video stream displayed in the QGC Video Switcher (QGC Fly View bottom left corner). You can click on the video switcher to toggle the video full-screen, as shown in the screenshot below.

   ![QGC displaying video stream](/files/uPLeN1sxTzAP2J4kO7iW)

## Gazebo Classic Simulation

[Gazebo Classic](/px4-user-guide/development/simulation/sim_gazebo_classic.md) supports video streaming from within the simulated environment. For more information see [Gazebo Classic Simulation > Video Streaming](/px4-user-guide/development/simulation/sim_gazebo_classic.md#video-streaming).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://px4.gitbook.io/px4-user-guide/drone_parts/companion_computer/video_streaming.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
