Translated from the Chinese original by Claude.
Just making a note of this.
First, build nginx with the RTMP module
Download the source code for nginx and the RTMP module
1 | git clone https://github.com/arut/nginx-rtmp-module.git |
Go into the root of the nginx source tree
1 2 3 | ./configure --add-module=<path-to-nginx-rtmp-module> +other options make && make install |
Next, configure nginx.conf
vi /usr/local/nginx/conf/nginx.conf
Add a basic RTMP configuration
1 2 3 4 5 6 7 8 9 | rtmp { server { listen 1935; chunk_size 4000; application live { live on; } } } |
For all the RTMP module’s settings, see https://github.com/arut/nginx-rtmp-module/wiki/Directives
If you have a firewall, remember to open port 1935.
That’s the basics set up. Use any streaming software, OBS for example: set the FMS URL to rtmp://IP/live and type anything you like as the stream key, test for instance.
Once you start streaming, you can watch the live stream at rtmp://IP/live/test in any player that supports RTMP.
That’s it for now; I’ll dig deeper some other time…



