Skip to main content
Participating Frequently
June 4, 2010
Question

Remove Lag from Live Streams

  • June 4, 2010
  • 1 reply
  • 1622 views

I am publishing 2 live streams from a computer with 2 video capture cards in it and I get a lag every 30 seconds or so on the subscribers side. I have tried adjusting the camera quality and setMode properties but still the lag persists inside and outside the LAN, is there a way to create a buffer on the server or adjust the way the live stream is received on the subscribers side so there is no noticeable lag? I saw something about editing application.xml to adjust the queue and a suggested bitrate but not sure if this is applicable, here is the link:

http://www.adobe.com/devnet/flashmediaserver/articles/dynstream_live.html

Here is my setup:


The publishing computer:

2 PCI-e x1 cards, one takes S-Video (480i) and the other DVI (720p)

Windows 7 64bit

Intel i7

6 GB RAM'

GB NIC and Switch

From the switch is one hop to a GB router and out to a 10 MB pipe which leads to our datacenter 30 miles away. The swf on this side just gets the 2 cameras, sets the quality to (0,80) and mode to (640,480,25,false) (I have played with these settings a little) and creates 2 lives streams on the FMS.

The FMS:

I am running Flash Media Interactive Server 3.5 on my own server with two 3.6 Dual Core Xeon processors and 4 GB RAM. This server resides in a Datacenter and has a 100 MB burstable pipe. From the FMS administration console I am barely using 4MB total bandwidth, 1% CPU usage, 2% RAM.

The subscribing computer:

I have used many different types of hardwired PC's within the same LAN and outside the LAN, results are the same.

The swf on this side just creates 2 new video instances and attaches the 2 netstreams to them. They are placed side by side and the height and width of these videos are undefined.

Does anyone know where this lag could be coming from, is there any settings I can adjust to improve performance while maintaining a minimum S-Video quality level?

Thanks

    This topic has been closed for replies.

    1 reply

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    June 7, 2010

    Hi,

    Thanks for the detailed information in your first post.

    Coming to the latency... It gets affected by various factors. The stream bitrate, FMS server side settings, subscriber's client side setting and on top of these the network bandwidth.

    I need to know the NetStream.bufferTime set at the subscriber's application. Try setting it to 3 when you issue the play, later you can increase it to 8 or so to stabilize the play back.

    Also can you try to subscribe to single stream and check if your client bandwidth is able to play back isngle stream?

    The link which you have mentioned below is a good reference to tune your server side settings.

    Regards,

    Janaki L