Super easy to setup, super reliable, low latency HLS with NGINX RTMP
WARNING WARNING WARNING do NOT run these steps on a server used for anything else!
The fastest way to get started is:
- Build out a fresh Ubuntu 20.04 machine or VM (ideally a VM)
- Do all the other steps as the root user (NOT
sudo
!) cd /root && git clone 'https://github.com/QuinnEbert/Easy-HLS-Website.git' && cd /root/Easy-HLS-Website/easy-installs && chmod +x ./Ubuntu-20.04-Install.sh && ./Ubuntu-20.04-Install.sh
- Point OBS to
rtmp://the-server-ip-address:1935/live
and set the stream key totestuser_testkey
- Point your desktop or iOS web browser to
http://the-server-ip-address/
and profit
I have not automated the build of the Ubuntu 20.04 FS overlay tarball yet so it may be out of date sometimes versus what's on the repo.
The RTMP server will save FLV VODs in /var/lib/rtmp
and HLS VODs in /var/lib/rtmp/hls
I will be building out a web-based interface that will do all the usual basic stuff you expect for a streaming site.
Thanks to Dre for boiling the basic process down to a science: View Dre's HLS Guide