tomeshnet / ipfs-live-streaming

Like HTTP live streaming, but with IPFS which is maybe better?
GNU General Public License v3.0
456 stars 74 forks source link

Push RTMP to HTTP (non-IPFS) streaming cluster #21

Open benhylau opened 6 years ago

benhylau commented 6 years ago

@ASoTNetworks can you describe what is required from your end since you are providing the servers?

ASoTNetworks commented 6 years ago

To stream to the non-IPFS cluster the IPFS RTMP server will push an RTMP stream to rtmp://10.100.80.1/tomesh/ournetworks over the OpenVPN connection.

Make sure there are only one device connected to the VPN or there will be conflict issues.

To connect to the VPN copy the OpenVPN file provided to /etc/openvpn/stream-client-tomesh.conf then run: systemctl enable openvpn@stream-client-tomesh systemctl start openvpn@stream-client-tomesh There should now be a tun interface with 10.100.80.x/24 IP address.

To push from NGINX RTMP module add the following lines in the application live section under allow play all; in nginx.conf. push rtmp://10.100.80.1 app=tomesh playpath=ournetworks; push_reconnect 1s;

After reloading NGINX the stream will be pushed to the streaming cluster.

benhylau commented 6 years ago

This is manually configured on rtmp-server to @ASoTNetworks's HLS cluster. Leaving open in case we want to document this later on.