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 进行测试拉流

时间: 2024-08-08 10:21:03

Wowza 部署 安装 配置 测试 直播的相关文章

node_简介及部署安装配置

Node简介及部署安装配置 一.node简介 Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境. Node.js 使用了一个事件驱动.非阻塞式 I/O 的模型 Node 是一个让 JavaScript 运行在服务端的开发平台,实质是对Chrome V8引擎进行了封装. 二.node优点 1.单线程 2.非阻塞IO 3.V8虚拟机 4.事件驱动 三.下载安装 1.下载node.js 打开官网下载链接https://nodejs.org/zh-cn/downlo

mosquitto在Linux环境下的部署/安装/使用/测试

mosquitto在Linux环境下的部署 看了有三四天的的源码,(当然没怎么好好看了),突然发现对mosquitto的源码有了一点点感觉,于是在第五天决定在Linux环境下部署mosquitto. 使用传统源码安装步骤: 步骤1:http://mosquitto.org/files/source/官网下载源码,放到Linux环境中.解压后,找到主要配置文件config.mk,其中包含mosquitto的安装选项,需要注意的是,默认情况下mosquitto的安装需要OpenSSL(一个强大的安全

memcache缓存服务器(安装-配置-测试篇)

部署环境: 主机 ip地址 操作系统 nginx 172.16.1.100 CentOS 7.3 php+memcache 172.16.1.110 CentOS 7.3 Mysql 172.16.1.120 CentOS 7.3 memcached 172.16.1.130 CentOS 7.3 一, 环境准备: 搭建LNMP环境(动态解析) 1,安装nginx 1)安装依赖工具包: [[email protected] ~]# yum -y install gcc* pcre-devel o

【sqoop】安装配置测试sqoop1

1.1.1 下载sqoop1:sqoop-1.4.7.bin__hadoop-2.6.0.tar.gz 1.1.2 解压并查看目录: [[email protected] ~]$ tar -zxvf sqoop-1.4.7.bin__hadoop-2.6.0.tar.gz --解压 [[email protected] ~]$ cd sqoop-1.4.7.bin__hadoop-2.6.0 [[email protected] sqoop-1.4.7.bin__hadoop-2.6.0]$ l

Git 安装 &amp; 配置 &amp; 测试

安装地址: https://git-scm.com/downloads 配置Git上个人的用户名称和电子邮件地址,用来记录提交人的信息: $ git config --global user.name "your name" $ git config --global user.email "[email protected]" -- 查看所有配置信息 $ git config -l 原文地址:https://www.cnblogs.com/newweipeng/p

MQ-RabbitMq部署安装配置

环境准备 本次实验使用的是VMvare虚拟机.详情如下hostname: node1.serverip地址:192.168.0.150 网卡:eth0,eth1系统及硬件:CentOS 7.2 内存2G,硬盘50G 一. 什么是RabbitMq 消息队列又称为MQ,应用程序间的消息通信工具,其有利于程序解耦.多语言集成.异步通信.扩展和简单负载均衡等,是生产-消费者模型的典型代表.常见MQ产品有RabbitMQ ZeroMQ Kafka等等. RabbitMQ,老牌MQ产品,基于erlang语言

elk集群安装配置详解

#  一:简介 ``` Elasticsearch作为日志的存储和索引平台: Kibana 用来从 Elasticsearch获取数据,进行数据可视化,定制数据报表: Logstash 依靠强大繁多的插件作为日志加工平台: Filebeat 用来放到各个主机中收集指定位置的日志,将收集到日志发送到 Logstash: Log4j 直接与 Logstash 连接,将日志直接 Logstash(当然此处也可以用 Filebeat 收集 tomcat 的日志). ``` ####  port ```

Tengine+keepalived 安装配置

Tengine+keepalived 安装配置 测试环境 系统:Centos-6.5-x86_64 主IP:192.168.1.220 备IP:192.168.219 VIP:192.168.1.226 一.安装Tengine 1.1创建目录并下载安装包 mkdir -p /data/ops/{app,packages,scripts} cd /data/ops/packages/ wget http://tengine.taobao.org/download/tengine-2.1.0.tar

Openvpn安装配置参考示例收藏版

1.配置安装环境: [[email protected] ~]# yum install -y gcc gcc-c++ pam-devel openssl penssl-devel [[email protected] ~]# yum install -y lrzsz    (SecureCRT 上传下载) 2.关闭SELINUX.清除防火墙设置 [[email protected] ~]#vi /etc/selinx/config #     disabled - No SELinux pol