这篇文章向你介绍了Wowza Media Server在提供Http Live Streaming服务时对一个直播流切片时的相关参数设置。 所有的时间单位为毫秒。将这些属性参数设置在[install-dir]/conf/[application]/Application.xml文件的LiveStreamPacketizer/Properties中就可以实现针对每一个应用分别设置。 (在这里,[application] 是你希望使用这些参数的应用名): 属性参数
注意: 请确认将这些属性添加在Application.xml文件里正确的<Properties>中。在这个文件中有好几个<Properties>。
Code:
<Property> <Name>cupertinoChunkDurationTarget</Name> <Value>10000</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> 一些细节
注意
Code:
[total-memory-mb] = ([stream-bitrate-kbps]/([1024-kb-per-mb]*[8-bits-per-byte])) * [cupertinoChunkDurationTarget-seconds] * [cupertinoMaxChunkCount] 例如,一个500kbps的实时流,按上面的默认设置将会消耗下面数量的内存: Code:
(500/(1024*8)) * 10 * 10 = 6 MB of memory 你可以在HTTPStreamer/Properties中添加下面的属性参数来控制针对点播业务(VOD)的切片大小: Code:
<Property> <Name>cupertinoChunkDurationTarget</Name> <Value>10000</Value> <Type>Integer</Type> </Property> |