diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2020-10-19 23:58:48 +0300 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2020-10-20 00:20:31 +0300 |
commit | c9d23a045e6cb46c023c15f8189ef3ee8b1ddf20 (patch) | |
tree | dfaab199379ca17c25e7f4f630ed7995435e0085 /docs/2-waltham-how-to-build.md | |
parent | 0e79ab59165bf925f1288476dad66109aa01b3fa (diff) |
docs/: Added docsjellyfish_10.0.1jellyfish/10.0.110.0.1
This adds the documentations bits, most, if not all, extracted from
the original wayland-ivi-plugins repository.
It describes the waltham-transmiter-plugin, and the receiver side, how
to configure and run them. It also removes any ivi-shell and with it,
any menton about LayoutManagerControls.
Bug-AGL: SPEC-3601
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I2f900f7eee34c431cc8d601131c5925c31280425
Diffstat (limited to 'docs/2-waltham-how-to-build.md')
-rw-r--r-- | docs/2-waltham-how-to-build.md | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/docs/2-waltham-how-to-build.md b/docs/2-waltham-how-to-build.md new file mode 100644 index 0000000..350e728 --- /dev/null +++ b/docs/2-waltham-how-to-build.md @@ -0,0 +1,108 @@ +**Table of Content** + +1. TOC +{:toc} + +## Information + +## How to build waltham-transmitter-plugin + +1. Go to AGL build folder and configure your environment. Add +'agl-weston-waltham-remoting' as distro feature. + +``` + $ cd $AGL_TOP + $ source meta-agl/scripts/aglsetup.sh -f -b ${MACHINE_TYPE} [additional_distro_features] agl-weston-waltham-remoting +``` + +2. Build agl-demo-platform by using bitbake. + +3. Clone/download the waltham-transmitter-plugin on your own and build +locally using the build system provided. See README.md file for more +information. + +## How to configure weston.ini and GStreamer pipeline + +### weston.ini + +Add output name, host IP address, port number, and mode key under +'[transmitter-output]' section. +You can speficy multiple [transmitter-output] with different output-name. + +``` +/* Example_weston.ini - single transmitter-output */ + [transmitter-output] + name=transmitter-1 + mode=640x720@30 + host=192.168.20.99 + port=5005 + agl-shell-app-id=<APP_ID> +``` + +### GStreamer pipeline + +You can use GStreamer pipeline as you want. Here are some examples. + +``` + +/* General pipeline which does not use any HW encoder */ + appsrc name=src ! videoconvert ! video/x-raw,format=I420 ! jpegenc ! \ + rtpjpegpay ! udpsink name=sink host=YOUR_RECIEVER_IP \ + port=YOUR_RECIEVER_PORT sync=false async=false + +/* pipeline to use Intel's HW encoder */ + appsrc name=src ! videoconvert ! video/x-raw,format=I420 ! \ + mfxh264enc bitrate=3000000 rate-control=1 ! rtph264pay config-interval=1 ! \ + udpsink name=sink host=YOUR_RECIEVER_IP port=YOUR_RECIEVER_PORT \ + sync=false async=false + +/* pipeline to use Rcar's HW encoder */ + appsrc name=src ! videoconvert ! video/x-raw,format=I420 ! \ + omxh264enc bitrate=3000000 control-rate=2 ! rtph264pay ! \ + udpsink name=sink host=YOUR_RECIEVER_IP port=YOUR_RECIEVER_PORT \ + sync=false async=false + +``` + +## Connection Establishment + +1. Connect two boards over ethernet. +2. Assign IP to both boards. +```Example: + transmitter IP: 192.168.2.51 + waltham-receiver IP: 192.168.2.52 +``` +3. Check if the simple ping works +``` + $ ping 192.168.2.52 (you can also ping vice versa) +``` + +## Typical issues & Tips + +### help functions +You can find the help information of LayerManagerControl command by using + +``` +$ LayerManagerControl help +``` + +### waltham-transmitter and waltham-receiver doesn't not communicate + +1. Please check ethernet connection. If you assign 192.168.2.51 and + 192.168.2.52 for waltham-transmitter and waltham-receiver, you shall ping + vice versa. + +``` +/* At waltham-transmitter side */ + $ ping 192.168.2.52 + +/* At waltham-receiver side */ + $ ping 192.168.2.51 +``` + +2. Make sure that IP address specified in the weston.ini under + [transmitter-output] matches the waltham-receiver IP address. + +3. Make sure that IP address in pipeline.cfg on the transmitter side match the + waltham-receiver's IP address. + |