diff --git a/README.md b/README.md index 6f7f563929018bcbd4367af783e04d0907a33621..7f108f07a64f9f363fdba3a1360acb091ffc3397 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,28 @@ A self-signed SSL certificate will be generated in this example, with SSL/TLS us This was tested on a Vultr 1 vCPU / 2GB RAM server running Fedora 33 x64. 1. Stop firewalld, as the cloud provider's firewall around the instance will suffice for testing. Just make sure port 22 & 443 are accessible. - - ```$ systemctl stop firewalld``` + + ``` + systemctl stop firewalld + ``` + 1. Install Icecast - - `$ dnf install -y icecast` + + ``` + dnf install -y icecas + ``` + 1. Generate a self-signed SSL certificate. - - `$ openssl req -x509 -nodes -days 365 -subj '/CN=icecastserver/O=icecastserver/C=SG' -newkey rsa:4096 -keyout /usr/share/icecast/ssl.crt -out /usr/share/icecast/ssl.crt` - - `$ chmod 644 /usr/share/icecast/ssl.crt` + + ``` + openssl req -x509 -nodes -days 365 -subj '/CN=icecastserver/O=icecastserver/C=SG' -newkey rsa:4096 -keyout /usr/share/icecast/ssl.crt -out /usr/share/icecast/ssl.crt + chmod 644 /usr/share/icecast/ssl.crt + ``` + 1. Make sure the following items are set within the Icecast configuration, within their respective sections. - - `$ vim /etc/icecast.xml` + ``` + vim /etc/icecast.xml + ``` ``` 2046000 @@ -45,7 +59,9 @@ This was tested on a Vultr 1 vCPU / 2GB RAM server running Fedora 33 x64. ``` 1. Start Icecast - - `$ icecast -b -c /etc/icecast.xml` + ``` + icecast -b -c /etc/icecast.xml + ``` ## Setup OBS @@ -72,7 +88,10 @@ This was tested on a Vultr 1 vCPU / 2GB RAM server running Fedora 33 x64. ## Connect to the Icecast stream 1. Open the `.ts` URL of the Icecast server using your media player of choice (MPV, VLC, PotPlayer etc) - - `$ mpv https:///.ts` + + ``` + mpv https:///.ts + ``` ### Troubleshooting @@ -93,7 +112,7 @@ This was tested on a Vultr 1 vCPU / 2GB RAM server running Fedora 33 x64. icecast-server-ip-address-goes-here - # Additionally, remove from the section + # Additionally, remove from the section # Remove the `tls=1` option from the the OBS `Muxer Settings`, or set try setting it to `tls=0`: @@ -107,7 +126,7 @@ This was tested on a Vultr 1 vCPU / 2GB RAM server running Fedora 33 x64. - Open the `.ts` URL of the Icecast server using your media player of choice (MPV, VLC, PotPlayer etc) ``` - $ mpv http://:8000/.ts + mpv http://:8000/.ts ``` ##### How can I get this to use a browser friendly video container so I can stream within a web browser?