# High latency when streaming live video rtmp

**URL:** <https://community.wowza.com/t/high-latency-when-streaming-live-video-rtmp/36890>\
**Category:** Wowza Streaming Engine\
**Created:** [May 15, 2012, 11:39am UTC](https://community.wowza.com/t/high-latency-when-streaming-live-video-rtmp/36890 "2012-05-15T11:39:18Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Green](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@Tom\_Green](https://community.wowza.com/u/Tom_Green)\
**Post date:** [May 15, 2012, 11:39am UTC](https://community.wowza.com/t/high-latency-when-streaming-live-video-rtmp/36890/1 "2012-05-15T11:39:18Z")

</div>

Hello,

I know that my problem was mentioned already on the forum and I have implemented all the suggestions from post: “[https://www.wowza.com/docs/how-to-set-up-low-latency-applications-in-wowza-streaming-engine-for-rtmp-streaming”](https://www.wowza.com/docs/how-to-set-up-low-latency-applications-in-wowza-streaming-engine-for-rtmp-streaming%E2%80%9D). But I am not getting anywhere so I decided to reach for help and suggestions.

I am using:

Wowza 2.2.4

JW Player

Wirecast 4.1.1

I am streaming live video over rtmp and I have 5 second delay.

I am not sure what else I can do in order to improve this.

Any suggestions please…

Regards, Tom

---

<div class="post-metadata">

**Author:** ![Tom\_Green](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@Tom\_Green](https://community.wowza.com/u/Tom_Green)\
**Post date:** [May 15, 2012, 1:14pm UTC](https://community.wowza.com/t/high-latency-when-streaming-live-video-rtmp/36890/2 "2012-05-15T13:14:42Z")

</div>

I have set JW Player to:

```auto
'bufferlength': '0'

```

but this does not help.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 15, 2012, 8:15pm UTC](https://community.wowza.com/t/high-latency-when-streaming-live-video-rtmp/36890/3 "2012-05-15T20:15:10Z")

</div>

Do you have low fps setting? That causes start delay. That’s in that article tho. You don’t have control of network latency.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 15, 2012, 8:48pm UTC](https://community.wowza.com/t/high-latency-when-streaming-live-video-rtmp/36890/4 "2012-05-15T20:48:31Z")

</div>

Setting the JW Player Flashvar “bufferlength” should do it.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 16, 2012, 1:27am UTC](https://community.wowza.com/t/high-latency-when-streaming-live-video-rtmp/36890/5 "2012-05-16T01:27:59Z")

</div>

If you have followed that guide, 30fps stream, bufferlength to 0… I don’t know what else to suggest

Richard

---

<div class="post-metadata">

**Author:** ![Tom\_Green](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@Tom\_Green](https://community.wowza.com/u/Tom_Green)\
**Post date:** [May 15, 2012, 3:20pm UTC](https://community.wowza.com/t/high-latency-when-streaming-live-video-rtmp/36890/6 "2012-05-15T15:20:00Z")

</div>

Richard,

Thanks for your replay.

FPS on Wirecast is set to 30. So I guess this is not an issue.

Tom

---

<div class="post-metadata">

**Author:** ![Tom\_Green](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@Tom\_Green](https://community.wowza.com/u/Tom_Green)\
**Post date:** [May 15, 2012, 3:46pm UTC](https://community.wowza.com/t/high-latency-when-streaming-live-video-rtmp/36890/7 "2012-05-15T15:46:51Z")

</div>

I do not understand only one suggestion from mentioned above link.

“On the player side it is important that the NetStream.setBufferTime(seconds) is set to zero (in Actionscript 3 use “NetStream.bufferTime = 0;”). This will give you the lowest possible latency on the playback side.”

I guess it does not apply to me because I use JW Player. Am I correct?

If not please tell me where/how do I change this parameter.

Thanks

---

<div class="post-metadata">

**Author:** ![Tom\_Green](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@Tom\_Green](https://community.wowza.com/u/Tom_Green)\
**Post date:** [May 15, 2012, 3:53pm UTC](https://community.wowza.com/t/high-latency-when-streaming-live-video-rtmp/36890/8 "2012-05-15T15:53:10Z")

</div>

hmm ok I have set bufferlength to 0 and I do not see any progress.

here it is the whole code for JW Player, maybe I am not seeing what is wrong.

```auto
  jwplayer('mediaplayer').setup({
    'flashplayer': 'player.swf',
    'id': 'playerID',
    'width': '380',
    'height': '285',
    'bufferlength': '0',
	'file': 'live.sdp',
	'streamer': 'rtmp://x.x.x.x:1935/live/'
  });

```

Thanks for replay

---

<div class="post-metadata">

**Author:** ![Tom\_Green](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@Tom\_Green](https://community.wowza.com/u/Tom_Green)\
**Post date:** [May 15, 2012, 8:23pm UTC](https://community.wowza.com/t/high-latency-when-streaming-live-video-rtmp/36890/9 "2012-05-15T20:23:09Z")

</div>

Hello,

Any suggestion guys please? I have run out of ideas and options.

Thanks in advance, Tom

---

<div class="post-metadata">

**Author:** ![Tom\_Green](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@Tom\_Green](https://community.wowza.com/u/Tom_Green)\
**Post date:** [May 15, 2012, 9:12pm UTC](https://community.wowza.com/t/high-latency-when-streaming-live-video-rtmp/36890/10 "2012-05-15T21:12:09Z")

</div>

Richard,

Could you please take a look at my “Application.xml” file and see if I am not missing something?

I would really appreciate.

Thanks, Tom

```auto
<Root>
        <Application>
                <!-- Uncomment to set application level timeout values
                <ApplicationTimeout>60000</ApplicationTimeout>
                <PingTimeout>12000</PingTimeout>
                <ValidationFrequency>8000</ValidationFrequency>
                <MaximumPendingWriteBytes>0</MaximumPendingWriteBytes>
                <MaximumSetBufferTime>60000</MaximumSetBufferTime>
                <MaximumStorageDirDepth>25</MaximumStorageDirDepth>
                -->
                <Connections>
                        <AutoAccept>true</AutoAccept>
                        <AllowDomains></AllowDomains>
                </Connections>
                <!--
                        StorageDir path variables
                        
                        ${com.wowza.wms.AppHome} - Application home directory
                        ${com.wowza.wms.ConfigHome} - Configuration home directory
                        ${com.wowza.wms.context.VHost} - Virtual host name
                        ${com.wowza.wms.context.VHostConfigHome} - Virtual host config directory
                        ${com.wowza.wms.context.Application} - Application name
                        ${com.wowza.wms.context.ApplicationInstance} - Application instance name
                        
                -->
                <Streams>
                        <StreamType>live-lowlatency</StreamType>
                        <StorageDir>${com.wowza.wms.context.VHostConfigHome}/content</StorageDir>
                        <KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir>
                        <!-- LiveStreamPacketizers (separate with commas): cupertinostreamingpacketizer, smoothstreamingpacketizer, sanjosestreamingpacketizer, cupertinostreamingrepeate
r, smoothstreamingrepeater, sanjosestreamingrepeater -->
                        <LiveStreamPacketizers>cupertinostreamingpacketizer,smoothstreamingpacketizer</LiveStreamPacketizers>
                        <!-- DVRPacketizers (separate with commas): dvrpacketizer -->
                        <DVRPacketizers></DVRPacketizers>
                        <!-- Properties defined here will override any properties defined in conf/Streams.xml for any streams types loaded by this application -->
                        <Properties>
<Property>
        <Name>flushInterval</Name>
        <Value>25</Value>
        <Type>Integer</Type>
</Property>
<Property>
	<Name>onFlushNotifyClients</Name>
	<Value>true</Value>
	<Type>Boolean</Type>
</Property>
                        </Properties>
                </Streams>
                <!-- HTTPStreamers (separate with commas): cupertinostreaming, smoothstreaming, sanjosestreaming -->
                <HTTPStreamers>cupertinostreaming,smoothstreaming,sanjosestreaming</HTTPStreamers>
                <!-- DVRStores (separate with commas): dvrfilestorage -->
                <DVRStores></DVRStores>
                <SharedObjects>
                        <StorageDir></StorageDir>
                </SharedObjects>
                <Client>
                     <IdleFrequency>-1</IdleFrequency>
                        <Access>
                                <StreamReadAccess>*</StreamReadAccess>
                                <StreamWriteAccess>*</StreamWriteAccess>
                                <StreamAudioSampleAccess></StreamAudioSampleAccess>
                                <StreamVideoSampleAccess></StreamVideoSampleAccess>
                                <SharedObjectReadAccess>*</SharedObjectReadAccess>
                                <SharedObjectWriteAccess>*</SharedObjectWriteAccess>
                        </Access>
                </Client>                                                                                                                                              
                <RTP>                                                                                                                                                  
                        <!-- RTP/Authentication/[type]Methods defined in Authentication.xml. Default setup includes; none, basic, digest -->                           
                        <Authentication>                                                                                                                               
                                <PublishMethod>digest</PublishMethod>                                                                                                  
                                <PlayMethod>none</PlayMethod>                                                                                                          
                        </Authentication>                                                                                                                              
                        <!-- RTP/AVSyncMethod. Valid values are: senderreport, systemclock, rtptimecode -->                                                            
                        <AVSyncMethod>senderreport</AVSyncMethod>                                                                                                      
                        <MaxRTCPWaitTime>12000</MaxRTCPWaitTime>                                                                                                       
                        <IdleFrequency>75</IdleFrequency>                                                                                                              
                        <RTSPSessionTimeout>90000</RTSPSessionTimeout>                                                                                                 
                        <RTSPMaximumPendingWriteBytes>0</RTSPMaximumPendingWriteBytes>                                                                                 
                        <RTSPBindIpAddress></RTSPBindIpAddress>                                                                                                        
                        <RTSPConnectionIpAddress>0.0.0.0</RTSPConnectionIpAddress>                                                                                     
                        <RTSPOriginIpAddress>127.0.0.1</RTSPOriginIpAddress>                                                                                           
                        <IncomingDatagramPortRanges>*</IncomingDatagramPortRanges>                                                                                     
                        <!-- Properties defined here will override any properties defined in conf/RTP.xml for any depacketizers loaded by this application -->         
                        <Properties>                                                                                                                                   
                        </Properties>                                                                                                                                  
                </RTP>                                                                                                                                                 
                <MediaCaster>                                                                                                                                          
                        <!-- Properties defined here will override any properties defined in conf/MediaCasters.xml for any MediaCasters loaded by this applications -->
                        <Properties>                                                                                                                                   
                        </Properties>                                                                                                                                  
                </MediaCaster>                                                                                                                                         
                <MediaReader>                                                                                                                                          
                        <!-- Properties defined here will override any properties defined in conf/MediaReaders.xml for any MediaReaders loaded by this applications -->
                        <Properties>                                                                                                                                   
                        </Properties>
                </MediaReader>                                                                                                                                         
                <MediaWriter>                                                                                                                                          
                        <!-- Properties defined here will override any properties defined in conf/MediaWriter.xml for any MediaWriter loaded by this applications -->  
                        <Properties>                                                                                                                                   
                        </Properties>                                                                                                                                  
                </MediaWriter>                                                                                                                                         
                <LiveStreamPacketizer>                                                                                                                                 
                        <!-- Properties defined here will override any properties defined in conf/LiveStreamPacketizers.xml for any LiveStreamPacketizers loaded by this applications -->
                        <Properties>                                                                                                                                   
                        </Properties>                                                                                                                                  
                </LiveStreamPacketizer>                                                                                                                                
                <HTTPStreamer>                                                                                                                                         
                        <!-- Properties defined here will override any properties defined in conf/HTTPStreamers.xml for any HTTPStreamer loaded by this applications -->
                        <Properties>                                                                                                                                   
                        </Properties>                                                                                                                                  
                </HTTPStreamer>                                                                                                                                        
                <DVRPacketizer>                         
<!-- Properties defined here will override any properties defined in conf/DVR.xml for any DVRPacketizer loaded by this applications -->        
                        <Properties>                                                                                                                                   
                        </Properties>                                                                                                                                  
                </DVRPacketizer>                                                                                                                                       
                <DVRStore>                                                                                                                                             
                        <!-- Properties defined here will override any properties defined in conf/DVR.xml for any DVRStore loaded by this applications -->             
                        <Properties>                                                                                                                                   
                        </Properties>                                                                                                                                  
                </DVRStore>                                                                                                                                            
                <Repeater>                                                                                                                                             
                        <OriginURL></OriginURL>                                                                                                                        
                        <QueryString><![CDATA[]]></QueryString>                                                                                                        
                </Repeater>                                                                                                                                            
                <Modules>                                                                                                                                              
                        <Module>                                                                                                                                       
                                <Name>base</Name>                                                                                                                      
                                <Description>Base</Description>                                                                                                        
                                <Class>com.wowza.wms.module.ModuleCore</Class>                                                                                         
                        </Module>                                                                                                                                      
                        <Module>                                                                                                                                       
                                <Name>properties</Name>                                                                                                                
                                <Description>Properties</Description>                                                                                                  
                                <Class>com.wowza.wms.module.ModuleProperties</Class>                                                                                   
                        </Module>                                                                                                                                      
                        <Module>                                                                                                                                       
                                <Name>logging</Name>                                                                                                                   
                                <Description>Client Logging</Description>                                                                                              
                                <Class>com.wowza.wms.module.ModuleClientLogging</Class>                                                                                
                        </Module>                                                                                                                                      
                        <Module>                                                                                                                                       
                                <Name>flvplayback</Name>                                                                                                               
                                <Description>FLVPlayback</Description>                                                                                                 
                                <Class>com.wowza.wms.module.ModuleFLVPlayback</Class>                                                                                  
                        </Module>                                                                                                                                      
                </Modules>                                                                                                                                             
                <!-- Properties defined here will be added to the IApplication.getProperties() and IApplicationInstance.getProperties() collections -->                
                <Properties>                                                                                                                                           
                </Properties>                                                                                                                                          
        </Application>                                                                                                                                                 
</Root>          

```

---

<div class="post-metadata">

**Author:** ![Tom\_Green](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@Tom\_Green](https://community.wowza.com/u/Tom_Green)\
**Post date:** [May 16, 2012, 9:46am UTC](https://community.wowza.com/t/high-latency-when-streaming-live-video-rtmp/36890/11 "2012-05-16T09:46:16Z")

</div>

Update

I have noticed that changing FPS to lower number does not affect latency in any way it is always 5 seconds.

I think it is very strange. The only parameter that affects video is “Quality”.

Wowza is installed on Linux based OS and each time I change settings, I restart service on the server.

If this suggests something please let me know.

Thanks in advance, Tom
