加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

使用FMS 4.5(Flash Media Server 4.5) 搭建视频直播(HLS)

发布时间:2020-12-15 07:15:57 所属栏目:百科 来源:网络整理
导读:服务端软件Flash Media Server 4.5 1、下载后一路next,注意如果要搭建hls,就是http的直播,fms会自动安装Apache。 2、默认的管理页面是AdobeFlash Media Server 4.5toolsfms_adminConsole.htm 3、Apache的documentroot 默认目录是:AdobeFlash Media

服务端软件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>

手机版测可以用浏览器打开: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

参考文章:

  1. http://blog.163.com/zhujiatc@126/blog/static/183463820131119013486/
  2. https://helpx.adobe.com/adobe-media-server/dev/topics.html
  3. https://helpx.adobe.com/adobe-media-server/dev/configure-dynamic-streaming-live-streaming.html
  4. https://helpx.adobe.com/adobe-media-server/dev/stream-live-media-http.html#publish_and_play_live_multi_bitrate_streams_over_http

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读