Results 1 to 4 of 4

Thread: How to live stream a m3u8 playlist

  1. #1

    Default 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: http://www.wowza.com/forums/content.php?145 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?
    Last edited by Francesco Parisi; 11-19-2014 at 04:44 AM.

  2. #2

    Default

    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 <StorageDir> 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

  3. #3

    Default

    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.

  4. #4

    Default

    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/live
    Stream: Stream1
    And for iOS playback:
    http://[wowza-address]:1935/live/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

Similar Threads

  1. Is It Possible To Live Repeat From A Cupertino Playlist *.m3u8 ?
    By claudio in forum Tutorials Discussion
    Replies: 3
    Last Post: 05-20-2013, 06:09 AM
  2. Replies: 1
    Last Post: 11-27-2012, 07:46 AM
  3. no rtmp stream only playlist.m3u8
    By cochin007 in forum General Forum
    Replies: 5
    Last Post: 07-08-2012, 05:52 AM
  4. Replies: 5
    Last Post: 11-16-2011, 10:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •