Setting up rtmp Live streaming service 1: Use Nginx to build rtmp server (nginx-rtmp module installation and rtmp live stream configuration)

Source: Internet
Author: User
Tags nginx server
I. Summary of the programme

First, through a careful study of the development Program (real-time monitoring, streaming media, data sources for live streaming scenarios--a simple introduction to the server-to-front playback: http://blog.csdn.net/eguid_1/article/details/51725970)

Second, using Nginx as rtmp live Streaming server

Because there is already an Nginx server, (the Nginx Web configuration: http://blog.csdn.net/eguid_1/article/details/51727060) This server runs two test sites, Very suitable for nginx-rtmp server building, so the final use of Nginx to build rtmp live streaming services.

Three, nginx configuration

1, the installation of Nginx-rtmp module

(Note: Because this piece of things more, directly outside the chain I installed when the reference site, or very good)

1.1, Nginx environment can be built using lamp package for integrated environment installation (more convenient, quick installation)

Can see here: https://blog.linuxeye.com/31.html

1.2. NGINX-RTMP module installation and on-demand configuration

Can see here: https://blog.linuxeye.com/383.html

2, the configuration of Nginx

Add an rtmp server on top of the previous Web configuration,

(Note: The RTMP service is a standalone service, do not confuse the HTTP service, the default listener 1935 port, allow all users to play)

The configuration is as follows:

#rtmp servicertmp{#LIVE  server  {     listen 1935;     Chunk_size 4000;     Application Live     {        live on;               Allow play All;}}   }

Add: I have configured this:


The above describes the establishment of RTMP live streaming service 1: Using Nginx to build rtmp server (nginx-rtmp module installation and rtmp live streaming configuration), including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Related Article

    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.