red5 server使用笔记(一)

简介:

red5是什么?
    red5是一个采用Java开发,开源的Flash流媒体服务器。它支持把音频(MP3)和视频(FLV)转换成播放流;录制客户端播放流(只支持FLV);共享对象;现场直播流发布;远程调用。Red5使用RSTP作为流媒体传输协议,在其自带的一些示例中演示了在线录制、flash流媒体播放、在线聊天、视频会议等一些基本功能。 程序员还可以基于red5、根据自己的需求开发自己的视频应用程序。

    安装:从 http://code.google.com/p/red5 网址下载了 Red5 0.9.0 RC2 (03 November 2009)的 Windows 安装文件 setup-Red5-0.9.RC2.exe。在 Windows server 2003 下安装。Red5 0.9.0 RC2 与以前的版本不太相同,没有要求输入 JDK 的路径的信息,而只是要求输入 red5 server 的 IP 地址和端口。red5 和 JDK 是通过 JAVA_HOME 环境变量来集成的。red5 本身包含了 Tomcat6.0 应用服务器(包括Web服务器)。

    由于没有安装 JDK,所以安装完成后启动 red5 时报告错误“JAVA_HOME environment variable not set!”。于是下载 JDK1.6 运行环境,文件是 jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008.exe,安装到 C:\Java\jre6,然后配置系统环境变量 JAVA_HOME 等于 C:\Java\jre6,注意不要写成 C:\Java\jre6\bin。不用重新启动机器,red5 就可以启动了,启动后显示一个 DOS 窗口,不要关闭它!

    测试一下是不是安装成功:运行 http://[ip]:[port],应当可以打开一个 red5 信息页面,内容如下:

 

    This page is used to test the proper operation of the Red5 server after it has been installed. If you can read this page it means that the Red5 server installed at this site is working properly.
    If you would like to watch an instructional video on Red5 and have access to YouTube, click here
    If you prefer to jump right in, follow these steps:

    - Install a ready-made application
    - Launch a demo

    Further information about Red5 can be found at any of these links: official homepage | wiki | old homepage
    Be sure to subscribe the mailing list to get help or to be notified about new versions. You can also use the mailing list to ask questions about Red5.

    其中“install”是个红色的链接,指向 http://[ip]:[port]/installer
    其中“demo”也是个红色的链接,指向 http://[ip]:[port]/demos,要看这里的 demo,必须首先点击上面的链接安装。

    进入管理页面:
    red5 是个正在开发中的产品,0.9.0 RC2 也只是个候选版,所以功能不完善是可以想见的。为了进入其管理页面,必须预置一个管理帐号和密码,但安装后的 0.9.0 RC2 可是没有这个功能的。于是,搜素,找到一篇文章(网址:http://trac.red5.org/wiki/AppServer/Plugins),包含以下的内容:

    Adding or modifying admin users:

    This page will allow you to add or modify users, make sure you remove it when you are done since it allows anyone to add users to your admin.
    Instructions:
    1. Get the “helper” page here: http://red5.googlecode.com/files/admin.jsp。从这里下载到 admin.jsp 文件。
    2. Start your red5 server
    3. Put the “admin.jsp” file in “red5/webapps/root” directory
    4. Request the page via browser - http://[ip]:[port]/admin.jsp
    5. Enter your info and submit
    6. Go to the admin panel and login

    按照这里的提示做,就可以进入管理页面,但还是看不到什么很有用的功能。但这里的演示到是很有用的,分析一下它们的代码应该能学到很多东西的。







本文转自网眼51CTO博客,原文链接:http://blog.51cto.com/itwatch/286430,如需转载请自行联系原作者

目录
打赏
0
相关文章
38款 流媒体服务器开源软件
http://www.oschina.net/project/tag/111/streaming?lang=0&os=0&sort=view&p=1 Flash流媒体服务器 Red5 Red5是一个采用Java开发开源的Flash流媒体服务器。
7932 0
一文搞懂MQTT,如何在SpringBoot中使用MQTT实现消息的订阅和发布
之前介绍了RabbitMQ以及如何在SpringBoot项目中整合使用RabbitMQ,看过的朋友都说写的比较详细,希望再总结一下目前比较流行的MQTT。所以接下来,就来介绍什么MQTT?它在IoT中有着怎样的作用?如何在项目中使用MQTT?
15479 5
一文搞懂MQTT,如何在SpringBoot中使用MQTT实现消息的订阅和发布
java http get post 各种请求,模拟浏览器请求
package com.hlzt.wx.util.http; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.DefaultHttpClient; import com.hl
2599 0
Windows平台摄像头或屏幕RTMP推送:OBS VS SmartPublisher
好多开发者问道,既然有了OBS,你们为什么还要开发SmartPublisher? 的确,在我们进行Windows平台RTMP推送模块开发之前,市面上为数不多的Windows平台RTMP推流工具当属OBS了,不得不说,OBS是一款很好用的直播软件,它的优势在于,几乎可以直播所有直播平台,不需要每个直播平台都下载相关平台的专用直播软件,可以直播游戏,显示器,word,浏览器等。
392 0
|
10月前
|
NoSQL数据库的优点和缺点是什么?
NoSQL数据库的优点和缺点是什么?
472 0
身份证号码的正则表达式及验证详解(JavaScript,Regex)
在做用户实名验证时,常会用到身份证号码的正则表达式及校验方案。本文列举了两种验证方案,大家可以根据自己的项目实际情况,选择适合的方案。
3438 0
流媒体技术学习笔记之(十一)Windows环境运行EasyDarwin
流媒体平台框架下载安装 Github下载   下载地址:https://github.com/EasyDarwin/EasyDarwin/releases 解压安装   选择Windows 安装平台的安装包(下载解压)   把解压生成的文件夹重命名放在本地磁盘,我这里测试放在E盘:   介绍其中的来个批处理文件: start.
2800 0
prometheus实战篇:prometheus相关概念
在安装好Prometheus后,会暴露一个/metrics的http服务(相当于安装了prometheus_exporter),通过配置,Prometheus就可以采集到这个/metrics下的所有监控样本数据.