# Writing custom input module for wowza streaming engine

**URL:** <https://community.wowza.com/t/writing-custom-input-module-for-wowza-streaming-engine/43187>\
**Category:** Wowza Streaming Engine\
**Created:** [June 10, 2014, 1:44pm UTC](https://community.wowza.com/t/writing-custom-input-module-for-wowza-streaming-engine/43187 "2014-06-10T13:44:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dnyanesh\_Gate](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@Dnyanesh\_Gate](https://community.wowza.com/u/Dnyanesh_Gate)\
**Post date:** [June 10, 2014, 1:44pm UTC](https://community.wowza.com/t/writing-custom-input-module-for-wowza-streaming-engine/43187/1 "2014-06-10T13:44:22Z")

</div>

Hi,

I am a beginner in using wowza server and just started working on it. I wish to write a custom input handler as a plugin for wowza streaming engine. I mean, we don’t have any RTSP or RTP or RTMP streaming server, we will be receiving a stream on a websocket connection, which we want to redirect to wowza streaming engine. Can some one helps me out or redirect me to right link for writing a such custom input stream plugin ?

---

<div class="post-metadata">

**Author:** ![Andrew\_Kennedy1](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Andrew\_Kennedy1](https://community.wowza.com/u/Andrew_Kennedy1)\
**Post date:** [June 13, 2014, 12:38pm UTC](https://community.wowza.com/t/writing-custom-input-module-for-wowza-streaming-engine/43187/2 "2014-06-13T12:38:42Z")

</div>

Hi,

If you can let us know the kind of input you are looking to add we may be able to provide pointers.

You mention a ‘websocket’ so is it a HTTP progressive stream ? or perhaps mpegts over HTTP ?

Andrew.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [June 20, 2014, 1:02am UTC](https://community.wowza.com/t/writing-custom-input-module-for-wowza-streaming-engine/43187/3 "2014-06-20T01:02:46Z")

</div>

This is supported in Wowza, take a look at [this article](https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming%28RTSP-RTP-re-streaming%29)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [June 21, 2014, 1:39am UTC](https://community.wowza.com/t/writing-custom-input-module-for-wowza-streaming-engine/43187/4 "2014-06-21T01:39:42Z")

</div>

Yes, if the encoder generates .sdp files that is the guide to follow

Richard

---

<div class="post-metadata">

**Author:** ![Dnyanesh\_Gate](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@Dnyanesh\_Gate](https://community.wowza.com/u/Dnyanesh_Gate)\
**Post date:** [June 19, 2014, 1:02pm UTC](https://community.wowza.com/t/writing-custom-input-module-for-wowza-streaming-engine/43187/5 "2014-06-19T13:02:09Z")

</div>

There are change of plans. It will be neither HTTP or TS or Websocket. We will be receiving RTP stream over a simple TCP or TLS socket and we need to feed it to Wowza Streamer.

We will receive RTP frames (H.264 Video and AAC Audio) on TCP socket and wish to pass it to wowza stream without any tunneling in between them. Is it possible ?

---

<div class="post-metadata">

**Author:** ![Dnyanesh\_Gate](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@Dnyanesh\_Gate](https://community.wowza.com/u/Dnyanesh_Gate)\
**Post date:** [June 20, 2014, 11:31am UTC](https://community.wowza.com/t/writing-custom-input-module-for-wowza-streaming-engine/43187/6 "2014-06-20T11:31:02Z")

</div>

[This article](https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming%28RTSP-RTP-re-streaming%29) shows how to publish a RTSP stream. I wish to do same thing, but I don’t have a RTSP stream. I have a camera which supports RTSP stream, but wowza can not connect to camera; because camera is behind the firewall/NAT. So that camera will make a reverse connection and connects to a server running parallely with wowza and start streaming to that server. Now I want to redirect this camera stream from my custom server to wowza server. There is no RTSP server between them just a TCP connection. So actually my question is, how can I write a plugin which will accept stream from a custom TCP socket and re-stream it to client? Is such plugin supported by wowza?

---

<div class="post-metadata">

**Author:** ![Dnyanesh\_Gate](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@Dnyanesh\_Gate](https://community.wowza.com/u/Dnyanesh_Gate)\
**Post date:** [June 20, 2014, 4:14pm UTC](https://community.wowza.com/t/writing-custom-input-module-for-wowza-streaming-engine/43187/7 "2014-06-20T16:14:08Z")

</div>

I found this [article](https://www.wowza.com/docs/how-to-set-up-live-streaming-using-a-native-rtp-encoder-with-sdp-file) useful. Correct me if I am wrong, create a SDP and save it to installation directory and start redirecting RTP frames from TCP socket to two UDP sockets (Video and Audio). Wowza will read SDP file and start receiving frames.
