Results 1 to 3 of 3

Thread: Live Buffer Size

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2014
    Posts
    4

    Default Live Buffer Size

    Can you tell me that what is maximum size of "live buffer" ? Is it possible to configure buffer? if yes, please provide me more details.
    This is required because we have seen around 20-30 delay while doing live RTMP streaming & Wowza is working as relay server between consumer & publisher.
    After debugging, I have found that device has added 6-10 seconds (maximum) delay by publisher & even buffer length in consumer (jwplayer) is set as 0.1, but I did not get that which component has added remaining delay That's reason, I might suspect it is because of buffer which is present in Wowza side. Please, provide me your opinion.

    By the way, I would like to add that all low-latency configuration is already present in Wowza Media server, please see detail below:-
    Application.xml
    <Streams>
    <StreamType>live-lowlatency</StreamType>
    <Properties>
    <Property>
    <Name>flushInterval</Name>
    <Value>15</Value>
    <Type>Integer</Type>
    </Property>
    <Property>
    <Name>onFlushNotifyClients</Name>
    <Value>true</Value>
    <Type>Boolean</Type>
    </Property>
    <Property>
    <Name>maxliveaudiolatency</Name>
    <Value>1000</Value>
    </Property>
    <Property>
    <Name>behindDropDFrames</Name>
    <Value>1500</Value>
    <Type>Integer</Type>
    </Property>
    <Property>
    <Name>behindDropPFrames</Name>
    <Value>2000</Value>
    <Type>Integer</Type>
    </Property>
    <Property>
    <Name>behindDropKFrames</Name>
    <Value>2500</Value>
    <Type>Integer</Type>
    </Property>
    <Property>
    <Name>instantOn</Name>
    <Value>false</Value>
    <Type>Boolean</Type>
    </Property>
    <Property>
    <Name>isLive</Name>
    <Value>true</Value>
    <Type>Boolean</Type>
    </Property>
    <Property>
    <Name>behindDropAudio</Name>
    <Value>3000</Value>
    <Type>Integer</Type>
    </Property>
    </Properties>
    </Streams>

    conf/VHost.xml :-
    <!-- suggest settings for low latency chat and video recording applications -->
    <ReceiveBufferSize>0</ReceiveBufferSize>
    <ReadBufferSize>16000</ReadBufferSize>
    <SendBufferSize>0</SendBufferSize>
    <KeepAlive>true</KeepAlive>

  2. #2
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi,
    You may be able to reduce delay by increasing the frame rate of the stream and the keyframe interval.
    Some RTMP players require 2 keyframes and 50 frames to begin playing the stream.

    The Property called instantOn should also be set to true if you wish to use it. The default is false.
    <Property>
    	<Name>instantOn</Name>
    	<Value>false</Value>
    	<Type>Boolean</Type>
    </Property>
    Regards,
    Jason

  3. #3
    Join Date
    Mar 2014
    Posts
    4

    Default

    Thanks Jason for your inputs.
    Due to some limitation, it is not possible to increase FPS & decrease key frame interval ( now it is 1 second), do you have any other suggestion to reduce latency?

    One more thing, I would like to understand from server point of view.
    We have tried to publish RTMP stream to Wowza Media sever using device with around 700kbps & consume same stream at a two place with different bandwidth ( one consume is used wifi network while other has used 3G network). We have found that one consumer(wifi) has 3-5 second delay while other consumer (3G) has 25-30 second delay.

    Now, I would like to understand that does wowza has internal buffer where it will store video for low bandwidth consumer? If yes, how can we flush data for low bandwidth consumer according to RTMP specification or you can provide better approach.

    Thanks in advance.

    Regards,
    Paresh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •