当前位置:网站首页>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
边栏推荐
- Building googlenet neural network based on pytorch for flower recognition
- 山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(五)
- Compact CUDA tutorial - CUDA driver API
- [报告] Microsoft :Application of deep learning methods in speech enhancement
- Esp8266 - beginner level Chapter 1
- Zero cost, zero foundation, build profitable film and television applet
- 山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(八)
- The usage of slice and the difference between slice and array
- 点云数据集常用处理
- Steps to build a deep learning environment GPU
猜你喜欢
精简CUDA教程——CUDA Driver API
MySQL syntax collation (4)
@Mapperscan and @ mapper
Zero base to build profit taking away CPS platform official account
FFT物理意义: 1024点FFT就是1024个实数,实际进入fft的输入是1024个复数(虚部为0),输出也是1024个复数,有效的数据是前512个复数
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(五)
Physical meaning of FFT: 1024 point FFT is 1024 real numbers. The actual input to FFT is 1024 complex numbers (imaginary part is 0), and the output is also 1024 complex numbers. The effective data is
Lottery applet, mother no longer have to worry about who does the dishes (assign tasks), so easy
php参考手册String(7.2千字)
Class loading mechanism
随机推荐
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(五)
uIP1.0 主动发送的问题理解
Main differences between go and PHP
Go modules daily use
C6748 软件仿真和硬件测试 ---附详细FFT硬件测量时间
FFT物理意义: 1024点FFT就是1024个实数,实际进入fft的输入是1024个复数(虚部为0),输出也是1024个复数,有效的数据是前512个复数
Shanda Wangan shooting range experimental platform project - personal record (V)
Go three ways to copy files
Virtual machine performance monitoring and fault handling tools
Unity general steps for creating a hyper realistic 3D scene
Web Security
Inject Autowired fields into ordinary beans
LPC1768 关于延时Delay时间与不同等级的优化对比
如何在BNB链上创建BEP-20通证
深度学习——特征工程小总结
Prefer composition to inheritance
goroutine
Grafana shares links with variable parameters
MFCC: Mel频率倒谱系数计算感知频率和实际频率转换
Mysql database - single table query (III)