官网
SRS/5.0 is a simple, high efficiency and realtime video server, supports RTMP/WebRTC/HLS/HTTP-FLV/SRT/GB28181.
SRS/5.0,Bee 是一个简单高效的实时视频服务器,支持RTMP/WebRTC/HLS/HTTP-FLV/SRT/GB28181。
github:https://github.com/ossrs/srs-gb28181
下载源码
方法1:
git clone https://github.com/ossrs/srs-gb28181.git
方法2:
srs-gb28181-feature-gb28181.zip
解压
unzip srs-gb28181-feature-gb28181.zip
编译
configure
cd srs-gb28181-feature-gb28181/trunk
# 添加开启gb28181
./configure --gb28181=on
会执行比较长时间,出现如下说明成功
make
make
配置gb28181
配置文件在conf下
为了避免端口冲突我们把http_server端口从8080改成8081
我们把sip的端口改为15692
注意修改使用tcp还是udp
大家可以不改直接启动
启动
启动服务
前台启动服务
cd trunk
./objs/srs -c ./conf/push.gb28181.conf
后台启动服务
nohup ./objs/srs -c ./conf/push.gb28181.conf >/dev/null 2>&1 &
访问服务
默认端口为8080, http://192.168.0.44:8081/
因为我们改了端口8081
console控制台
28181平台
接入设备
播放
地址:
http://192.168.0.44:8081/live/88888888888888888801@88888888888888888802.flv