Wednesday, 1 January 2014

Ices2 examples - page eight

Ices2 comes with a couple of example xml playlist files, which are located in /usr/share/doc/ices2/examples. The examples are;
ices-alsa.xml
ices-oss.xml
and
ices-playlist.xml


The first two examples use the 'oss' module and takes input from the OSS audio device (e.g. line-in), and processes it for live encoding.

The ices-playlist.xml example is what we are going to use. It has 'submodules' to support different types of playlist, however we'll use the basic simple file-based playlist.

We'll make a copy of the ices-playlist file and modify it for our installation.
cp /usr/share/doc/ices2/examples/ices-playlist.xml /etc/ices2

nano /etc/ices2/ices-playlist.xml

Make the following changes
 1. Locate ‹background› section and change value 0 to 1.
          <!-- run in background -->
              <background>1</background>

 2. Locate ‹metadata› section and change name, genre and description according to your desires.
           <metadata>
                 <name>Change this to your stream's name</name>
                 <genre>Change thias to your stream's genre</genre>
                 <description>Change this to a short description of your stream</description>
           </metadata>

 3. Locate ‹param name=”file”› and change it to the path to your playlist.
           <param name="file">/home/music/ogg/ogg-playlist.txt</param>

 4. Locate the <instance> section and change;
         the password from 'hackme' to the same source password you set in the icecast.xml file.
              <password>my1pa55w0rd</password>
         the mount name to something appropriate to your stream
            <mount>/countrystrm.ogg</mount>

The mount should end in .ogg because icecast streams in ogg and all receiving clients may not be able to figure out it is ogg without the mountpoint having the appropriate ending. [i.e: mycountrystream will work with 'most' ogg enabled clients, but mycountystream.ogg will work with all ogg enabled clients]

No comments:

Post a Comment