Re-stream audio from SHOUTcast/Icecast in Wowza Streaming Engine

Learn how to use Wowza Streaming Engine™ media server software to re-stream SHOUTcast or Icecast audio streams for playback on all supported player technologies.

Note: Microsoft Silverlight doesn't support audio-only Smooth Streaming.

Contents


Tutorial Troubleshooting More resources

Tutorial


This tutorial shows you how to set up an application that re-streams SHOUTcast or Icecast streams. Wowza Streaming Engine administrators can configure live streaming applications in Wowza Streaming Engine Manager or by setting properties in Application.xml. Both methods have the same result. Wowza Media Server™ software administrators must configure live streaming applications in the Application.xml file.

Wowza Streaming Engine Manager configuration

This section shows you how to set up a live streaming application in Wowza Streaming Engine Manager. Users play the live stream to listen to the event as it happens. The example uses an application named live, which is included in default Wowza Streaming Engine software installations. If you want to create a new live streaming application, you can use this same procedure.

You can use Wowza Streaming Engine Manager with the latest versions of most web browsers that support HTML5 and Cascading Style Sheets level 3 (CSS 3). We recommend Google Chrome.
 
  1. Make sure Wowza Streaming Engine Manager is running. See Start and stop Wowza Streaming Engine software.
     
  2. Click the Applications tab at the top of the page.
     
  3. Configure the live application:
     
    1. In the Applications contents panel, click live, and then click Edit. (This example uses the installed live application. If you want to create a new live streaming application, click Add Application in the contents panel, and then click Live. Follow the instructions in the UI.)


       
    2. On the live page, select all of the Playback Types except Microsoft Smooth Streaming, and then click Save. (Microsoft Silverlight doesn't support audio-only Smooth Streaming.)


       
    3. The following alert appears after every configuration change. You can wait until all changes are completed before you restart.

  4. Configure playback authentication:
     
    1. In the contents panel, click Playback Security, and then click Edit.

    2. On the Playback Security page, select No client restrictions, and then click Save.

  5. Restart the application.

The application runs whenever Wowza Streaming Engine is running.

Publishing the stream

This section provides the basic steps for creating a .stream file to publish your stream to Wowza Streaming Engine.
 
  1. Create the .stream file:
     
    1. In the Server contents panel, click Stream Files, and then click Add Stream File.


       
      Note: You can also start the procedure to create a .stream file in the Applications contents panel for the live application.
    2. In the Add Stream File dialog box, enter a name for the new stream file, enter Stream URI, and then click Add.



      The URL that you use to connect to a SHOUTcast or Icecast server is one of the URLs that's contained in a SHOUTcast playlist (.pls) file or Icecast (.m3u) playlist file. Most websites that publish SHOUTcast or Icecast streams have links that reference these files. To re-stream a SHOUTcast or Icecast stream, you must first download one of the playlist files to your local computer and then use one of the links found inside to connect to the published stream. Enter this link value in Stream URI.
  2. Start the stream:
     
    1. In the Server contents panel, click Stream Files, and then click the Connect icon for the stream file you created in step 1.


       
    2. In the Connect a Stream File dialog box, select live in Application Name and shoutcast in MediaCaster Type, and then click OK.


       
    3. The Connection successful notification is displayed.

XML configuration

Note: If you created your application by following the previous section, skip this section. If you make changes to Application.xml, any changed settings will be reflected in Wowza Streaming Engine Manager the next time it's started. Wowza Media Server admins must edit Application.xml in a text editor.
  1. Create application folder [install-dir]/applications/live.
     
  2. Create configuration folder [install-dir]/conf/live and copy [install-dir]/conf/Application.xml to this new folder.
     
  3. Edit the newly copied Application.xml file and make the following changes (some of these settings may already be present):
     
    1. Set the Streams/StreamType property to:
      <StreamType>live</StreamType>
    2. Set the HTTPStreamers property to:
      <HTTPStreamers>cupertinostreaming, sanjosestreaming, mpegdashstreaming</HTTPStreamers>
    3. Set the Streams/LiveStreamPacketizers property to:
      <LiveStreamPacketizers>cupertinostreamingpacketizer, sanjosestreamingpacketizer, mpegdashstreamingpacketizer</LiveStreamPacketizers>
    4. Set the RTP/Authentication/PlayMethod to:
      <PlayMethod>none</PlayMethod>
  4. Restart Wowza Streaming Engine.

Publishing the stream

Note: If you're using Wowza Streaming Engine, you can publish the stream in Streaming Engine Manager.
  1. Use a text editor to create the file [install-dir]/content/radiostation.stream and set the contents of this file to the full HTTP URL of a SHOUTcast or Icecast stream (see URL to connect to SHOUTcast or Icecast).
     
  2. Using a text editor, edit the file [install-dir]/conf/admin.password and add a user name and password that will be used to start and stop publishing of the radio station. The following is an example of the file with user name myUser and password myPassword:
    # Admin password file (format [username][space][password])
    # username password
    myUser myPassword
  3. Start Wowza Streaming Engine.
     
  4. Start the stream in Wowza Streaming Engine Manager:
     
    1. Enter the following URL in a web browser :
      URL: http://[wowza-ip-address]:8086/streammanager
    2. In the Security dialog box, enter your admin user name and password from step 2.
       
    3. In the Stream Manager webpage, click the [start-receiving-stream] link just below the live application folder.
       
    4. In the Start Receiving Stream dialog box, select the following MediaCaster Type option: shoutcast
       
    5. In the Stream Name field, enter radiostation.stream.
       
    6. Click OK.

Playback

Note: In the following examples, [wowza-ip-address] is the IP address or domain name of the Wowza Streaming Engine server.

Wowza Streaming Engine Manager

Click Test Players in the upper-right corner of the live application page. The Test Players window that opens includes test players that are preconfigured to stream the live stream named myStream over various streaming formats.

Each tab in the Test Players window either hosts a test player that you can use to play the live stream or provides instructions for playing the live stream. For example, to use the Adobe HDS protocol to play radiostation.stream, click the Adobe HDS tab, enter the information below, and then click Start.
 
  • Server: Enter [wowza-ip-address]:1935.
     
  • Application: Enter live.
     
  • Stream: Enter radiostation.stream.


The result when using the Adobe HDS tab on the player is the following URL:
 
http://[wowza-ip-address]:1935/live/radiostation.stream/manifest.f4m

The test players are also online on our Wowza Test Players webpage.

Example players

You can also use example players installed in [install-dir]/examples/ to test your streaming applications. For more information see the following articles:
 

Troubleshooting


URL to connect to SHOUTcast or Icecast

The URL that you use to connect to a SHOUTcast or Icecast server is one of the URLs that's contained in a SHOUTcast playlist (.pls) file or Icecast playlist (.m3u) file. Most websites that publish SHOUTcast or Icecast streams have links that reference these files. To re-stream a SHOUTcast or Icecast stream, you must first download one of the playlist files to your local computer and then use one of the links found inside to connect to the published stream.

RTSP/RTP

RTSP/RTP streaming is used to stream to Android and BlackBerry mobile devices. Android mobile devices formerly supported Adobe Flash player, but Android no longer supports Flash. Newer Android devices now support Apple HLS. HLS works best on Android 4.0 devices and above.

To stream to RTSP/RTP, be sure that UDP ports 0-65535 are open and properly mapped to the Wowza Streaming Engine server.
 
Note: To configure Wowza Streaming Engine for RTSP/RTP streaming, follow the instructions provided in How to troubleshoot RTSP/RTP playback.

Common problems with .stream files

Many text editors will append a .txt file name extension to the radiostation.stream file name. This will result in an error message similar to the following:
 
SDP file missing: c:/program files/wowza media systems/wowza streaming engine [version]/content/radiostation.stream

To fix this, go to the [install-dir]/content folder and remove the .txt file name extension from the file.

Property to change AAC packetization method

Wowza Streaming Engine can use the mpeg4-generic and mp4a-latm (3gpp) packetization methods to output AAC audio. The default packetization method is mpeg4-generic.

Wowza Streaming Engine Manager configuration

To switch to mp4a-latm (3gpp), do the following:
 
  1. Click the Applications tab and then click the name of your live application (such as live) in the contents panel.
     
  2. On the live application page Properties tab, click Custom in the Quick Links bar or scroll to the bottom of the page.
     
    Note: Access to the Properties tab is limited to administrators with advanced permissions. For more information, see Manage credentials.
  3. In the Custom area, click Edit.
     
  4. Click Add Custom Property, specify the following settings in the Add Custom Property dialog box, and then click Add:
     
    • Path: Select /Root/Application/RTP.
       
    • Name: Enter audioPacketizerAAC.
       
    • Type: Select String.
       
    • Value: Enter com.wowza.wms.rtp.packetizer.RTPPacketizerMPEG4LATM.
  5. Click Save, and then restart the live application to apply the changes.

XML configuration

To switch to mp4a-latm (3gpp):
 
  1. Use a text editor to open the [install-dir]/conf/[application]/Application.xml file for your live application and add the following property to the RTP/Properties container. Be sure to add the property to the correct <Properties> container in Application.xml as there are several such containers in the file.
    <Property>
        <Name>audioPacketizerAAC</Name>
        <Value>com.wowza.wms.rtp.packetizer.RTPPacketizerMPEG4LATM</Value>
    </Property>
  2. Restart Wowza Streaming Engine to apply the changes.

More resources