IceS is a source client that streams an audio stream from various possible sources into a stream that is fed to the Icecast streaming server. IceS v2 is a command line application that supports sending an Ogg Vorbis stream to an Icecast server. This can be live audio (e.g. from a sound card) or Ogg Vorbis files from a play list. We will be using a playlist.
Note, Ices2 will only stream ogg format files.
install ices2
apt-get install ices2
AS part of the configuration of Ices we need to create a few necessary directories
mkdir /var/log/ices
mkdir /etc/ices2
You can do a mkdir /etc/ices2/music, but I prefer to create a music user and put all the music for all possible streaming clients in one spot. create a user 'music';
adduser music
You can covert mp3 files to ogg with vlc, VLC works on both linux and windows machines.
There are other free conversion tools available at Vorbis.com [http://www.vorbis.com].
In the music users home directory add an ogg and mp3 directory. Upload [or move] your *.ogg files to /home/music/ogg and your *.mp3 files to /home/music/mp3.
To make a playlist file install tree and use it to create the playlist file.
apt-get install tree
tree -if /home/music/ogg/ > /home/music/ogg/ogg-playlist.txt [note; the 'if' isn't a condition, but command switches, to not print lead characters, and print full path. for more info do tree --help]
and
tree -if /home/music/mp3/ > /home/music/mp3/mp3-playlist.txt
Clean up your newly created playlist.txt files by deleting the lines not containing songs. [the first and last two lines]
nano /home/music/ogg/ogg-playlist.txt
and
nano /home/music/mp3/mp3-playlist.txt
No comments:
Post a Comment