Tuesday, November 13, 2007

Streaming audio to icecast/shoutcast server on debian linux

After a long battle, I got it:

I installed lame from source. Then, I downloaded ices0 (which is only for mp3 files). I had to change the configure file because it wasn't finding shout. I probably don't need all of these, but it doesn't hurt.

# seed pkg-config with the default libshout location
PKG_CONFIG_PATH=${PKG_CONFIG_PATH:-/usr/local/lib/pkgconfig}
PKG_CONFIG_PATH=${PKG_CONFIG_PATH:-/usr/include}
PKG_CONFIG_PATH=${PKG_CONFIG_PATH:-/usr/lib/pkgconfig}

Then did:
make
make install

And that was it!
Well, almost... the last stretch was gratifyingly easy. It turns out xml support was not installed when I complied ices0, so... I did it all in the command line:

ices -h [myserver] -m / -p [myport] -P [mypass] -t icy -F playlist -v

My server was hosted by serverroom.us

However, since I don't want to enter all that stuff each time, I made a bash script that encapsulates it and I just call that script (which I put in /usr/local/bin) and I pass in the playlist file (file containing paths to mp3 files).

No comments: