首页 > 代码库 > Wowza 部署 安装 配置 测试 直播

Wowza 部署 安装 配置 测试 直播

下载,最好用快的IP下好后传到需要的节点上,下面链接不能下载的情况下百度谷歌必应找资源,jdk旧版在oracle需登录方可下载
JDK1.6
wget -c http://dl.download.csdn.net/down10/20150107/6c6851a8b5f7e95752d71fe7d24f0ee9.bin?response-content-disposition=attachment%3Bfilename%3D%22jdk-6u45-linux-x64.bin%22&OSSAccessKeyId=9q6nvzoJGowBj4q1&Expires=1497597404&Signature=SrAWlPaSlii1Fj1MvBZW3vh6bWE%3D
安装JDK1.6
chmod +x jdk-6u45-linux-x64.bin
./jdk-6u45-linux-x64.bin
Wowza
访问http://www.wowza.com/pricing/trial  获取license key
 
 
wget -c https://www.wowza.com/downloads/WowzaStreamingEngine-4-7-0/WowzaStreamingEngine-4.7.0-linux-x64-installer.run
chmod +x WowzaStreamingEngine-4.7.0-linux-x64-installer.run
./WowzaStreamingEngine-4.7.0-linux-x64-installer.run
一路 yes  管理员用户名和密码 登录后台enginemanager用,在wowza安装目录下 conf 文件夹中的 admin.password可以找回
之后问你要license key,输入获取的 license key
 
模板配置文件(Application.xml)中修改OriginURL的值为对应节点IP地址
技术分享
  1 <Root>  2     <Application>  3         <!-- Uncomment to set application level timeout values  4         <ApplicationTimeout>60000</ApplicationTimeout>  5         <PingTimeout>12000</PingTimeout>  6         <ValidationFrequency>8000</ValidationFrequency>  7         <MaximumPendingWriteBytes>0</MaximumPendingWriteBytes>  8         <MaximumSetBufferTime>60000</MaximumSetBufferTime>  9         <MaximumStorageDirDepth>25</MaximumStorageDirDepth> 10         --> 11         <Connections> 12             <AutoAccept>true</AutoAccept> 13             <AllowDomains></AllowDomains> 14         </Connections> 15         <!-- 16             StorageDir path variables 17              18             ${com.wowza.wms.AppHome} - Application home directory 19             ${com.wowza.wms.ConfigHome} - Configuration home directory 20             ${com.wowza.wms.context.VHost} - Virtual host name 21             ${com.wowza.wms.context.VHostConfigHome} - Virtual host config directory 22             ${com.wowza.wms.context.Application} - Application name 23             ${com.wowza.wms.context.ApplicationInstance} - Application instance name 24              25         --> 26         <Streams> 27             <StreamType>liverepeater-edge</StreamType> 28             <StorageDir>${com.wowza.wms.context.VHostConfigHome}/content</StorageDir> 29             <KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir> 30             <!-- LiveStreamPacketizers (separate with commas): cupertinostreamingpacketizer, smoothstreamingpacketizer, sanjosestreamingpacketizer, mpegdashstreamingpacketizer, cupertinostreamingrepeater, smoothstreamingrepeater, sanjosestreamingrepeater, dvrstreamingpacketizer, dvrstreamingrepeater --> 31             <LiveStreamPacketizers>cupertinostreamingrepeater, smoothstreamingrepeater , sanjosestreamingrepeater</LiveStreamPacketizers> 32             <!-- Properties defined here will override any properties defined in conf/Streams.xml for any streams types loaded by this application --> 33             <Properties> 34             </Properties> 35         </Streams> 36         <Transcoder> 37             <!-- To turn on transcoder set to: transcoder --> 38             <LiveStreamTranscoder></LiveStreamTranscoder> 39             <!-- [templatename].xml or ${SourceStreamName}.xml --> 40             <Templates>${SourceStreamName}.xml,transrate.xml</Templates> 41             <ProfileDir>${com.wowza.wms.context.VHostConfigHome}/transcoder/profiles</ProfileDir> 42             <TemplateDir>${com.wowza.wms.context.VHostConfigHome}/transcoder/templates</TemplateDir> 43             <Properties> 44             </Properties> 45         </Transcoder> 46  47         <DVR> 48             <!-- As a single server or as an origin, use dvrstreamingpacketizer in LiveStreamPacketizers above --> 49             <!-- Or, in an origin-edge configuration, edges use dvrstreamingrepeater in LiveStreamPacketizers above --> 50             <!-- As an origin, also add dvrchunkstreaming to HTTPStreamers below --> 51  52             <!-- If this is a dvrstreamingrepeater, define Application/Repeater/OriginURL to point back to the origin --> 53              54             <!-- To turn on DVR recording set Recorders to dvrrecorder.  This works with dvrstreamingpacketizer  --> 55             <Recorders></Recorders> 56  57             <!-- As a single server or as an origin, set the Store to dvrfilestorage--> 58             <!-- edges should have this empty --> 59             <Store></Store> 60  61             <!--  Window Duration is length of live DVR window in seconds.  0 means the window is never trimmed. --> 62             <WindowDuration>0</WindowDuration> 63  64             <!-- Storage Directory is top level location where dvr is stored.  e.g. c:/temp/dvr --> 65             <StorageDir>${com.wowza.wms.context.VHostConfigHome}/dvr</StorageDir> 66  67             <!-- valid ArchiveStrategy values are append, version, delete --> 68             <ArchiveStrategy>append</ArchiveStrategy> 69  70             <!-- Properties for DVR --> 71             <Properties> 72             </Properties> 73         </DVR> 74  75         <TimedText> 76             <!-- VOD caption providers (separate with commas): vodcaptionprovidermp4_3gpp, vodcaptionproviderttml, vodcaptionproviderwebvtt,  vodcaptionprovidersrt, vodcaptionproviderscc --> 77             <VODTimedTextProviders>vodcaptionprovidermp4_3gpp</VODTimedTextProviders> 78              79             <!-- Properties for TimedText --> 80             <Properties> 81             </Properties>         82         </TimedText> 83          84         <!-- HTTPStreamers (separate with commas): cupertinostreaming, smoothstreaming, sanjosestreaming, mpegdashstreaming, dvrchunkstreaming --> 85         <HTTPStreamers>cupertinostreaming,smoothstreaming,sanjosestreaming</HTTPStreamers> 86         <SharedObjects> 87             <StorageDir></StorageDir> 88         </SharedObjects> 89         <Client> 90             <IdleFrequency>-1</IdleFrequency> 91             <Access> 92                 <StreamReadAccess>*</StreamReadAccess> 93                 <StreamWriteAccess>*</StreamWriteAccess> 94                 <StreamAudioSampleAccess></StreamAudioSampleAccess> 95                 <StreamVideoSampleAccess></StreamVideoSampleAccess> 96                 <SharedObjectReadAccess>*</SharedObjectReadAccess> 97                 <SharedObjectWriteAccess>*</SharedObjectWriteAccess> 98             </Access> 99         </Client>100         <RTP>101             <!-- RTP/Authentication/[type]Methods defined in Authentication.xml. Default setup includes; none, basic, digest -->102             <Authentication>103                 <PublishMethod>digest</PublishMethod>104                 <PlayMethod>none</PlayMethod>105             </Authentication>106             <!-- RTP/AVSyncMethod. Valid values are: senderreport, systemclock, rtptimecode -->107             <AVSyncMethod>senderreport</AVSyncMethod>108             <MaxRTCPWaitTime>12000</MaxRTCPWaitTime>109             <IdleFrequency>75</IdleFrequency>110             <RTSPSessionTimeout>90000</RTSPSessionTimeout>111             <RTSPMaximumPendingWriteBytes>0</RTSPMaximumPendingWriteBytes>112             <RTSPBindIpAddress></RTSPBindIpAddress>113             <RTSPConnectionIpAddress>0.0.0.0</RTSPConnectionIpAddress>114             <RTSPOriginIpAddress>127.0.0.1</RTSPOriginIpAddress>115             <IncomingDatagramPortRanges>*</IncomingDatagramPortRanges>116             <!-- Properties defined here will override any properties defined in conf/RTP.xml for any depacketizers loaded by this application -->117             <Properties>118             </Properties>119         </RTP>120         <MediaCaster>121             <RTP>122                 <RTSP>123                     <!-- udp, interleave -->124                     <RTPTransportMode>interleave</RTPTransportMode>125                 </RTSP>126             </RTP>127             <!-- Properties defined here will override any properties defined in conf/MediaCasters.xml for any MediaCasters loaded by this applications -->128             <Properties>129             </Properties>130         </MediaCaster>131         <MediaReader>132             <!-- Properties defined here will override any properties defined in conf/MediaReaders.xml for any MediaReaders loaded by this applications -->133             <Properties>134             </Properties>135         </MediaReader>136         <MediaWriter>137             <!-- Properties defined here will override any properties defined in conf/MediaWriter.xml for any MediaWriter loaded by this applications -->138             <Properties>139             </Properties>140         </MediaWriter>141         <LiveStreamPacketizer>142             <!-- Properties defined here will override any properties defined in conf/LiveStreamPacketizers.xml for any LiveStreamPacketizers loaded by this applications -->143             <Properties>144             </Properties>145         </LiveStreamPacketizer>146         <HTTPStreamer>147             <!-- Properties defined here will override any properties defined in conf/HTTPStreamers.xml for any HTTPStreamer loaded by this applications -->148             <Properties>149             </Properties>150         </HTTPStreamer>151         <Repeater>152             <OriginURL>rtmp://xxx.xxx.xx.xx:1935/live</OriginURL>153             <QueryString><![CDATA[]]></QueryString>154         </Repeater> 155         <Modules>156             <Module>157                 <Name>base</Name>158                 <Description>Base</Description>159                 <Class>com.wowza.wms.module.ModuleCore</Class>160             </Module>161             <Module>162                 <Name>logging</Name>163                 <Description>Client Logging</Description>164                 <Class>com.wowza.wms.module.ModuleClientLogging</Class>165             </Module>166             <Module>167                 <Name>flvplayback</Name>168                 <Description>FLVPlayback</Description>169                 <Class>com.wowza.wms.module.ModuleFLVPlayback</Class>170             </Module> 171         </Modules>172         <!-- Properties defined here will be added to the IApplication.getProperties() and IApplicationInstance.getProperties() collections -->173         <Properties>174         </Properties>175     </Application>176 </Root>
Application.xml

 

在/usr/local/WowzaStreamingEngine*/applications/live 中把需要改后的模板文件放进来vi Application.xml复制内容粘贴保存
重新启动
service WowzaStreamingEngine restart
 
http://xx.xxx.xx.xx:8088/enginemanager/ wowza默认管理台,xx为对应IP
参考配置,按需求自定
技术分享
技术分享
 
 
 
RTMP推拉流地址:rtmp://xx.xxx.xx.xx:1935/live/test 更改test为需要的流地址例如直播App中创建的房间等
测试可以用GoCoder软件(安卓IOS都有)推流,然后在Incoming Streams中Test Players 进行测试拉流
技术分享
 

Wowza 部署 安装 配置 测试 直播