Simple RTMP Server is an open source Rtmp/hls streaming media server written by people in the ROC. Functions are similar to nginx-rtmp-module, enabling the distribution of Rtmp/hls.
Reference to the Nginx-rtmp-module: http://blog.csdn.net/redstarofsleep/article/details/45092147
Simple compilation and installation process
./configure--prefix=/usr/local/srs--rtmp-hls make make and install
The standard three commands will complete the installation. --rtmp-hls indicates that rtmp and HLS are turned on, and other compilation parameters can be viewed through the./configure-h.
After installation, there are three folders under the directory conf, etc, Objs. We commonly use the contents of Conf and OBJS two directories, Conf is an example of various configuration files, Objs is an executable file.
Start the server by specifying a configuration file with the-c parameter
./objs/srs-c conf/hls.conf
In the case of HLS, the configuration file is probably like this:
# The config for SRS to delivery hls# @see https://github.com/winlinvip/simple-rtmp-server/wiki/v1_CN_SampleHLS# @see ful l.conf for detail Config.listen 1935;max_connections 1000;vhost __defaultvhost__ { HLS { enabled on ; Hls_path /usr/local/nginx/html; Hls_fragment ; Hls_window ;} }
The Hls_path is the directory where HLS shard TS files and m3u8 are stored, and in the example above, I assign it to Nginx. This allows you to play the HLS video stream directly.
If it's ffmpeg push, it's the same as Nginx-rtmp-module:
Ffmpeg-re-i "D:\download\film\aqgy\02.mp4"-vcodec libx264-vprofile baseline-acodec aac -ar 44100-strict-2-ac 1-f flv-s 1280x720-q rtmp://server:1935/ myapp/test1
Overall, this simplertmpserver in the configuration of the use of no difficulty, the basic reference is nginx-rtmp-module.
Reprint Please indicate the source
Http://blog.csdn.net/redstarofsleep
Simple Rtmp Server installation and ease of use