Configuring Ices for mp3 streaming

First ensure that icecast is installed, if not then try install it using yum as it will install the latest version of icecast server, other option is download and install icecast and it rpm dependencies files. It's the easy way to get icecast running, read here for more info.

Download ices-0 here

Download ices with Prozilla

Remember, do not download ices-2 but download ices-0 if want to create mp3 streaming server, because ices-2 only support OGG format.

Create a folder named with ices and copy downloaded ices on that folder. Next is extract the downloaded ices files and go to it extracted directory and type:
./configure --prefix=/var/ices-new ;make ;make install.

Next goto /var/ices-new directory. Before editing config files, we need to create a mp3 playlist file.
Change to bin directory and create a new files using text editor like nano or vi and write below script.
#!/bin/sh
MP3="/your/parh/to/mp3/folder"
/usr/bin/find $MP3 -name "*.mp3" > playlist.pls
/usr/bin/find $MP3 -name "*.MP3" >> playlist.pls

Save this script as mp3list and chamod this file so it can be execute.
[root@host bin]#chmod u+x mp3list
[root@host bin]#./mp3list

Second line are to create a playlist file.

Now let's edit a config file. Goto /var/ices-new/etc folder and edit the ices.conf.dist and replace all config text with below.
<?xml version="1.0"?>
<ices:Configuration
xmlns:ices="http://www.icecast.org/projects/ices">
<Playlist>
<File>/var/icec-new/etc/playlist.pls</File>
<Randomize>1</Randomize>
<Type>builtin</Type>
<Module>ices</Module>
</Playlist>

<Execution>
<Background>1</Background>
<Verbose>0</Verbose>
<BaseDirectory>/tmp</BaseDirectory>
</Execution>

<Stream>
<Server>
<Hostname>localhost</Hostname>
<Port>8000</Port>
<Password>password</Password>
<Protocol>http</Protocol>
</Server>

<Mountpoint>/mp3</Mountpoint>
<Dumpfile>ices.dump</Dumpfile>
<Name>My Radio FM</Name>
<Genre>Pop Rock</Genre>
<Description>Pop Rock</Description>
<URL>http://serverhost:8000/mymp3.m3u</URL>
<Public>0</Public>

<Bitrate>128</Bitrate>
<Reencode>1</Reencode>
<Samplerate>44100</Samplerate>
<Channels>2</Channels>
</Stream>
</ices:Configuration>

Edit those bold text to match your's, and save it as ices.conf. It's time to try.

Go to /var/ices-new/bin and run ices using bellow command. But first icecast must be running otherwise ices will not run.
./ices -c /var/ices-new/etc/ices.conf
It's running now, open a web browser and point it to http://serverhost:8000/


Click on "Click to listen" and.. ahha.. i hear a music,

Now to get this ices run automatic on boot then add bellow code to /etc/rc.local
/var/ices-new/bin/ices -c /var/ices-new/etc/ices.conf
That's all hope this helpful and happy trying.

Links:
http://www.icecast.org/