How to relay another stream

By relaying another stream, you are using a remote streaming server as the source for your broadcast, and rebroadcasting that server’s stream as your own.

The procedure for relaying another stream varies depending on the streaming server software you are using.

SHOUTcast v1

SHOUTcast v1 can only broadcast a single audio stream, so configuring a relay on SHOUTcast v1 is only used when you do not want to broadcast any original content of your own, and simply want to provide a mirror of the remote server.

To configure SHOUTcast v1 relaying:

  1. In the Centova navigation panel at the left-hand side of the screen, click Settings under the Configuration heading.
  2. Click the Relaying tab. If you do not see a Relaying tab, then you are not using SHOUTcast v1 and are looking at the wrong section.
  3. In the Stream server field, enter the hostname or IP address of the remote SHOUTcast server, eg: foo.example.com.
  4. In the Stream port field, enter the port number for the remote SHOUTcast server, eg: 8000.
  5. Click Update to save your changes.
  6. The server is now ready for relaying. Stop, then restart the server to apply your configuration changes.
  7. When your server comes back online, tune in to your relay server as a listener and verify that you hear the audio stream from the master server.

If you encounter any problems in step 7, there is most likely an error in your relay configuration. To troubleshoot the problem, visit the Logs page and look for errors in your Error Log.

SHOUTcast v2

Under SHOUTcast v2, a relay is simply configured as an additional mount point which rebroadcasts a single mount point from a remote SHOUTcast v1 or SHOUTcast v2 server. This allows you to provide a mirror of a single mount point from the remote server while still using your own SHOUTcast server to broadcast other content.

To configure SHOUTcast v2 relaying:

  1. In the Centova navigation panel at the left-hand side of the screen, click Settings under the Configuration heading.
  2. Click the Mount Points tab. If you do not see a Mount Points field, then you may be be using SHOUTcast v1. Please see the instructions above.
  3. Under the Current mount points selection box, click the Create new button to create a new mount point.
  4. Select the newly-created mount point and click the Settings tab.
  5. In the Stream path field, set an appropriate path for the new relay mount point, eg: /myrelay.
  6. Click the AutoDJ tab.
  7. Ensure that Use autoDJ is set to No.
  8. Click the Relaying tab.
  9. In the Relay URL field, enter the complete URL to the remote relay server, eg: http://foo.example.com:8000/ (if the remote server is a SHOUTcast v1 server) or http://foo.example.com:8000/stream (if the remote server is a SHOUTcast v2 server).
  10. Click Update to save your changes.
  11. The server should now be ready for relaying. Stop, then restart the server to apply your configuration changes.
  12. When your server comes back online, tune in to your server as a listener using the relay mount point and verify that you hear the audio stream from the master server.

If you encounter any problems in step 12, there is most likely an error in your relay configuration. To troubleshoot the problem, visit the Logs page and look for errors in your Error Log.

IceCast

There are two types of Icecast relays: master and mount point.

Master Relaying

Master relays pull all mount point sources from a remote IceCast server to a local slave server. This is effective for rebroadcasting content and providing a complete mirror of the remote server.

NOTE: The remote server must also be an IceCast server and must also be configured to allow master relaying. A master relay password is often required.

To configure Icecast master relaying:

  1. In the Centova navigation panel at the left-hand side of the screen, click Settings under the Configuration heading.
  2. Click the Master Relaying tab. If you do not see a Master Relaying tab.
  3. In the Master server field, enter the hostname or IP address of the remote IceCast server, eg: foo.example.com.
  4. In the Master port field, enter the port number for the remote IceCast server, eg: 8000.
  5. In the Master update interval field, enter the master update interval for this relay. The master update interval determines how often, in seconds, the relay will poll the master server to see if any new mount points are available. Typically 60 to 120 seconds is a reasonable value.
  6. In the Master password field, enter the master relay password for the remote IceCast server.
  7. In the Relay on demand field, choose whether or not to enable relay-on-demand. If enabled, the relay will only connect to the master IceCast server when one or more listeners are connected, and it will disconnect from the remote server when there are no more listeners. This saves bandwidth, but will also cause a short delay when the the first listener connects to the stream.
  8. Click the AutoDJ tab, if it exists, and ensure that AutoDJ Status is set to Disabled. This is critical as a server configured for master relaying cannot broadcast any other content, so the autoDJ will not be able to function in this mode.
  9. Click Update to save your changes.
  10. The server should now be ready for master relaying. Stop, then restart the server to apply your configuration changes.
  11. When your server comes back online, tune in to your relay server as a listener and verify that you hear the audio stream from the master server.

If you encounter any problems in step 11, there is most likely an error in your relay configuration. To troubleshoot the problem, visit the Logs page and look for errors in your Error Log.

Mount Point Relaying

Mount point relaying allows your server to rebroadcast a single mount point from a remote SHOUTcast or IceCast server. This allows you to provide a mirror of a single mount point from the remote server while still using your own IceCast server to broadcast other content.

To configure IceCast mount point relaying:

  1. In the navigation panel at the left-hand side of the screen, click Settings under the Configuration heading.
  2. Click the Mountpoint Relaying tab.
  3. In the Stream server field, enter the hostname or IP address of the remote streaming server, eg: 127.0.0.1.
  4. In the Stream port field, enter the port number for the remote streaming server, eg: 8000.
  5. In the Stream mount point field, enter the mount point to relay from the remote server, eg: /stream. If the remote server is a SHOUTcast v1 server (which does not support mount points), enter “/“.
  6. In the Local mount point field, enter the local mount point on which you want to rebroadcast the audio stream on your server, eg: /myrelay.
  7. In the Stream username field, enter the username required by the remote server to access the mount point (if any).
  8. In the Stream password field, enter the password required by the remote server to access the mount point (if any).
  9. In the Relay on demand field, choose whether or not to enable relay-on-demand. If enabled, the relay will only connect to the master server when one or more listeners are connected, and it will disconnect from the remote server when there are no more listeners. This saves bandwidth, but will also cause a short delay when the the first listener connects to the stream.
  10. In the Relay metadata field, choose whether or not to pull metadata updates from the remote server and display them to your listeners.
  11. Click Update to save your changes.
  12. The server should now be ready for mount point relaying. Stop, then restart the server to apply your configuration changes.
  13. When your server comes back online, tune in to your server as a listener using the relay mount point and verify that you hear the audio stream from the relay server.

If you encounter any problems in step 13, there is most likely an error in your relay configuration. To troubleshoot the problem, visit the Logs page and look for errors in your Error Log.

Updated on September 15, 2020

Was this article helpful?

Related Articles