Wowza Community

How to live stream a m3u8 playlist

I’m trying to live stream a playlist of mp4 files. Then I wrote a playlist like this:

#EXTM3U

#EXTINF:1,My_Recording1.mp4

mp4:My_Recording1.mp4

#EXTINF:2,My_Recording2.mp4

mp4:My_Recording2.mp4

#EXTINF:3,My_Recording3.mp4

mp4:My_Recording3.mp4

#EXTINF:4,My_Recording4.mp4

mp4:My_Recording4.mp4

#EXTINF:5,My_Recording5.mp4

mp4:My_Recording5.mp4

and I saved it on /usr/local/WowzaStreamingEngine/content/ . I want to reach a result like this: rtmp://MY-IP/vod/mp4:My_Recording5.mp4 , that I streamed with success with Wowza and jwplayer.

If I try to use rtmp://MY-IP/vod/mp4:3laylist.m3u8 it doesn’t work.

I also read this how to: https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher but I must confess that I haven’t understood the instructions. In particular I’ve some questions:

1st) In which folder I’ve to save the smil playlist? The smil playlist is XML and I think it’s equivalent to a jwplayer static playlist.

2nd) Considering that I need to stream the contents with jwplayer, why an address like this rtmp://MY-IP/vod/mp4:3laylist.html doesn’t works? How I can reach the result?

3rd) Are there any working examples or a tutorials for this specific purpose?

Hello there and welcome to the Wowza support forum.

I am not exactly sure what you are trying to do here, so I will cover what I can.

First, and rtmp playback URL would look like this:

rtmp://[wowza-ip]:1935/vod/mp4.My_Recording1.mp4

An iOS URL would look like this:

http://[wowza-ip-address]:1935/vod/My_Recording1.mp4/playlist.m3u8

And a .smil URL for iOS playback:

http://[wowza-ip-address]:1935/vod/smil:streamschedule.smil/playlist.m3u8

Here is a guide for using JW Player with Wowza:

How to use JW Player with Wowza Streaming Engine

Also, by default, Wowza is configured to use /content as the storage location for .smil, .stream and .mp4 files. So this would be where you would put the .smil file if you have not modified the in your Application.xml file

NOTE: Wowza will not accept TS chunks as an input source

I hope this helps you get this working.

Kind regards,

Salvadore

Okay, so you are trying to re-stream recordings as a live stream.

The recordings need to be located in the [install-dir]/content folder along side the streamschedule.smil

You will configure a “Live” application by following this guide. Read the guide carefully, there are no steps to skip. The .smil will be named streamschedule.smil by default, and located along side the .mp4 files in the /content folder:

How to schedule streaming with Wowza Streaming Engine (ServerListenerStreamPublisher)

Then the .smil file will look like this:

<smil>
    <head>
    </head>
    <body>
        <stream name="Stream1"></stream><playlist name="pl1" playOnStream="Stream1" repeat="true" scheduled="2013-09-25 16:00:00" >
        <video src="mp4:My_Recording1.mp4" start="0" length="-1"/>
        <video src="mp4:My_Recording2.mp4" start="0" length="-1"/>
        <video src="mp4:My_Recording3.mp4" start="0" length="-1"/>
</playlist>
  </body>
</smil>

And since we said playOnStream=“Stream1” Stream1 will be the stream name

So to play the stream back we will use

For RTMP player:

Server: rtmp://[wowza-address]:1935/[B]live[/B]
Stream: Stream1

And for iOS playback:

http://[wowza-address]:1935/[B]live[/B]/Stream1/playlist.m3u8

Remember you are using a live application here, not vod. And you only use /playlist.m3u8 in the URL for iOS devices

I hope this is clear.

Thank you,

Salvadore

well, let me say what I did, because I think that something is wrong in the syntax of m3u8 and/or smil file.

This is my smil

<smil>
    <head>
    </head>
    <body>
        <stream name="Stream1"></stream>
        
        <playlist name="pl1" playOnStream="Stream1" repeat="true" >
            <video src="rtmp://My_WOWZA_IP:1935/vod/mp4:My_Recording1.mp4"/>
            <video src="rtmp://My_WOWZA_IP:1935/vod/mp4:My_Recording2.mp4"/>
            <video src="rtmp://My_WOWZA_IP:1935/vod/mp4:My_Recording3.mp4"/>
			<video src="rtmp://My_WOWZA_IP:1935/vod/mp4:My_Recording4.mp4"/>
			<video src="rtmp://My_WOWZA_IP:1935/vod/mp4:My_Recording5.mp4"/>
        </playlist>
    </body>
</smil>

and this is my m3u8

#EXTM3U
#EXTINF:1,My_Recording1.mp4
rtmp://My_WOWZA_IP:1935/vod/mp4:My_Recording1.mp4
#EXTINF:2,My_Recording2.mp4
rtmp://My_WOWZA_IP:1935/vod/mp4:My_Recording2.mp4
#EXTINF:3,My_Recording3.mp4
rtmp://My_WOWZA_IP:1935/vod/mp4:My_Recording3.mp4
#EXTINF:4,My_Recording4.mp4
rtmp://My_WOWZA_IP:1935/vod/mp4:My_Recording4.mp4
#EXTINF:1,My_Recording5.mp4
rtmp://My_WOWZA_IP:1935/vod/mp4:My_Recording5.mp4

the playback url is this:

rtmp://My_WOWZA_IP:1935/vod/smil:playlist.smil/mp4:playlist.m3u8

for testing purpose I also used 5 mp4 of three or four seconds. But the playlist won’t play.

I’m wondering if this problem is related to the smil/m3u8 files or to the short lenght of the movies.