SRS服务器搭建 rtmp推流

一、SRS服务器搭建

srs源码下载 https://github.com/ossrs/srs
编译 运行
./configure && make
./objs/srs -c conf/srs.conf

二、rtmp 推流

代码上传到github https://github.com/liuzhanchun/RtmpPush
运行时的IP为SRS服务器的IP

三、测试

1、web

输入的IP为SRS服务器IP,然后播放视频
在这里插入图片描述

2、vlc

使用VLC media player软件进行测试
媒体–>打开网络串流,输入的ip为SRS服务器的ip
在这里插入图片描述

发布了29 篇原创文章 · 获赞 6 · 访问量 5142

猜你喜欢

转载自blog.csdn.net/liuzhanchun/article/details/103988036