Skip to main content
Inspiring
September 22, 2010
Question

Reduce audio and video latency in flash media server 3.5

  • September 22, 2010
  • 1 reply
  • 1526 views

Hi,


We have one functionality in which one user can communicate with the other user at the same time through flash media server3.5. In this fucnitonality we are catching stream from both end through camera and pass it to flash media server. On FMS side this streams gets stored also we are displaying those recorded flv files side by side to the corresponding user so that they can communicate with each other. In this situation we are facing a video and audio latency upto 1.5 to 2 sec. Can we decrease this latency upto 100-200 ms or less than 300ms. If possible then please help.

Please help we are in great dilema. Thanks in advance.

    This topic has been closed for replies.

    1 reply

    Inspiring
    September 22, 2010

    Please give your suggestion.


    September 22, 2010

    i suspect part of you issue may be buffering. What do you have the netstream.bufferTime set to on the receiving streams? In the case of video published by the flashplayer (H.263), you can safely set the buffer to zero in most cases. If you find that the video is stuttery with a zero buffer, push it up to 0.1

    If  you're using VP6 or H.264 video, a zero buffer isn't suitable, so you'll need to buffer about a second of video to achieve smooth playback. In this case, you really can't get the low latency you're looking for.

    Another factor here is network latency. If we assume 100ms on each client with no packet loss, then you can get close to your 300ms target. If network conditions aren't ideal, or latency between either client and the server is high, you won't be able to guarantee an aprticular level of delay on the video.