RED5
====
http://www.cnblogs.com/liongis/p/3505287.html
http://www.xuebuyuan.com/650117.html
http://blog.sina.com.cn/s/blog_5ac829d70101mzox.html
http://wenku.baidu.com/link?url=LwjwEVvrDBQfpL6tvKM0AlUQ8lfWACqHi4MR5mn3vPHPvuHFihDBpV6sHX-574AL2jkl7N6dZNo_i2dt_lmxxHALUBv-pO7tasY8jrLw7ue
http://www.unibia.com/unibianet/freebsd/quick-and-easy-rtmp-flash-streaming-video-red5-freebsd?page=0,2
RTMP 利用第三方软件实现数据推流与客户端播放 http://blog.csdn.net/aoshilang2249/article/details/44599247
1. 下载:red5-server-1.0.6-RELEASE-server.zip (windows下也一样用这个包,不需要下载安装版本)
2. 安装oflaDemo
https://github.com/Red5/red5-examples 这个地方没有war包。。,单独下载war包或者mvn package编译
把oflaDemo.war解压放到 webapps目录下
3. 编译red5-examples-master出错:mvn package:
ext windows: d:\work\video
5-example-oflaDemo:war:2.0: Failure to find org:jaudiotagger:jar:2.0.4-SNAPSHOT in http://oss.sonatype.org/content/repos
itories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of so
natype-snapshots has elapsed or updates are forced -> [Help 1]
下载jaudiotagger-2.0.4-SNAPSHOT.jar, 下载地址:http://repo.grails.org/grails/repo/org/jaudiotagger/2.0.4-SNAPSHOT/ 或者 https://www.versioneye.com/java/org:jaudiotagger/2.0.4-SNAPSHOT
把jaudiotagger-2.0.4-SNAPSHOT.jar安装到本地,然后在运行 mvn package
mvn install:install-file -DgroupId=org -DartifactId=jaudiotagger -Dversion=2.0.4-SNAPSHOT -Dpackaging=jar -Dfile=jaudiotagger-2.0.4-SNAPSHOT.jar
4. copy sameple mp4 and flv files:
Test videos have been removed from the repo for copyright reasons, but you can find trailers here:
Avengers 2 - https://mega.co.nz/#!lY9VyJiJ!dyRxQuTPxdZoTdfFIRegi8tf-Lq-0juYnFPFyvEjDvk
The Hobbit - https://mega.co.nz/#!YcMl1aSR!sRfInxKLFpvcPv3QDqvWnk14meq4jR4tySGfGXEpdiU
Star Trek 2 - https://mega.co.nz/#!0MlW2bLR!KwWmZrJE8MKeWl0IVP24-_pXcDyN04QO0BU_43NTNeg
Drop the mp4 or flv files in the red5/webapps/oflaDemo/streams directory
5. red5服务器修改ip,否则默认是localhost
http://blog.csdn.net/shangdyu/article/details/7010231
找到/usr/local/red5/conf/red5.properties文件,将其中的0.0.0.0 改为服务器IP地址。
6. 自启动red5
/etc/init.d/red5 stop
./red5.sh &
7. 打开:
http://127.0.0.1:5080/
然后: http://127.0.0.1:5080/demos/ofla_demo.html , 点connect后可以看到streams目录下的文件,即可播放
8. OBS 推流
设置-》串流——》串流类型:自定义流媒体服务器:
URL:rtmp://localhost/oflaDemo/myvideo
流密钥:test1
播放端的url: rtmp://localhost/oflaDemo/myvideo/test1
流密钥可以自定义
具体直播可以参考:http://blog.csdn.net/aoshilang2249/article/details/44599247
====
http://www.cnblogs.com/liongis/p/3505287.html
http://www.xuebuyuan.com/650117.html
http://blog.sina.com.cn/s/blog_5ac829d70101mzox.html
http://wenku.baidu.com/link?url=LwjwEVvrDBQfpL6tvKM0AlUQ8lfWACqHi4MR5mn3vPHPvuHFihDBpV6sHX-574AL2jkl7N6dZNo_i2dt_lmxxHALUBv-pO7tasY8jrLw7ue
http://www.unibia.com/unibianet/freebsd/quick-and-easy-rtmp-flash-streaming-video-red5-freebsd?page=0,2
RTMP 利用第三方软件实现数据推流与客户端播放 http://blog.csdn.net/aoshilang2249/article/details/44599247
1. 下载:red5-server-1.0.6-RELEASE-server.zip (windows下也一样用这个包,不需要下载安装版本)
2. 安装oflaDemo
https://github.com/Red5/red5-examples 这个地方没有war包。。,单独下载war包或者mvn package编译
把oflaDemo.war解压放到 webapps目录下
3. 编译red5-examples-master出错:mvn package:
ext windows: d:\work\video
5-example-oflaDemo:war:2.0: Failure to find org:jaudiotagger:jar:2.0.4-SNAPSHOT in http://oss.sonatype.org/content/repos
itories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of so
natype-snapshots has elapsed or updates are forced -> [Help 1]
下载jaudiotagger-2.0.4-SNAPSHOT.jar, 下载地址:http://repo.grails.org/grails/repo/org/jaudiotagger/2.0.4-SNAPSHOT/ 或者 https://www.versioneye.com/java/org:jaudiotagger/2.0.4-SNAPSHOT
把jaudiotagger-2.0.4-SNAPSHOT.jar安装到本地,然后在运行 mvn package
mvn install:install-file -DgroupId=org -DartifactId=jaudiotagger -Dversion=2.0.4-SNAPSHOT -Dpackaging=jar -Dfile=jaudiotagger-2.0.4-SNAPSHOT.jar
4. copy sameple mp4 and flv files:
Test videos have been removed from the repo for copyright reasons, but you can find trailers here:
Avengers 2 - https://mega.co.nz/#!lY9VyJiJ!dyRxQuTPxdZoTdfFIRegi8tf-Lq-0juYnFPFyvEjDvk
The Hobbit - https://mega.co.nz/#!YcMl1aSR!sRfInxKLFpvcPv3QDqvWnk14meq4jR4tySGfGXEpdiU
Star Trek 2 - https://mega.co.nz/#!0MlW2bLR!KwWmZrJE8MKeWl0IVP24-_pXcDyN04QO0BU_43NTNeg
Drop the mp4 or flv files in the red5/webapps/oflaDemo/streams directory
5. red5服务器修改ip,否则默认是localhost
http://blog.csdn.net/shangdyu/article/details/7010231
找到/usr/local/red5/conf/red5.properties文件,将其中的0.0.0.0 改为服务器IP地址。
6. 自启动red5
/etc/init.d/red5 stop
./red5.sh &
7. 打开:
http://127.0.0.1:5080/
然后: http://127.0.0.1:5080/demos/ofla_demo.html , 点connect后可以看到streams目录下的文件,即可播放
8. OBS 推流
设置-》串流——》串流类型:自定义流媒体服务器:
URL:rtmp://localhost/oflaDemo/myvideo
流密钥:test1
播放端的url: rtmp://localhost/oflaDemo/myvideo/test1
流密钥可以自定义
具体直播可以参考:http://blog.csdn.net/aoshilang2249/article/details/44599247