# Media Streams for AI Processing

**URL:** <https://openvidu.discourse.group/t/media-streams-for-ai-processing/3168>\
**Category:** How to implement?\
**Tags:** v2\
**Created:** [June 24, 2021, 1:36pm UTC](https://openvidu.discourse.group/t/media-streams-for-ai-processing/3168 "2021-06-24T13:36:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shah](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shah](https://openvidu.discourse.group/u/shah)\
**Post date:** [June 24, 2021, 1:36pm UTC](https://openvidu.discourse.group/t/media-streams-for-ai-processing/3168/1 "2021-06-24T13:36:55Z")

</div>

I wanted to create a AI based proctoring application on Openvidu and my aim is to send the media stream from media server to the receivers and also a Python ML service which raises alerts on malpractice

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [June 24, 2021, 2:00pm UTC](https://openvidu.discourse.group/t/media-streams-for-ai-processing/3168/2 "2021-06-24T14:00:50Z")

</div>

Hello @shah,

Currently the only way to export the stream from an OpenVidu session is recording it and then processing it offline.

Maybe in the future we can evaluate to export the media with RTP to be processed with ffmpeg or similar tool.

Best regards

---

<div class="post-metadata">

**Author:** ![shah](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shah](https://openvidu.discourse.group/u/shah)\
**Post date:** [June 24, 2021, 6:00pm UTC](https://openvidu.discourse.group/t/media-streams-for-ai-processing/3168/3 "2021-06-24T18:00:47Z")

</div>

Hello @micael.gallego ,

Thanks for the reply.  
Is there any way to send by media stream to another endpoint for processing in real time using kurento?  
It need not necessarily be an openvidu setting. Can I maybe edit something in kurento while using openvidu to achieve the same?

Thanks and Regards
