# How to get the AI-App Livestream into the MOBOTIX HUB

**URL:** <https://community.mobotix.com/t/how-to-get-the-ai-app-livestream-into-the-mobotix-hub/4037>\
**Category:** FAQ\
**Tags:** mxhub, hub, aiapps, aitech\
**Created:** [May 25, 2021, 3:05pm UTC](https://community.mobotix.com/t/how-to-get-the-ai-app-livestream-into-the-mobotix-hub/4037 "2021-05-25T15:05:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mx-MaikC](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.mobotix.com/mx-maikc/32/1179_2.png) [@Mx-MaikC](https://community.mobotix.com/u/Mx-MaikC)\
**Post date:** [May 25, 2021, 3:05pm UTC](https://community.mobotix.com/t/how-to-get-the-ai-app-livestream-into-the-mobotix-hub/4037/1 "2021-05-25T15:05:42Z")

</div>

Each AI app selbs can provide its own MJPEG stream.

the URL for this is as follows:  
[https://ip-adresse-p7-camera](https://ip-adresse-p7-camera):AppPort/local/Appname/frame.cgi

example Livestream AI traffic:

**[https://192.168.1.252:28621/local/AITraffic/frame.cgi](https://192.168.1.252:28621/local/AITraffic/frame.cgi)**

How to get this stream into the MxHub can be seen in this article

* * *

**1. Activate and configure your AI-App**

[AI-Tech Manual](https://www.mobotix.com/sites/default/files/2021-04/Mx_ML_AI-TECH%20Video%20Analytics%20App_V2-10_EN_20210324.pdf)

[AI-Tech Guideline](https://www.mobotix.com/sites/default/files/2021-04/Mx_GL_AI-TECH%20Video%20Analytics%20App_V2-10_EN_20210324.pdf)

* * *

_ **2. Add the AI-Tech Livestream into the MxHub** _

**→ ManagementClient → Recording Server → Right Click → Add Hardware**

 ![1](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/9/96a0860eae28cc0764cacadaa22d4745cc1bd299.png)

Select **Manual**

 ![2](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/c/c34907542b22478e7b5711e0ada792dd2201f69b.png)

Click **Next**

* * *

Add your camera credentials of your camera admin user

 ![3](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/1/1e0c4cf4d1a4cabb88da5c1aae95b8bb06504dbb.png)

Click **Next**

* * *

Select as Driver **Universal → Universal 1 channel driver**

 ![4](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/7/7332ba37822115fc5fff8125009c515d74f96e3f.png)

Click **Next**

* * *

Fill in the IP-Adresse of your camera on which the AI-App is running  
Select **Universal 1 channel driver** as Hardware Model

 ![5](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/c/c4eab085c87cba22d98bfe46ee8097cb68678b8a.png)

Click **Next**

* * *

Hardware will be detected:

 ![6](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/6/641c13ec8f4a9c0fb8b2a3b94eb5e0292b1b5bbf.png)

Click **Next**

* * *

Hardware informationen will be collected

 ![7](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/f/fa96d62834fdb73133dc478531ed776071fe8ef4.png)

Click **Next**

* * *

 ![8](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/f/f6bbb2e1aa084057003043846330f449a4dec6b6.png)

Click **Next**

* * *

Select your default camera group

 ![9](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/7/788f3ab86d2df362e5f789716adc3ee3c964f55e.png)

Click **Finish**

* * *

_ **3. Configure the Universal Camera** _  
 **→ ManagementClient → Recording Server → Select the Universal 1 channel driver**

 ![10](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/2/2eb7327fc0323d23b259c835064ae8ffad96906d.png)

Click on **Settings**

Set the following Settings:

HTTPS Enabled: **Yes**  
HTTPS Port: **"Port of the AI-App Webserver"**  
HTTPS Validate Certificate: **No**  
HTTPS Validate hostname: **No**  
Include URI Ptions on RTSP PLAY request: **No**

 ![11](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/a/a9e6c35f93b894037d6fcfd96392c65400560156.png)

Click on the **universal 1 channel driver camera** in the Recording Server tree

Set the following settings:

 ![12](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/7/7846d4e206f9a8e3337a2351d1d9bfdebdf7506d.png)

* * *

No you should be able to see the livestream of your AI-App

It is only possible to receive a resolution of: **640x360**!!

![13](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/2/2b689781f42deb009cae924725eaac8b35de2bf9.png)

* * *

**4. Configure AI-App for MxHub Recording**

**Open your AI-App → Configuration → Event → Milestone Event**

Set up the Server IP of your **MxHub Server**  
Set up the **Server port: "Default: 9090"**  
Set up the Device IP which the Event is related to  
Select the AI-App Events which should trigger this event

 ![14](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/f/f5a2a6cb4d6ff8be71ea90784adfc84438b2ea26.png)

* * *

Enable the Analytics Events in the MxHub

**→ ManagementClient → Tools → Options → Analytic Event**

 ![15](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/8/8e7b2e263eb894cb23b9c4c143f3307a003802fc.png)

Create a new Analytic Event.

The name for this event is **Road** (AITraffic App)

 ![16](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/c/c00a6471b8ed28c0bb39fd2cab0502397d1fcb45.png)

Analytic Event name for AI-Apps:

AITraffic: **Road**  
AIBiodeep: **Bio**  
AICrowdDeep: **Overcrowd**  
AIFacedetect: **Face**  
AIFire: **Fire**  
AIIntrusionPro: **Sterile\_Zone, Crossing\_Line, Intrusion\_Pro**  
AILoitering: **Loitering**  
AILost: **Lost**  
AIParking: **Parking\_Spot\_Change, Parking\_Lot**

* * *

Create a Rule for Recording

 ![17](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/b/b044c76a42e9c93ba383b1b013d025da646f2a06.png)

* * *

Now your system will receive a livestream directly from the AI-App and will record, when an event is triggered by the app

* * *

Short clip of how a recording looks like

[https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/c/cd00da3757e65f3d979bf0de03e00f5fc18980eb.mp4](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/c/cd00da3757e65f3d979bf0de03e00f5fc18980eb.mp4)
