# Urgent: Crypt Live Stream or play file during World Cup game

**URL:** <https://community.wowza.com/t/urgent-crypt-live-stream-or-play-file-during-world-cup-game/39836>\
**Category:** Wowza Streaming Engine\
**Created:** [June 25, 2014, 10:13am UTC](https://community.wowza.com/t/urgent-crypt-live-stream-or-play-file-during-world-cup-game/39836 "2014-06-25T10:13:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdou\_Gueye](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Abdou\_Gueye](https://community.wowza.com/u/Abdou_Gueye)\
**Post date:** [June 25, 2014, 10:13am UTC](https://community.wowza.com/t/urgent-crypt-live-stream-or-play-file-during-world-cup-game/39836/1 "2014-06-25T10:13:15Z")

</div>

We’re broadcasting about TV signal via IP using Wowza Server.

We bought broadcasting right for the Word Cup but it’s only valid within our country territory.

For this reason we would like an automatic solution to fallback (play another video) or stop streams during such hours.

We have Wowza Transcoder turned ON.

Thanks

---

<div class="post-metadata">

**Author:** ![J\_van\_Marion](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@J\_van\_Marion](https://community.wowza.com/u/J_van_Marion)\
**Post date:** [June 25, 2014, 7:45pm UTC](https://community.wowza.com/t/urgent-crypt-live-stream-or-play-file-during-world-cup-game/39836/2 "2014-06-25T19:45:34Z")

</div>

Hi ilimaan. i havent tried this yet. but this might help you? or give you a start in the right direction.

[https://www.wowza.com/docs/how-to-loop-a-pre-roll-until-a-live-stream-starts-loopuntillive](https://www.wowza.com/docs/how-to-loop-a-pre-roll-until-a-live-stream-starts-loopuntillive)

this might help too: [https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher](https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher)

---

<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 28, 2014, 5:11am UTC](https://community.wowza.com/t/urgent-crypt-live-stream-or-play-file-during-world-cup-game/39836/3 "2014-06-28T05:11:16Z")

</div>

You are using -2 as the start value for a file, which is not correct. A start value of “-2” tells Wowza that the source is a live stream rather than a file. When it is a file, use “0” or a positive number less than the length of the video.

Richard

---

<div class="post-metadata">

**Author:** ![Abdou\_Gueye](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Abdou\_Gueye](https://community.wowza.com/u/Abdou_Gueye)\
**Post date:** [June 26, 2014, 4:36am UTC](https://community.wowza.com/t/urgent-crypt-live-stream-or-play-file-during-world-cup-game/39836/4 "2014-06-26T04:36:07Z")

</div>

Thank you very much for getting back to us.

I think ServerListenerStreamPublisher would be OK. Can you give me any usage example to publish over (duplicate) the live streamname? (I can allow duplicate stream name for this application)

> Hi ilimaan. i havent tried this yet. but this might help you? or give you a start in the right direction.
> 
> [Loop a pre-roll until a live stream starts](https://www.wowza.com/docs/how-to-loop-a-pre-roll-until-a-live-stream-starts-loopuntillive)
> 
> this might help too: [Schedule streaming](https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher)

---

<div class="post-metadata">

**Author:** ![Abdou\_Gueye](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Abdou\_Gueye](https://community.wowza.com/u/Abdou_Gueye)\
**Post date:** [June 26, 2014, 11:15am UTC](https://community.wowza.com/t/urgent-crypt-live-stream-or-play-file-during-world-cup-game/39836/5 "2014-06-26T11:15:46Z")

</div>

I’m trying to use StreamPublisher to do this. I have this configuration in application.xml:

> streamPublisher
> 
> Schedules streams and playlists.
> 
> com.wowza.wms.plugin.collection.module.ModuleStreamPublisher
> 
> Root/Application
> 
> streamPublisherSmilFile
> 
> String
> 
> rts1.smil
> 
> Root/Application
> 
> streamPublisherSwitchLog
> 
> Boolean
> 
> true

For the smil file part, I’m thinking about two possibilities:

1. Use a video file with the StreamPublisher to schedule a streamname duplicate (by allowing this fror this application) from 16:00:00 to 17:00:00 and stop it after that time.

To have this option work, what should I change in this config:

> 

1. Use two Live sources, The TV signal and a Video in loop published by ffmpeg, and schedule Video in Loop to play from 16:00:00 to 17:00:00 and Live Source for the rest of time.

To have this work, what should I change in this config?:

> 

Please any help would be really appreciated?

---

<div class="post-metadata">

**Author:** ![Abdou\_Gueye](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Abdou\_Gueye](https://community.wowza.com/u/Abdou_Gueye)\
**Post date:** [June 27, 2014, 2:47am UTC](https://community.wowza.com/t/urgent-crypt-live-stream-or-play-file-during-world-cup-game/39836/6 "2014-06-27T02:47:28Z")

</div>

If there anyone to help with this?

---

<div class="post-metadata">

**Author:** ![Abdou\_Gueye](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Abdou\_Gueye](https://community.wowza.com/u/Abdou_Gueye)\
**Post date:** [July 11, 2014, 7:50am UTC](https://community.wowza.com/t/urgent-crypt-live-stream-or-play-file-during-world-cup-game/39836/7 "2014-07-11T07:50:37Z")

</div>

Thank you. I got it worked perfectly!

---

<div class="post-metadata">

**Author:** ![J\_van\_Marion](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@J\_van\_Marion](https://community.wowza.com/u/J_van_Marion)\
**Post date:** [June 26, 2014, 10:08pm UTC](https://community.wowza.com/t/urgent-crypt-live-stream-or-play-file-during-world-cup-game/39836/8 "2014-06-26T22:08:19Z")

</div>

hi ilimaan,

i havent tried it out yet. i just used the search box on the forum for a solution for you;). Dont have time this week to test things out for you. I hope someone from wowza support can jump in here.
