7 Replies Latest reply: Apr 15, 2010 9:41 AM by Jody Bleyle RSS

    buffer grows without proportion until browser crashes.

    Syberkitten Community Member

      We are experiences a phenomena that flash clients connecting to a live (pre recoreded)

      stream served from FMS (we use 3.5.2), have their buffer grow out of proportion..

       

      it is also accompanied mostly with a complete video freeze, until the browser crashes.

       

      (you can expect a crash after having more then 4000 seconds of video buffer active in memory)

       

      The more we switch streams via a playlist,

      the more this seems to happen,

       

      Thus, streaming long video feeds keeps the system stable, but when injecting

      feeds into a main stream and switching back increases the probability

      of this happening.

       

      is there any way to prohibit the flash player from reaching enourmous buffers length's?

      should we try using play2?

      any ideas?....

        • 1. Re: buffer grows without proportion until browser crashes.
          Janaki Lakshmikanthan Employee Hosts

          HI,

          This looks like a serious issue if it is so. Pls provide with the below information to nail down.

          * Which Flash Player version are you on?

          * Which OS?

          * What is the bufferTime set in your client application

          * What is the type of stream you are playing? audio and video codec?

          * What is the keyframe interval of that stream played?

          * Which property where you refering to the buffer length? Did your bufferLength property returned value more than 4000?

           

          "but when injecting feeds into a main stream and switching back increases the probability of this happening. " - What do you mean by this? Could you pls elaborate?

           

          Regards,

          Janaki L

          • 2. Re: buffer grows without proportion until browser crashes.
            Syberkitten Community Member

            hi and thanks for the introspection, let me try

            to provide the information you asked:

             

            * Which Flash Player version are you on?

                 - The Client runs Flash Player 10 + (mostly latest releases)

             

            * Which OS?
                 - The server is running on centOS 5 machine (dedicated).

             

            *  What is the bufferTime set in your client application
                 - in client we set bufferTime = 5, in server we set (streamInstance).setBufferTime(5);

             

            * What is  the type of stream you are playing? audio and video codec?
                 - H.264 Video Feeds / Audio ACC - using ffmpeg

             

            * What  is the keyframe interval of that stream played
                 - I'm not sure, not dealing with it.

             

            * Which property  where you refering to the buffer length? Did your bufferLength property  returned value more than 4000?
                      - the bufferLength seems to grow and it can reach 4000 and more basically until browser crashes or the page is refreshed.

             

            I made a small fix which is inelegant checking for bufferLength>x and issuing a togglePause(), then resume() (on the client app)
            which brings the stream back to normal buffer, but it is not an acceptable solution for us, as it creates a bad user experience.

             

            "but when injecting feeds into a main stream and switching back  increases the probability of this happening. " - What do you mean by  this? Could you pls elaborate?"
                 - the idea is simply, we create a playlist of items, some of them we play from begining to end and others we play segmented.
                      the user exprience is seamless, they are viewing one long broadcast (in other words main item with commercials).

             

            please let me know if i can provide any other details,

            and thanks again

            • 3. Re: buffer grows without proportion until browser crashes.
              Jody Bleyle Community Member

              I think you may be seeing an issue that can be fixed by using the NetStream.bufferTimeMax property:

              http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.htm l?allClasses=1#bufferTimeMax

               

              This property is new in Flash Player 10.1/AIR 2.

               

              HTH,
              Jody

              • 4. Re: buffer grows without proportion until browser crashes.
                Janaki Lakshmikanthan Employee Hosts

                Hi,

                Thanks for your information.

                Could you pls tell me the platform in which your clients are running?

                "I made a small fix which is inelegant checking for bufferLength>x and issuing a togglePause(), then resume() (on the client app)
                which brings the stream back to normal buffer," - Have you set 'maxPauseBufferTime' in your client app?

                What exactly do you observe with buffer when you issue togglePause()?

                Have you created the playlist at the server and play it over there so that the client subscribes to that stream as live? or the playlist is created at the client side?

                Can you pass me the sample media file which you are trying to play? you can send it to jlakshmi@adobe.com.

                It would be good if you could pass me the client side code as well.

                 

                Regards,

                Janaki L

                • 5. Re: buffer grows without proportion until browser crashes.
                  Syberkitten Community Member

                  it seems like this could be a solution to our problem, yet NetStream.bufferTimeMax
                  is not supported in the CS4 IDE classes, nor is player 10.1 available

                  for the public yet, how can we make use of it then?


                  is it supported in CS5?
                  how can we get Flash Player 10.1?

                   

                  thanks

                  • 6. Re: buffer grows without proportion until browser crashes.
                    Syberkitten Community Member



                    "Could you pls tell  me the platform in which your clients are running?
                    "
                         - our clients are running mostly on windows playtforms (all kinds, and all kinds of browsers)

                     

                    "What exactly do you observe with buffer when you issue togglePause()?"

                         - toggePause() removes the buffer and resumes the video, but from a different location

                         on the stream. it was just a check to see if the bufferLength is decreased, and it is,
                         but we cannot really use this solution.

                     

                    "Have you created the playlist at the server and play it over there so  that the client subscribes to that stream as live? or the playlist is  created at the client side?"

                         - our playlist is created in actionscript on the server, the client simply subscribes to a stream name, and received what ever we broadcast.

                     

                    i'll send you the other details via email

                     

                    thanks

                    • 7. Re: buffer grows without proportion until browser crashes.
                      Jody Bleyle Community Member

                      Sorry about that, I should have mentioned that, yes, you need Flash CS5 to publish all of the 10.1 APIs. You can download a trial here:

                      http://www.adobe.com/products/flash/

                       

                      You can download the 10.1 player here:

                      http://labs.adobe.com/downloads/flashplayer10.html

                       

                      The 10.1 APIs are published in the ActionScript 3.0 Reference:

                      http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/

                       

                       

                      That said, Janaki is on the FMS Quality Engineering team so she'll investigate your issue fully.

                       

                      HTH,

                      Jody