How to reduce latency time in HLS,HDS protocol of Wowza Server

Guys,

Today we will see how to reduce latency time in various protocols of wowza server. Kindly note this post is meant for live streaming.

Fist let me explain you the encoder.

I am using Adobe flash live media encoder 3.2 which passes streams to Wowza media server.

My Properties of flash media live encoder is

Format : H.264

Advanced encoder settings : Profile:baseline, Level: 2.1, Key frame: 2secs

Framerate: 15fps

Input size: 800*600 ( you can give anysize)

Audio format : preferable to AAC(supports Apple products) / MP3

FMS Url: rtmp://10.10.10..:1935/live

Stream: myStream

Click connect and start..

Lets step into wowza server now..

Cross verify you are getting same incoming stream(myStream) in Applications-> Live

14-05-2014 17-55-06

Make sure incoming/outgoing security etc in open..

Now click on test players as shown in above image..

Which redirects like the below image..

14-05-2014 17-57-54

You can see various protocols tabs listed..just click on protocol tab and click start to see live streaming..:D

This is how you should configure and integrate flash media encoder with wowza. Now lets dig into latency..

Now go to [install-dir]/conf/[application]/Application.xml

For HLS (cupertinostreaming):

1.Give <StreamType>live</StreamType> in that application.xml

2.Add <LiveStreamPacketizers>cupertinostreamingpacketizer,smoothstreamingpacketizer,sanjosestreamingpacketizer,mpegdashstreamingpacketizer</LiveStreamPacketizers>

3.Add <HTTPStreamers>cupertinostreaming,smoothstreaming,sanjosestreaming,mpegdashstreaming</HTTPStreamers>

4. Add <PlayMethod>none</PlayMethod> in Authentication

5. Add the below code in between <LiveStreamPacketizer><Properties>   </properties></LiveStreamPacketizer>

 

<Property>
<Name>cupertinoChunkDurationTarget</Name>
<Value>2000</Value>
<Type>Integer</Type>
</Property>
<Property>
<Name>cupertinoMaxChunkCount</Name>
<Value>10</Value>
<Type>Integer</Type>
</Property>
<Property>
<Name>cupertinoPlaylistChunkCount</Name>
<Value>3</Value>
<Type>Integer</Type>
</Property>
<Property>
<Name>cupertinoRepeaterChunkCount</Name>
<Value>3</Value>
<Type>Integer</Type>
</Property>

6. Now restart the live Application and run. 🙂

For HDS (sanjosestreamingpacketizer):

The same type of properties should be added for HDS like below..

<Property>
<Name>sanjoseChunkDurationTarget</Name>
<Value>2000</Value>
<Type>Integer</Type>
</Property>
<Property>
<Name>sanjoseMaxChunkCount</Name>
<Value>10</Value>
<Type>Integer</Type>
</Property>
<Property>
<Name>sanjosePlaylistChunkCount</Name>
<Value>4</Value>
<Type>Integer</Type>
</Property>
<Property>
<Name>sanjoseRepeaterChunkCount</Name>
<Value>4</Value>
<Type>Integer</Type>
</Property>

Note: In case if you want to configure for VOD applications then add the below properties in between <HTTPStreamer><Properties>   </Properties></HTTPStreamer>

<Name>cupertinoPacketizeAllStreamsAsTS</Name>
<Value>true</Value>
<Type>Boolean</Type>
</Property>
<!– HDS properties –>
<Property>
<Name>sanjoseChunkDurationTarget</Name>
<Value>10000</Value>
<Type>Integer</Type>
</Property>

References: http://www.wowza.com/forums/content.php?215-How-to-configure-Adobe-HTTP-Dynamic-Streaming-packetization-(sanjosestreaming)

http://www.wowza.com/forums/content.php?88-How-to-configure-Apple-HTTP-Live-Streaming-packetization-(cupertinostreaming)

Advertisements

One thought on “How to reduce latency time in HLS,HDS protocol of Wowza Server

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s