# Need to send stream to the specific rtsp server via the specific port

**URL:** <https://forums.openmv.io/t/need-to-send-stream-to-the-specific-rtsp-server-via-the-specific-port/7943>\
**Category:** OpenMV Boards\
**Created:** [February 9, 2023, 2:44am UTC](https://forums.openmv.io/t/need-to-send-stream-to-the-specific-rtsp-server-via-the-specific-port/7943 "2023-02-09T02:44:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![YellowSnake](https://avatars.discourse-cdn.com/v4/letter/y/3e96dc/32.png) [@YellowSnake](https://forums.openmv.io/u/YellowSnake)\
**Post date:** [February 9, 2023, 2:44am UTC](https://forums.openmv.io/t/need-to-send-stream-to-the-specific-rtsp-server-via-the-specific-port/7943/1 "2023-02-09T02:44:54Z")

</div>

Hi experts，I need to send the stream created by openMV H7/H7plus to the specific rtsp server via the specific port. Is there any examples help in this case? The example script ’ rtsp\_video\_server\_lan.py’ is for the server mode which is not in our case. Thanks in advance for any help.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [February 9, 2023, 5:20am UTC](https://forums.openmv.io/t/need-to-send-stream-to-the-specific-rtsp-server-via-the-specific-port/7943/2 "2023-02-09T05:20:24Z")

</div>

Hi, there are no examples for this. If you open up the RSTP example code it’s just python that’s writing to sockets:

> <https://github.com/openmv/openmv/blob/master/scripts/libraries/rtsp.py>

---

<div class="post-metadata">

**Author:** ![YellowSnake](https://avatars.discourse-cdn.com/v4/letter/y/3e96dc/32.png) [@YellowSnake](https://forums.openmv.io/u/YellowSnake)\
**Post date:** [February 10, 2023, 2:46am UTC](https://forums.openmv.io/t/need-to-send-stream-to-the-specific-rtsp-server-via-the-specific-port/7943/3 "2023-02-10T02:46:59Z")

</div>

Hi kwagyeman, thank you for the quick reply. Do you have any ffmpeg or the reference libraries? I am newone in python coding. Hope to get more help. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [February 10, 2023, 4:26am UTC](https://forums.openmv.io/t/need-to-send-stream-to-the-specific-rtsp-server-via-the-specific-port/7943/4 "2023-02-10T04:26:18Z")

</div>

Yeah, to be clear… rtsp works by the camera being a server and a client connecting to it. It doesn’t work any other way. So, not sure what you want to do. If you want the camera to send video to a server you need to implement the sockets level code for that.
