# II. ETHERNET VIDEO STREAMING

## **1. HARDWARE SETUP**

Simple Diagram to show how to connect the G-Hadron Payload via the Ethernet<br>

<figure><img src="https://3309772875-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnikHUDUd2JXqkOsnOi7l%2Fuploads%2FDLtzEXn5W0vaTP5xULbB%2Fimage.png?alt=media&#x26;token=2eac032d-a3ad-4506-b060-2b93046b5f67" alt=""><figcaption></figcaption></figure>

## **2. G-HADRON PAYLOAD CONFIGURATION**

**a. Overview**

* To stream video over Ethernet, the G-Hadron payload needs to be set up in the same network layer (IP) as the Remote running QGC.
* The default G-Hadron payload is set to static IP address 192.168.144.25, which will stream video to IP <rtsp://192.168.144.25:8554/ghadron>.
* There are 2 ways for Remote to receive video from G-Hadron:
  * Keep G-Hadron payload's default setup (ip 192.168.144.25), Herelink Remote's IP setting at 192.168.144.10.
  * Change G-Hadron's IP according to the network configuration of the running Remote system.

**b. G-Hadron Ethernet Video Stream Protocol**

On the firmware v1.0.0 or higher, G-Hadron stream video via RTP protocol, h264 encoder.

**c. Set IP address of G-Hadron and IP adress of RTSP stream receiver**

Set IP address on [G-Hadron Payload Web Server](https://docs.gremsy.com/tiny-gimbal/g-hadron/payload-web-server).

## **3. ETHERNET RECEIVER CONFIGURATION**

### **Got video stream with QGroundControl app**

General/Video setup as follows:

<figure><img src="https://3309772875-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnikHUDUd2JXqkOsnOi7l%2Fuploads%2F9wZ0GfQJMunqAQTO53Fm%2Fimage.png?alt=media&#x26;token=04a244fc-2d62-47d6-8cd8-9c55e88bfd6e" alt=""><figcaption></figcaption></figure>

### **Extra: Got video stream with Gstreamer**

In the case of using an computer with the Gstreamer library and connected to the same network with G-Hadron Payload (192.168.144.x), the video can be received via the command:

`gst-launch-1.0 rtspsrc latency=0 location=rtsp://192.168.144.25:8554/ghadron ! decodebin ! videoconvert ! autovideosink sync=false`

Configure video streaming setting:

{% content-ref url="../payload-web-server" %}
[payload-web-server](https://docs.gremsy.com/tiny-gimbal/g-hadron/payload-web-server)
{% endcontent-ref %}

## 4. Receive on the PC using VLC:

* Goto Media -> Open Network Stream
* `rtsp://192.168.144.25:8554/ghadron`

<figure><img src="https://3309772875-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnikHUDUd2JXqkOsnOi7l%2Fuploads%2F5BmFCbSePOiyNQOvzr1p%2Fimage.png?alt=media&#x26;token=bca11bb5-200e-4036-80c0-4455aad0a48b" alt=""><figcaption></figcaption></figure>

##
