This how-to assumes you’ve already read and followed most of Frozen. As mentioned in the previous article, this how-to is for Ubuntu 9.04. Once you have icecast and liveice working, you may want to use mp3’s as your source instead of live audio from your soundcard.
The relevant bits are in liveice.cfg:
SERVER hostnameofserver
PORT 8000
PASSWORD yourpasswordforicecast
USE_LAME3 /usr/bin/lame
NO_SOUNDCARD
HALF_DUPLEX
SAMPLE_RATE 22050
BITRATE 32000
MONO
ENCODING QUALITY 30
HTTP_LOGIN
MOUNTPOINT live
NAME, GENRE, PUBLIC, URL, and DESCRIPTION are all up to you
PASSWORD your icecast password again
MIXER
PLAYLIST /home/user/someplaylistfile
DECODER_COMMAND /usr/bin/mpg123
UPDATE_DELAY 1
MIX_CONTROL_AUTO
The playlist file is simply plaintext, with one file per line, listed as the full path. Example:
/home/user/music/song1.mp3
/home/user/music/song2.mp3
/home/user/music/song3.mp3
Fire it up as before with:
./liveice -@ 2 -F liveice.cfg
Skip the ‘-@ 2’ switch if you’re having trouble, and increase VERBOSE to 10 in liveice.cfg if necessary.