Install Icecast from source code:
Download and install http://downloads.xiph.org/releases/icecast/icecast-2.3.2.tar.gz
if you are doing it, you aren’t a simple GNU/Linux user and you know install it without guide.
Install Icevast with apt-get package management
apt-get install icecast-server
service icecast-server stop
Download MP3-Info, MP3-Icecast and MP3-Icecast-Simple Perl modules
wget http://search.cpan.org/CPAN/authors/id/D/DA/DANIEL/MP3-Info-1.24.tar.gz http://search.cpan.org/CPAN/authors/id/A/AL/ALLENDAY/MP3-Icecast-0.02.tar.gz http://search.cpan.org/CPAN/authors/id/G/GR/GREGORY/MP3-Icecast-Simple-0.2.tar.gz
Install each package
perl Makefile.PL
make
sudo make install
Create file streaming.pl and use this code:
#!/usr/bin/perl
use MP3::Icecast::Simple;$icy = MP3::Icecast::Simple->new(
description => “Station”,
server => ’127.0.0.1:8000′,
password => ‘password’,
local_port => 1234, # port for stream
bitrate => 96 # bit rate for stream
);
$icy->play(“/Mp3/”); # directory where is locate your mp3 that you want stream
Now you can listen via http://youripadd:1234
Use XMMS, mplayer, Winamp, or something like that
