# How to live stream a m3u8 playlist

**URL:** <https://community.wowza.com/t/how-to-live-stream-a-m3u8-playlist/44290>\
**Category:** Wowza Streaming Engine\
**Created:** [November 19, 2014, 3:42am UTC](https://community.wowza.com/t/how-to-live-stream-a-m3u8-playlist/44290 "2014-11-19T03:42:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francesco\_Parisi](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@Francesco\_Parisi](https://community.wowza.com/u/Francesco_Parisi)\
**Post date:** [November 19, 2014, 3:42am UTC](https://community.wowza.com/t/how-to-live-stream-a-m3u8-playlist/44290/1 "2014-11-19T03:42:29Z")

</div>

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](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?

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [November 19, 2014, 7:26am UTC](https://community.wowza.com/t/how-to-live-stream-a-m3u8-playlist/44290/2 "2014-11-19T07:26:24Z")

</div>

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:

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

```

An iOS URL would look like this:

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

```

And a .smil URL for iOS playback:

```auto
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](https://www.wowza.com/docs/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

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [November 20, 2014, 6:06am UTC](https://community.wowza.com/t/how-to-live-stream-a-m3u8-playlist/44290/3 "2014-11-20T06:06:36Z")

</div>

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)](https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher)

Then the .smil file will look like this:

```auto
<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:

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

```

And for iOS playback:

```auto
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

---

<div class="post-metadata">

**Author:** ![Francesco\_Parisi](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@Francesco\_Parisi](https://community.wowza.com/u/Francesco_Parisi)\
**Post date:** [November 20, 2014, 2:56am UTC](https://community.wowza.com/t/how-to-live-stream-a-m3u8-playlist/44290/4 "2014-11-20T02:56:39Z")

</div>

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

```auto
<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

```auto
#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:

```auto
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.
