Skip to main content
January 25, 2010
Question

Dual Buffering problem at FMS 3.5

  • January 25, 2010
  • 2 replies
  • 2469 views

I am trying to configure Flash Media Server to support dual Buffer Strategy. I have read lot of posts here, but no answers.

Audio 80Kb live broadcast.

I want to quick start play after 2 seconds and then expand buffer to 10seconds.

Dual Buffering Strategy.

When i test wowza 2.0 it works like a charme.

But if i test the same player code with FMS 3.5 it quick start play but instead of expand buffer it empty 10s buffer...

What is wrong? Why can i play at wowza and not with FMS3.5?

WOWZA 2.0:

TIMER EVENT

BUFFER LENGTH: 11.215

BUFFER TIME: 9.9

TIMER EVENT

BUFFER LENGTH: 11.215

BUFFER TIME: 9.9

TIMER EVENT

BUFFER LENGTH: 11.169

BUFFER TIME: 9.9

...

FMS 3.5:

FMS 3.5

BUFFER LENGTH: 9.253

BUFFER TIME: 9.9

TIMER EVENT

BUFFER LENGTH: 7.212

BUFFER TIME: 9.9

TIMER EVENT

BUFFER LENGTH: 5.257

BUFFER TIME: 9.9

TIMER EVENT

BUFFER LENGTH: 3.217

BUFFER TIME: 9.9

TIMER EVENT

BUFFER LENGTH: 1.203

BUFFER TIME: 9.9

Why this behaviour?

I Want to use FMS3.5 but with this issue i will have to change to WOWZA if not solved

    This topic has been closed for replies.

    2 replies

    Participant
    February 4, 2010

    Hello,

    This was exactly my problem Henry. With Wowza didn't have to change nothing and the behavior was what i was expecting. The live broadcast starts imediatly and the buffer is something like 8s-10s. With FMS i simple couldn't do it, just with DVR.

    Jay : "Let's look at it from the other direction... why are you trying to create delay on the live stream?"

    I now the concern jay mentioned about the low latency aspect  but sometimes low latency is not an issue, live broadcast without any kind of cuts , yes that's an issue that is important for me. Ok BUFFER of 30s = LATENCY of 30s but if someone unplugs the network cable i want that the live broadcast should be able to play for 30s, this means that the application can be more stable with several bandwidth fluctuations.

    The main question is, how to avoid cuts on the live audio stream and have a low latency ?

    What's the point of this article ? Does this article http://www.adobe.com/devnet/flashmediaserver/articles/fms_dual_buffering.html really solve this issue ? For me it didn't, I'm streaming an AAC feed with FMLE and set initial buffer 2s; extended buffer 15s and the buffer length was always

    1.7

    1.8

    2.1

    1.9

    ...

    It never raised to 15s

    For me to have a extended buffer of 15s it means that we have to make some kind of latency of 15s in the live broadcast, and the "low latency" settings that come by default with FMS simple make this scenario...not possible.

    The solution

    Ok now I've implemented the DVR (checked the box on FMLE for DVR Recording...etc...etc...and had to change the code on the player to play the DVR stream ) Now it starts to play on the fly and with a buffer of 20s ..... But why did i had to implement this feature ? What are the negative impacts on the FMS Server ? Doesn't this solution is specific for seeking and going back on the audio features ? I don't know..in fact it solved my problem but will i have performance issues on the FMS server ? Will it store the broadcast indefinitely ?? should I be worried ?

    It feels that just for a solution as simple as an extended  buffer of 15s with an instant play on the flash player should be easier to implement.

    Appreciate any feedback and tks for the post

    pemicabe

    February 5, 2010

    Hi pemicabe did you try other options like open frameworks?

    This seems to fit your needs:

    http://openvideoplayer.sourceforge.net/ovpfl/docs/asdocs/org/openvideoplayer/net/OvpNetStream.html#useFastStartBuffer

    or

    http://opensource.adobe.com/wiki/display/osmf/Open+Source+Media+Framework;jsessionid=1EDD03B873B826159BB68D4B5B29D8A8

    Flash says that the tutorial works but i only have tested successfully with wowza. Every is complaining about that adobe don't give answers...

    DVR is nice but it takes a lot of server resources...

    Best Regards
    February 8, 2010

    "DVR is nice but it takes a lot of server resources..." That's my problem!


    Ok it supports mpeg4 with mp4:stream.f4v even AAC with mp4:


    If there are Tutorials with Dual Buffer strategy how can we implement it in FMS 3.5?


    It is not supported?


    Why with queue activated the buffer length became empty?


    I have try Open Player such akamai that you suggest but same problem.


    This is a Flash Media Server bug or a not feature list removed somewhere in time or with new version. Maybe Buffer exploit correction or something like that ...

    January 25, 2010

    You'll never be able fill the extended buffer with a live stream. Being able to buffer in advance once the stream starts playing would be impossible Doing so would require that the stream come in faster than real time, which is impossible with a live stream.

    January 25, 2010

    Ok Jay but this works in Wowza?

    At FMS i am delayint it:

    <Queue enabled="true">
               
                    <MaxQueueSize>101376</MaxQueueSize>
                   
                    <MaxQueueDelay>9900</MaxQueueDelay>
                                                              -->
                    <FlushOnData>true</FlushOnData>
           
                    <AggregateMessages enabled="true">
               
                    </AggregateMessages>
                </Queue>

    Or i have to delay in Flash Media Live Encoder?

    And how can i do that?

    Asa_-_FMS
    Adobe Employee
    Adobe Employee
    January 25, 2010

    Jay is correct that you can't deeply buffer a live stream without waiting.  The way that works in an alternative case is that the stream contains significant latency (enough to buffer up) so you're really behind the times in this case.  FMS doesn't do this for live as we support a minimal latency configuration, however there's a richer more effecitve feature to accomplish your desired effect here.

    FMS' DVR feature provides the ability for users to not only prebuffer an appearing live content, but rewind, record, and pause.  Check it out as it's likely something that will offer a more compelling experience overall here.


    Asa