# Using two different FMLE encoders for a live backup workflow

**URL:** <https://community.wowza.com/t/using-two-different-fmle-encoders-for-a-live-backup-workflow/45963>\
**Category:** Wowza Streaming Engine\
**Created:** [September 14, 2015, 1:48pm UTC](https://community.wowza.com/t/using-two-different-fmle-encoders-for-a-live-backup-workflow/45963 "2015-09-14T13:48:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giacomo\_Aschacher](https://avatars.discourse-cdn.com/v4/letter/g/977dab/32.png) [@Giacomo\_Aschacher](https://community.wowza.com/u/Giacomo_Aschacher)\
**Post date:** [September 14, 2015, 1:48pm UTC](https://community.wowza.com/t/using-two-different-fmle-encoders-for-a-live-backup-workflow/45963/1 "2015-09-14T13:48:13Z")

</div>

Hi, how to configure Wowza to automatically ingest a backup live rtmp stream using a secondary FMLE Encoder on the same Live HLS/cupertino configuration? This is a possible scenario: I have two live encoders on two different machines. The primary encoder freezes because an hardware error, the wowza livestreaming automatically ingest the backup stream without almost any client issue.

Is it possible something like that with Wowza?

Thanks

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [September 14, 2015, 11:14pm UTC](https://community.wowza.com/t/using-two-different-fmle-encoders-for-a-live-backup-workflow/45963/2 "2015-09-14T23:14:46Z")

</div>

Hi,

One way you can do this is to send both of the FMLE streams in with different stream names, then use this [loop-until-live module work flow.](https://www.wowza.com/docs/how-to-loop-a-pre-roll-until-a-live-stream-starts-loopuntillive)

In this case the backup live stream would be the looped schedule stream (in place of the usual mp4 looped file), and the primary live stream would be the actual live source. The primary would always override the secondary, then when the primary goes away, the secondary will take over and the stream name would stay the same.

Daren

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [September 16, 2015, 11:45pm UTC](https://community.wowza.com/t/using-two-different-fmle-encoders-for-a-live-backup-workflow/45963/3 "2015-09-16T23:45:23Z")

</div>

Hi,

Make sure you setup the [scheduler](https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher%28StreamPublisher%29)

and add the backup live stream to the scheduled play list. That would be Stream1 in the scheduler (you can rename that if you like). Then add that stream name to the loopUntilLiveOutputStreams property. When you send in the backup stream, that will stream constantly until you start the primary stream.

The primary stream should take over and continue to stream. Then when the primary stream goes away for some reason, the secondary stream will be switched in.

Daren

---

<div class="post-metadata">

**Author:** ![Giacomo\_Aschacher](https://avatars.discourse-cdn.com/v4/letter/g/977dab/32.png) [@Giacomo\_Aschacher](https://community.wowza.com/u/Giacomo_Aschacher)\
**Post date:** [September 16, 2015, 12:28pm UTC](https://community.wowza.com/t/using-two-different-fmle-encoders-for-a-live-backup-workflow/45963/4 "2015-09-16T12:28:00Z")

</div>

Hi,

thanks for your answer. I add the loop-until-live module to my live application and I configured the property using loopUntilLiveSourceStream with my primary stream and loopUntilLiveOutputStream with my backup stream. Then? I need to create a smil or what?
