一、简介
整体是使用nginx搭建HTTP FLV流媒体服务器:
流程:音视频->rtmp->http-flv
音视频转为rtmp需要借助ffmpeg转化。
rtmp转为http-flv需要借助nginx转化。
nginx-http-flv-module是基于nginx-rtmp-module开发的,包含nginx-rtmp-module所有功能,因此不能nginx-rtmp-module同时安装,其编译安装步骤与nginx-rtmp-module类似
| 名称 | 参考链接 | 描述 |
|---|---|---|
| ffmpeg软件包下载地址 | RPM Fusion - RPM Fusion |
二、操作步骤
1. 修改配置支持HTTP FLV
在/etc/nginx/nginx.conf配置文件中增加以下内容
#与http模块同级
rtmp {
server {
listen 1935;
chunk_size 4096;
application myapp {
live on;
meta off;#为了兼容flvj.js
hls on;
hls_path /tmp/hls;
|

最低0.47元/天 解锁文章
310

被折叠的 条评论
为什么被折叠?



