> 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-r2/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/beN09wzfYcpzvHVB7i7w" 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="/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>

Open **QGroundControl**, choose **Application Setting -> General**, and scroll to "**Video Setting**" section\
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**

**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 %}
