Simple Rtmp Server installation and ease of use

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.