# Live stream backup/alternative source

**URL:** https://community.wowza.com/t/live-stream-backup-alternative-source/33760
**Category:** Wowza Streaming Engine
**Created:** [August 30, 2012, 2:23am UTC](https://community.wowza.com/t/live-stream-backup-alternative-source/33760 "2012-08-30T02:23:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Tomas\_Alkyras](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@Tomas\_Alkyras](https://community.wowza.com/u/Tomas_Alkyras)
#### Post date: [August 30, 2012, 2:23am UTC](https://community.wowza.com/t/live-stream-backup-alternative-source/33760/1 "2012-08-30T02:23:09Z")

</div>

I guess this should be covered many times but it is not working for me.

I have Wowza 2 server and 2 origin servers: origin1 and origin2, is it possible to enable a backup/alternative source origin2 ? If origin1 fails, servers starts streaming from from origin2 source.

I’ve seen this is possible with live repeater via content file live.stream , simply piping (origin1.stream|origin1.stream) but this is not work for me if origin 2 is direct source, but not live repeater (it failed for me even if it has setup as live repeater).

- Is any way to this simply through piping with no live repeaters?
- Maybe this is possible via modules/addons?
- I also need, that if origin1 recovers, that streaming starts back from origin1 aftter some time
- If seen that via piping it takes 12 seconds, is it possible to lower that time span?
- Maybe I should do that simply in Flash player via playlist?

---

<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: [August 30, 2012, 10:39am UTC](https://community.wowza.com/t/live-stream-backup-alternative-source/33760/2 "2012-08-30T10:39:40Z")

</div>

Yes, you can add pipe separated URLs in the Application.xml /originURL. And you can use pipe separated URLs in a .stream file, in which case each includes rtmp url + stream name

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: [August 30, 2012, 10:42am UTC](https://community.wowza.com/t/live-stream-backup-alternative-source/33760/3 "2012-08-30T10:42:20Z")

</div>

Also, #3 is not going to happen.

You can reduce time to failover by adding this Property to the Application.xml /MediaCaster Properties list:

```auto
<Property>
	<Name>streamTimeout</Name>
	<Value>12000</Value>
	<Type>Integer</Type>
</Property>

```

The above is set to default 12 seconds (12000 milliseconds)

Richard

---

<div class="post-metadata">

### Author: ![Tomas\_Alkyras](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@Tomas\_Alkyras](https://community.wowza.com/u/Tomas_Alkyras)
#### Post date: [August 30, 2012, 11:22am UTC](https://community.wowza.com/t/live-stream-backup-alternative-source/33760/4 "2012-08-30T11:22:56Z")

</div>

Thank you for quick response. I will try once more.

Maybe piping failed because of version 2.x ?
