> For the complete documentation index, see [llms.txt](https://docs.xbstation.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xbstation.com/xblink-5g/user-manual/advanced-configuration/cameras-and-gimbals/usb-cameras/xbcam-v2.md).

# XBCam V2

## **1. Hardware Setup** <a href="#camera-setting" id="camera-setting"></a>

Connect XBCamV2 to XBLink via USB type C cable.

<figure><img src="/files/V7D4U2DoB7c8zd0FKDmH" alt="" width="375"><figcaption></figcaption></figure>

## **2. Settings in PilotApp** <a href="#camera-setting" id="camera-setting"></a>

After connecting XBCam V2 to XBlink, open XBStationPilotApp and configure as below:

<figure><img src="/files/URxhOjepSqCosxFNMVSn" alt=""><figcaption></figcaption></figure>

### a. **Video** Port <a href="#a-port_1" id="a-port_1"></a>

Destination video port, Mission Planner and QGroundControl supports video in HUD by default on port **5600** (or 5601)**.**

### b. Video source <a href="#b-video-source" id="b-video-source"></a>

{% hint style="warning" %}
Please choose **XBCAM V2.**
{% endhint %}

### c. Internet connection <a href="#c-camera-connection-type" id="c-camera-connection-type"></a>

{% hint style="warning" %}
Default is **TCP** to archive minimize latency, please **don't change to UDP.**
{% endhint %}

## 3. Settings in QGroundControl <a href="#camera-setting" id="camera-setting"></a>

&#x20;Open **QGroundControl**, choose **Application Setting -> General**, and scroll to "**Video Setting**" section\
&#x20;as belo&#x77;**:**

<figure><img src="/files/F7l5wCfU65WLFTlwht7o" alt=""><figcaption><p>Settings in QGroundControl</p></figcaption></figure>

{% hint style="warning" %}
**Source: UDP h.264 Video Stream**&#x20;

**UDP Port** must be the same in [**Video Port**](#a-port_1) selected above.
{% endhint %}

## 4. Settings in Mission Planner

1. At the Video HUD area, Right Click -> Video -> GStreamer Stop as below instruction

<figure><img src="/files/dQRrQoLqgyrm0lZIrMh4" alt="" width="528"><figcaption><p>GStreamer Stop</p></figcaption></figure>

2. At the Video HUD area, Right Click -> Video -> Set GStreamer source -> input GStreamer URL:

`udpsrc port=5601 caps = "application/x-rtp, media=video, clock-rate=90000, encoding-name=H264, payload=96" ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! videoconvert ! video/x-raw,format=BGRA ! appsink name=outsink`

```
udpsrc port=5601 caps = "application/x-rtp, media=video, clock-rate=90000, encoding-name=H264, payload=96" ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! videoconvert ! video/x-raw,format=BGRA ! appsink name=outsink
```

{% hint style="info" %}
**NOTE: udpsrc port=560x must be the same as PilotApp**

**NOTE:** The GStreamer URL just need to input at the first time, Mission Planner will auto save this params, the next run with Mission Planner, you just **Right Click -> Video -> Set GStreamer source -> and click OK to use video streaming**
{% endhint %}

![Mission Planner](https://i.imgur.com/kFRpzS9.png)

{% hint style="info" %}
**NOTE:** Download and install the plugin (domestic environment download is slow, if it fails, please restart the Mission Planner ground station and try again)
{% endhint %}

![Mission Planner](https://i.imgur.com/RurZ4jz.png)

After the installation is complete, restart the MissionPlanner ground station to display the following interface.

## 5. XBCam V2 - Setting <a href="#camera-setting" id="camera-setting"></a>

Moreover, you can adjust camera parameters such as **ExposureTime**, **Brightness, AutoExposure**:

<figure><img src="/files/oPFwH9gaPPEPtAurkd6v" alt=""><figcaption><p>Click here to open list of parameters's XBCAM V2</p></figcaption></figure>

To receive the best display quality under different conditions, we highly recommend making the adjustments below:

* Indoor or low light conditions: Just tick the **AutoExposure** check bo&#x78;**.**
* Outdoor: Untick **AutoExposure** -> Decrease the **ExposureTimeAbsolute** and **Brightness** value.

#### For more information see [XBCam V2 - Setting](https://www.youtube.com/watch?v=rUh23f0tULk).

{% embed url="<https://www.youtube.com/watch?v=rUh23f0tULk>" %}
XBCam V2-Setting
{% endembed %}


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.xbstation.com/xblink-5g/user-manual/advanced-configuration/cameras-and-gimbals/usb-cameras/xbcam-v2.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
