服务端软件Flash Media Server 4.5
1、下载后一路next,注意如果要搭建hls,就是http的直播,fms会自动安装Apache。
2、默认的管理页面是AdobeFlash Media Server 4.5toolsfms_adminConsole.htm
3、Apache的documentroot 默认目录是:AdobeFlash Media Server 4.5webroot
4、如果apache的默认端口不是80可以在httpd.conf文件内修改,我的默认是1835
安装推送测试客户端Flash Media Live Encoder 3.2
1、默认推送的配置界面是
2、FMS Url里面输入:rtmp://localhost/livepkgr
3、Stream里面输入:livestream?adbe-live-event=liveevent 如果左边的Preset设置了多路,Stream就要修改为:livestream%i?adbe-live-event=liveevent
4、推送视频格式(Format)选择H.264
注意
1、第二次发布同样流,观看会有问题
删除applicationslivepkgrevents_definst_liveevent下*.stream
删除AdobeFlash Media Server 4.5applicationslivepkgrstreams_definst_livestream 下*.f4x
2、手机测试可以在AdobeFlash Media Server 4.5webroot下生成文件1.html,内容是:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<video src="/hls-live/livepkgr/_definst_/liveevent/livestream.m3u8" controls="controls" width="400" height="300"></video>
</body>
</html>
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
手机版测可以用浏览器打开:http://localhost/1.html
预览
3、本地测试rtmp流可以把AdobeFlash Media Server
4.5samplesvideoPlayer目录复制到AdobeFlash Media Server 4.5webroot下在浏览器里面打开http://localhost/videoPlayer/videoplayer.html
查看直播效果(可以在文本框内输入:)http://localhost/hds-live/livepkgr/_definst_/liveevent/livestream.f4m
参考文章:
- http://blog.163.com/zhujiatc@126/blog/static/183463820131119013486/
- https://helpx.adobe.com/adobe-media-server/dev/topics.html
- https://helpx.adobe.com/adobe-media-server/dev/configure-dynamic-streaming-live-streaming.html
- https://helpx.adobe.com/adobe-media-server/dev/stream-live-media-http.html#publish_and_play_live_multi_bitrate_streams_over_http
Leave a reply