# Same RTMP stream in two different applications

**URL:** <https://community.wowza.com/t/same-rtmp-stream-in-two-different-applications/47903>\
**Category:** Wowza Streaming Engine\
**Created:** [January 19, 2017, 12:28am UTC](https://community.wowza.com/t/same-rtmp-stream-in-two-different-applications/47903 "2017-01-19T00:28:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregory\_Debord](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@Gregory\_Debord](https://community.wowza.com/u/Gregory_Debord)\
**Post date:** [January 19, 2017, 12:28am UTC](https://community.wowza.com/t/same-rtmp-stream-in-two-different-applications/47903/1 "2017-01-19T00:28:18Z")

</div>

Hi,

I’m looking for a solution to perform a kind of “real time load balancer” for live events which would work as follow :

- for low audience streams, deliver HLS using a standard wowza “live” application and m3u8 served by wowza like http://[wowza-ip-address]:1935/live/smil:myStream.smil/playlist.m3u8

- for high audience streams, deliver HLS using a wowza “live HTTP origin” to a CDN , and deliver m3u8 using the CDN infrastructure.

In order to do this in real time and to reduce CDN costs, the player would contact a service that would provide the suitable HLS url given the number of connections to the event (which I can retrieve from wowza). For low audience it will return the m3u8 from wowza (http://[wowza-ip-address]:1935/live/smil:myStream.smil/playlist.m3u8), for high audience the one from the CDN.

The key point here is that I would need one RTMP input stream to point to two different applications, a standard “live” application and a “live HTTP origin” application.

Is that possible with wowza ? If no, is there another way to set up such a mecanism ?

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![Jermaine\_Hemby](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@Jermaine\_Hemby](https://community.wowza.com/u/Jermaine_Hemby)\
**Post date:** [January 29, 2017, 8:13am UTC](https://community.wowza.com/t/same-rtmp-stream-in-two-different-applications/47903/2 "2017-01-29T08:13:29Z")

</div>

Hello,

Thanks for contacting Wowza Forums.

Regarding having 1 RTMP stream point to 2 different applications, one way to accomplish this is to setup the live encoder doing the ingest feed with 1 application RTMP URL as primary and 1 application RTMP URL as the backup.

regards,

Jermaine

---

<div class="post-metadata">

**Author:** ![Gregory\_Debord](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@Gregory\_Debord](https://community.wowza.com/u/Gregory_Debord)\
**Post date:** [January 30, 2017, 8:25am UTC](https://community.wowza.com/t/same-rtmp-stream-in-two-different-applications/47903/3 "2017-01-30T08:25:29Z")

</div>

Hello Jermaine, thank you for your reply.

I will study this solution, but as far as I know it might be highly dependant on the encoder used for streaming, isn’t it ? For example I don’t think OBS provides such a feature and some of our clients use it.
