Build an RTMP live stream server

Recently, the project is quite intense, so I don’t have much time to write a blog. I just happened to be fine these days, so I quickly record what I have learned recently.

Environmental configuration

  1. Server selection
    • The server I choose is Xiaoniaoyun, the reason is very simple, his personal user There are 3 months of free usage time.
  2. Server environment

    • Windows 2008 R2 64-bit
    • nginx for windows is used If you don’t know what nginx is to deploy the streaming server, please Google it yourself

      • conf/nginx.conf is an example of the configuration file
      • RTMP monitors port 1935 and enables live and hls. application
      • HTTP monitoring port 8080,

      • :8080/stat View stream status

      • :8080 /index.html is a live broadcast and live release tester
      • :8080/vod.html is a tester that supports RTMP and HLS on-demand
      • Push streaming address: http:/ /[Your server address]/hls/[stream name]
      • My address: http://118.192.157.108/hls/[stream name]
      • Pull stream address: http:[server address]:8080/hls/[stream name].m3u8
  3. installation

    • After downloading nginx for windows, run nginx.exe Open localhost:8080/index.html on the server, you can see that the non-404 page represents success
  4. To sum up, a simple RTMP server has been successfully built. You can push to the service to try it. In the follow-up, I will take the time to write a pusher. Of course, it must be copied. …

  5. For more use, please Google yourself

Leave a Comment

Your email address will not be published.