Wowza Community

Streampublisher and M3U8s


I’m trying to create a 24/7 livestream where Wowza can passthrough a livestream from another source on a schedule, and loop an mp4 while the show is “offline”.

This is pretty easy just dealing with .mp4 files, but I’m trying to get a livestream shoved in the middle.

What you are trying can be achieved in two or more ways.

  1. You can publish static content as live stream. So basically whenever you stop the live stream you switch to publishing the static content as live stream with same stream name.

  2. You can use a player that can detect end of the live stream and show a mp4 to the client till it gets notified of stream publish again. Even if the stream does not unpublish you can still make the player show other content on demand or at a certain time.

I believe what you are trying to do is like putting ad rolls in between of a live program or like a video roll when the stream is not available.

Would that be as easy as adding a video source to a playlist in the SMIL file? Something like:

 <video src="mp4:video1.mp4" start="0" length="-1"/>
 <video src="m3u8:video2.m3u8" start="0" length="-1"/>

Yes, that’s exactly how it works with our StreamPublisher Module that includes Loop Until Live. You add a SMIL file and when an encoder disconnects, it automatically switches to the mp4 and will loop until a live encoder connects. Some people just use it to play one mp4 as live over and over, others have it switch from mp4 to mp4 based on the order in the SMIL file. Point being you can use it with live and mp4s or all mp4s.

Here is the doc for you:

And also I made a complete tutorial on how to set up stream publisher and the SMIL file:

Here is another tutorial that show you how to use to build an mp4 tv station on a schedule!