Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: On demand playback vs. 'live' streaming of a static file

  1. #1
    Join Date
    Jun 2012
    Posts
    17

    Default On demand playback vs. 'live' streaming of a static file

    Our usage scenario requires to have many users (from a few to hundreds) watching together, in sync, the same recorded media file (usually 100s MB in size). Right now we use an on-demand app and, by remotely controlling the user's player, we start/pause/seek the video file playback for everybody at the same time.
    The question: is this the most efficient way (server load, disk usage, performance etc) of doing it or maybe I should try to create a 'live' stream from the static file and have the users pulling this stream? Would be this approach significantly better, any drawbacks/concerns? I've seen some posts about building a stream from a static file but if this solution makes sense I would appreciate a hint from where to start. Thanks.

  2. #2

    Default

    Creating a live stream using the VOD file is the simplest. It will automatically ensure everyone is watching at the same point in time. See this SMIL schedule method.

  3. #3
    Join Date
    Jun 2012
    Posts
    17

    Default

    Ok, thanks. 2 questions please:
    - I need to be able to programatically control (no SMIL, schedule,play list) start/pause/seek the stream for all, in sync; would this be possible using the Steam class/controller & related API?
    - would this method be better (performance,resources) that using on-demand playback? is it worth the effort?

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

    Default

    You can control this type of stream dynamically, and you should be able to emulate the effect of seek by starting a new clip on a stream with a start value of what you would seek to. Take a look at this example as a very simple starting place
    http://www.wowza.com/forums/content....eam-controller

    Also take a look at this example:
    http://www.wowza.com/forums/content....tching-example

    Richard

  5. #5
    Join Date
    Jun 2012
    Posts
    17

    Default

    Thanks. But again, would this solution be easier on server than the current on-demand playback for a large audience?? Please see above our usage scenario.
    The reason I start thinking about this is to find a workaround for the issue we were having when playing back MP4s (described here http://www.wowza.com/forums/showthre...-usage-pattern , we have a ticket opened for it).
    Unless we use MP4s, the current implementation (using synced on-demand playback) worked fine for the last 2-3 years so i need a very good reason to start working on a new solution. Would this help to avoid the above mentioned issue, would be more efficient on server?

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

    Default

    If everyone is watching at the same time, it can be used in your case I think.

    Richard

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

    Default

    Also, we think the essential problem is old CPU. Upgrading to more recent hardware should fix the problem

    Richard

  8. #8
    Join Date
    Jun 2012
    Posts
    17

    Default

    I'm sorry Richard but none of us seems to be convinced. Let me ask the question in a different way.
    The app must let 100 persons watch at the same time, in sync, a long prerecorded video file (the play will start for all at the same time, from the same point; the video can be paused or seeked for all at the same time) via RTMP.

    Question 1: What solution Wowza would recommend:
    a) use an on-demand playback app and have each player issue play, seek etc
    or
    b) create a live stream from the file and have all the clients playing the published stream; in this case the control would be implemented via the Stream on the server side

    Question 2: Why?

    Again we have a) implemented right now and I'm not looking for more work and do b) only to get the same thing (in terms of performance, server load, etc) or worse. Thanks.

  9. Default

    It seems you've solved the problem yourself, unless you need to make absolutely sure that the stream only plays when you want it to, because that seems to be the only upside to having it as a live stream.

  10. #10
    Join Date
    Jun 2012
    Posts
    17

    Default

    I would appreciate if someone from Wowza would answer my question from the last post. Thank you.

Page 1 of 2 12 LastLast

Posting Permissions

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