Results 1 to 8 of 8

Thread: How to do adaptive bitrate for live streaming apps

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2014
    Posts
    4

    Default How to do adaptive bitrate for live streaming apps

    Hi... I'm new with Wowza, i am followed the tutorial here http://www.wowza.com/forums/content....rate-streaming, i'am using Wowza 4.0.3 (updated) with jwplayer premium, but its not worked, here's my code with jwplayer

    <div id='playerId'></div>
    
    <script type='text/javascript'>
        jwplayer("playerId").setup({
            playlist: [{
                image: "http://www.indonesiakaya.com/rtmp/gik-livestreaming-cover.jpg",
               
                    file: "http://202.158.39.140:1935/live/smil:myStream.smil/playlist.m3u8",
            
            }],
            width: '640',
            height: '360',
            primary: "flash",
            plugins: {
               'qualitymonitor-2': {}
            }
        });
    </script> 
    i did change the atribute file to http://202.158.39.140:1935/live/smil.../jwplayer.smil (with smil file) but the same issue occur.

    Thanks in advance.

    Regards,
    Janitra Panji

  2. #2

    Default

    Hi there,
    It looks like you are missing a bit of code here. Try it like this:
    <script type="text/javascript">
      jwplayer('mediaplayer').setup({
        'flashplayer': 'player.swf',
        'id': 'playerID',
        'width': '720',
        'height': '306',
        'playlistfile': 'http://202.158.39.140:1935/live/smil:myStream.smil/jwplayer.smil',
        'plugins': {
           'qualitymonitor-2': {}
        }
      });
    </script>
    Take a look at this guide for more detailed explanations:
    How to use JW Player with adaptive bitrate streaming from Wowza Streaming Engine

    Salvadore

  3. #3
    Join Date
    May 2014
    Posts
    4

    Default

    Hi Salvadore
    Quote Originally Posted by salvadore View Post
    Hi there,
    It looks like you are missing a bit of code here. Try it like this:
    <script type="text/javascript">
      jwplayer('mediaplayer').setup({
        'flashplayer': 'player.swf',
        'id': 'playerID',
        'width': '720',
        'height': '306',
        'playlistfile': 'http://202.158.39.140:1935/live/smil:myStream.smil/jwplayer.smil',
        'plugins': {
           'qualitymonitor-2': {}
        }
      });
    </script>
    Take a look at this guide for more detailed explanations:
    How to use JW Player with adaptive bitrate streaming from Wowza Streaming Engine

    Salvadore
    Still remains an error.
    I get an error message from jwplayer "No playable sources found", I change the attributes playlistfile with files, and add the attribute source, but still have an error with messages "ID Not found on server".

    Janitra

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    First, that method of getting the .smil file from Wowza works with JW player's RTMP Dynamic Streaming implementation. For HLS streaming with JW Player you need to refer directly to the .m3u8 file. However HLS streaming with JW Player is only supported in some versions and license types and in different ways. For HLS streaming to the desktop you need JW Player 6 and the Premium or Enterprise license. For HLS streaming to iOS devices using JW Player, I think you can use JW Player 5 and up and any license type, but this is really just using the HTML5 video tag when playing on iOS devices. So depends on what you are trying to do and what version and license type you have for JW Player.

    Testing your HLS url (http://202.158.39.140:1935/live/smil:myStream.smil/playlist.m3u8) in VLC, and downloading the playlist.mu38 and its chunklistxx.m3u8 files, it seems like myStream_200, myStream_350 and myStream_500 are not live at the moment.

    btw, the qualitymonitor is a JW Player 5 plugin that does not work in JW Player 6 and I think it is only relevant to RTMP dynamic streaming. There is an example of how to do this with their javascript API in this article

    VLC is great for testing HLS playback because you can test locally on the same machine instead of device, and you can see data in Tools > Codec Info.

    Richard

  5. #5
    Join Date
    May 2014
    Posts
    4

    Default

    Quote Originally Posted by rrlanham View Post
    Testing your HLS url (http://202.158.39.140:1935/live/smil:myStream.smil/playlist.m3u8) in VLC, and downloading the playlist.mu38 and its chunklistxx.m3u8 files, it seems like myStream_200, myStream_350 and myStream_500 are not live at the moment.

    btw, the qualitymonitor is a JW Player 5 plugin that does not work in JW Player 6 and I think it is only relevant to RTMP dynamic streaming. There is an example of how to do this with their javascript API in this article

    VLC is great for testing HLS playback because you can test locally on the same machine instead of device, and you can see data in Tools > Codec Info.

    Richard
    Hi richard,

    I try with my VLC player, but Still have an error :\, here's my error messages:
    VLC can't recognize the input's format:
    The format of 'http://202.158.39.140:1935/live/smil:myStream.smil/playlist.m3u8' cannot be detected. Have a look at the log for details.

    whats the problem? I'am very confused :|

    Thanks.
    Janitra

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Janitra,

    When I look at your smil I see the underlying streams (myStream_200, myStream_350 and myStream_500) which I have tried to play and are not working.

    So first thing is to test these streams one at a time in a the Wowza RTMP test player. One step at a time. This is my test in the Wowza RTMP test player:

    rtmp://202.158.39.140:1935/live
    myStream_200

    I tried rtmp://202.158.39.140:1935/live/myStream_200 in ffprobe and it reports "NetStream.Play.StreamNotFound".

    If you are publishing 3 streams from an encoder, you might not have the bandwidth on the encoder side. The best solution for this is to use the Wowza Transcoder so you can send one higher quality stream, and transcode to several renditions which will always be key frame aligned, which is a requirement for ABR streaming.

    Richard

Similar Threads

  1. VOD adaptive bitrate streaming
    By oferhe in forum Live Streaming and Encoders
    Replies: 2
    Last Post: 04-01-2014, 03:51 PM
  2. WOWZA HTTP adaptive bitrate Live Streaming with JWPlayer6
    By elduran in forum Live Streaming and Encoder Discussion
    Replies: 14
    Last Post: 12-05-2013, 03:30 PM
  3. Live Adaptive Bitrate streaming using different H.264 profiles
    By MSR123 in forum Live Streaming and Encoder Discussion
    Replies: 4
    Last Post: 03-26-2012, 07:01 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
  •