Streaming media servers, using Red5 and Crtmp,srs
Red5 installation is simple, performance is general, the cluster configuration without document, the user is large, do not use.
CRTMP installation is simple, good performance, cluster configuration is simple, but configure the cluster needs to specify from the server rtmp flow address, do on-demand or more appropriate, do not very suitable for live.
SRS installation is simple, good performance, cluster configuration simple, diverse, unfortunately no connection pool, so you have to make a request for the unified entrance.
1,srs Download
Http://ossrs.net/srs.release/releases/index.html
Select the official hair version
2, installation
# Unzip Srs-centos6-x86_64-1.0.32.zip
# CD srs-centos6-x86_64-1.0.32
# Bash INSTALL//Installation
#/etc/init.d/srs Start/Launch
3, Release
# ffmpeg-re-i "/root/test.flv"-vcodec copy-acodec copy-f flv Rtmp://192.168.1.3/live/avatar
FFmpeg installation method, there are in this site.
4, configure the cluster
Vhost __defaultvhost__ {//Add the following two lines from the server, and reboot the SRS OK.
mode remote;
Origin 192.168.1.3:1935; Primary server address
}
Just add a two-line configuration from the server.
5, official documentation
Https://github.com/ossrs/srs/wiki/v1_CN_Home