当前位置:网站首页>SRS deployment
SRS deployment
2022-04-23 19:46:00 【fang·up·ad】
This article , Let's introduce the use of SRS To deploy a set of streaming media servers , And use FFmpeg To push the flow ,VLC Laila flow .
1. download srs Source code
https://github.com/ossrs/srs/releases
2. Decompress the package
tar xvf srs-server-4.0-b10.tar.gz
3. establish build Catalog
$cd srs-server-4.0-b10/trunk/
$mkdir build
4.config & make & make install
$./configure --prefix=/opt/srs/srs-server-4.0-b10/trunk/build --full$make
$make install
5.make Errors in the process and Solutions
In file included from ../../../objs/gtest/include/gtest/internal/gtest-port.h:197:0,
from ../../../objs/gtest/include/gtest/internal/gtest-internal.h:40,
from ../../../objs/gtest/include/gtest/gtest.h:57,
from ../../../src/utest/srs_utest.hpp:36, from ../../../src/utest/srs_utest.cpp:24:/usr/include/c++/7/sstream:300:7: error: ‘struct std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ redeclared with different access struct __xfer_bufptrs $./configure --prefix=/opt/srs/srs-server-4.0-b10/trunk/build --full --without-utest $make $make install
6. Add profile :/opt/srs/srs-server-4.0-b10/trunk/build/conf/my_hls.conf
listen 1935;
max_connections 1000;
daemon on;
srs_log_tank file;
srs_log_level error;
srs_log_file ./objs/srs.log;
http_server {
enabled on;
listen 8081;
dir ./objs/nginx/html;
}
vhost __defaultVhost__ {
hls {
enabled on;
hls_fragment 10;
hls_window 60;
hls_path ./objs/nginx/html;
hls_m3u8_file [app]/[stream].m3u8;
hls_ts_file [app]/[stream]-[seq].ts;
hls_cleanup on;
hls_dispose 30;
hls_on_error continue;
hls_storage disk;
hls_wait_keyframe on;
hls_acodec aac;
hls_vcodec h264;
}
}
7. start-up srs
(1)cd /opt/srs/srs-server-4.0-b10/trunk/build
(2)sudo ./objs/srs -c ./conf/my_hls.conf
(3)./etc/init.d/srs status see srs state
(4)tail -n 30 -f ./objs/srs.log see srs journal
8.ffmpeg Push flow
ffmpeg -stream_loop -1 -v verbose -re -i sample_yuancore_720p.mp4 -f flv rtmp://192.168.41.115:1935/rtmp_live/mystream
-stream_loop -1 Infinite cyclic push flow
-v verbose Detailed log
-re Original bitrate streaming
-c:a copy -c:v copy Omit Push the stream according to the original code
9. Generated m3u8 and ts File path
/opt/srs/srs-server-4.0-b10/trunk/build/objs/nginx/html/rtmp_live
10.VLC Pull flow (rtmp、http)
rtmp://192.168.41.115:1935/rtmp_live/mystream
http://192.168.41.115:8081/rtmp_live/index.m3u8
版权声明
本文为[fang·up·ad]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231929411948.html
边栏推荐
- 5 minutes to achieve wechat cloud applet payment function (including source code)
- [transfer] summary of new features of js-es6 (one picture)
- How to create bep-20 pass on BNB chain
- 渤海期货这家公司怎么样。期货开户办理安全?
- [report] Microsoft: application of deep learning methods in speech enhancement
- Lpc1768 optimization comparison of delay time and different levels
- antd dropdown + modal + textarea导致的textarea光标不可被键盘控制问题
- 高效的串口循环Buffer接收处理思路及代码2
- Kubernetes getting started to proficient - install openelb on kubernetes
- Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (V)
猜你喜欢
基于pytorch搭建GoogleNet神经网络用于花类识别
【webrtc】Add x264 encoder for CEF/Chromium
[webrtc] add x264 encoder for CEF / Chromium
Understanding various team patterns in scrum patterns
【文本分类案例】(4) RNN、LSTM 电影评价倾向分类,附TensorFlow完整代码
Kubernetes entry to mastery - bare metal loadbalance 80 443 port exposure precautions
JVM的类加载过程
Grafana 分享带可变参数的链接
Kubernetes introduction to mastery - ktconnect (full name: kubernetes toolkit connect) is a small tool based on kubernetes environment to improve the efficiency of local test joint debugging.
Garbage collector and memory allocation strategy
随机推荐
【数值预测案例】(3) LSTM 时间序列电量预测,附Tensorflow完整代码
Kubernetes入门到精通-裸机LoadBalence 80 443 端口暴露注意事项
MySQL数据库 - 单表查询(二)
Strange passion
php参考手册String(7.2千字)
Go recursively loops through folders
深度学习——特征工程小总结
HTTP cache - HTTP authoritative guide Chapter VII
How to select the third-party package of golang
uIP1. 0 actively sent problem understanding
Kibana reports an error server is not ready yet. Possible causes
考试系统进入试卷优化思路
Golang timer
如何在BNB鏈上創建BEP-20通證
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(六)
视频理解-Video Understanding
Speex维纳滤波与超几何分布的改写
How to use go code to compile Pb generated by proto file with protoc Compiler Go file
Build intelligent garbage classification applet based on Zero
FFT物理意义: 1024点FFT就是1024个实数,实际进入fft的输入是1024个复数(虚部为0),输出也是1024个复数,有效的数据是前512个复数