Same RTMP stream in two different applications

Hi,

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

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.

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

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.