# 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="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2Fe1m2RbNqxUO6w7pKGoOL%2Fz6784082469978_9a85c8141dd63b0723842d3812c0db36.jpg?alt=media&#x26;token=1861b712-d776-41ca-95ca-cfc010979c4a" alt="" width="563"><figcaption><p>Hardware Setup</p></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="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FA7LgEWCzL6HwZ7zMxElL%2Fimage.png?alt=media&#x26;token=10207cfe-ea7a-45fd-85cb-c9a288e294c5" 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>

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

<figure><img src="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FKB5WFtUjkTm2VgOGFnmW%2Fimage.png?alt=media&#x26;token=c5eedb54-be73-4bec-bbdb-07418b6b4cd8" alt=""><figcaption><p>Settings in QGroundControl</p></figcaption></figure>

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

**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="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2FQAmOfHvNmdWBlRtz8O0w%2Fimage.png?alt=media&#x26;token=bb4a609a-c0f3-44d2-8c77-3ffe47fbb173" 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="https://752643261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1Ot9F_Ob2Aboz1SKNK%2Fuploads%2F7ffL5AtV2SwwDQbmWgUI%2Fimage.png?alt=media&#x26;token=6b4c1a0f-ea85-46d2-9e61-2edc37d2a09d" 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: 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://docs.xbstation.com/xblink-sat/user-manual/advanced-configuration/cameras-and-gimbals/usb-cameras/xbcam-v2.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.
