当前位置:网站首页>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
边栏推荐
- FFT物理意义: 1024点FFT就是1024个实数,实际进入fft的输入是1024个复数(虚部为0),输出也是1024个复数,有效的数据是前512个复数
- 山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(七)
- Design of warehouse management database system
- Shanda Wangan shooting range experimental platform project - personal record (IV)
- goroutine
- Openharmony open source developer growth plan, looking for new open source forces that change the world!
- Esp8266 - beginner level Chapter 1
- [webrtc] add x264 encoder for CEF / Chromium
- MySQL syntax collation (4)
- [transfer] summary of new features of js-es6 (one picture)
猜你喜欢

Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (V)

Zero cost, zero foundation, build profitable film and television applet

@Mapperscan and @ mapper

Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (6)

如何在BNB鏈上創建BEP-20通證

Prefer composition to inheritance

Comment créer un pass BEP - 20 sur la chaîne BNB

MySQL syntax collation (2)

MySQL syntax collation

Kubernetes入门到精通-KtConnect(全称Kubernetes Toolkit Connect)是一款基于Kubernetes环境用于提高本地测试联调效率的小工具。
随机推荐
Kibana reports an error server is not ready yet. Possible causes
An example of using JNI to directly access surface data
php参考手册String(7.2千字)
NiO related Basics
What is a message queue
Mysql database - connection query
深度学习——特征工程小总结
How about Bohai futures. Is it safe to open futures accounts?
精简CUDA教程——CUDA Driver API
A simple (redisson based) distributed synchronization tool class encapsulation
MySQL syntax collation (2)
MySQL数据库 - 单表查询(一)
[report] Microsoft: application of deep learning methods in speech enhancement
Lpc1768 optimization comparison of delay time and different levels
Codeworks round 783 (Div. 2) d problem solution
MFC obtains local IP (used more in network communication)
MFCC: Mel频率倒谱系数计算感知频率和实际频率转换
Database query - course selection system
RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
First experience of using fluent canvas