3 Replies Latest reply on Aug 16, 2009 1:46 PM by Michael Thornburgh

    Setting video frame rate

    onoke

      Hi,

       

      Are there someone had been able to control frame rate of video chating with actionscript or somthing else?

      I have no preference which would be to set it in static or dynamic.

       

      Thank you

       

      Ono Keiji

        • 1. Re: Setting video frame rate
          Michael Thornburgh Adobe Employee

          camera.setMode() and camera.setQuality() control the size, frame rate, and bandwidth used for encoding video from your camera.  the third parameter to setMode is the framerate.

           

          -mike

          1 person found this helpful
          • 2. Re: Setting video frame rate
            onoke Level 1

            Thank you mike,

             

            Could camera class use in Stratus ? I thought it  just work with FMS.

            If so, will i am able to use rigiding and stable fps with the exception of bandwidth ?

             

            And also, if so i expect to support h.264 on Struts early.

             

            Thank you

             

            Ono Keiji

            • 3. Re: Setting video frame rate
              Michael Thornburgh Adobe Employee

              you can use your camera and microphone when connected to Stratus.  however, you can only publish your camera/microphone for direct connections (new NetStream(nc, NetStream.DIRECT_CONNECTIONS)), and subscribers must use the direct connect API to get the stream from you (new NetStream(nc, <your-peer-id>)).  in this mode, your video/audio stream never goes to the server, but travels directly from you (the publisher) to the subscribers.  that's the *only* mode that Stratus supports.

               

              because your stream may be received by multiple peers, you must choose a bandwidth (and other encoding parameters) that is likely to fit through the path(s) between the publisher and subscriber(s).  if the encoding parameters you've chosen exceed the bandwidth between publisher and subscriber, eventually frames will be dropped.  also in bandwidth exhaustion situations, because audio is higher priority than video, you may see audio and video go out of sync at the publisher.

               

              if you set a fixed frame rate and a bandwidth cap, then the encoder will vary the quality to fit within the parameters you've fixed.

               

              -mike