Victor Riera Salvador Priego Okpo Kalu. Programs and Libraries Icecast Installation Ices...

Post on 21-Dec-2015

220 views 2 download

Tags:

Transcript of Victor Riera Salvador Priego Okpo Kalu. Programs and Libraries Icecast Installation Ices...

AUDIO STREAMINGSERVER

Victor Riera

Salvador Priego

Okpo Kalu

INDEX

Programs and Libraries Icecast Installation Ices Installation Runing the server Playing the streaming Problems Conclusion

PROGRAMS AND LIBRARIES 1/2 Libraries needed to install

Libshout 2.2.2

Shout-python

Libogg 1.2.1

Libvorbis 1.3.2

Fortran compiler

PROGRAMS AND LIBRARIES 2/2 Programs needed:

Icecast 2.3.2 -> Audio streaming server

Ices 2.0.1 ->Send the Ogg Vorbis stream to an icecast server

Xmms or Winamp -> Clients to reproduce the streaming

ICECAST INSTALLATION 1/3

Download and Install

$ wget http://downloads.xiph.org/releases/icecast/icecast-2.3.2.tar.gz tar zxf icecast-2.3.2.tar.gz

$ tar zxf icecast-2.3.2.tar.gz

$ ./configure$ make$ make install

ICECAST INSTALLATION 2/3

ConfigurationFirst we need to create some folders and

files needed.

$ wget http://www.paginasprodigy.com.mx/SOAD1982/Icest-Config.tar.gz

$ tar zxcvf Icest-Config.tar.gz

$ touch /var/log/Music_Server.log$ chmod 777 /var/log/Music_Server.log

$ mkdir /usr/share/icecast/web$ mkdir /usr/share/icecast/admin

ICECAST INSTALLATION 3/3

Edit the configuration fileWe only need the edit the next commands.

<authentication><source-password>12345</source-password><relay-password>12345</relay-password><admin-user>admin</admin-user><admin-password>12345</admin-password></authentication>

<hostname>192.168.10.51</hostname>

<listen-socket><port>8000</port></listen-socket>

<paths><basedir>/usr/share/icecast</basedir><logdir>/var/log/</logdir><webroot>/usr/share/icecast/web</webroot><adminroot>/usr/share/icecast/admin</adminroot><alias source="/" dest="/status.xsl"/></paths>

<logging><accesslog>Music_Server.log</accesslog><errorlog>Music_Server.log</errorlog>

<changeowner> <user>kalu</user>

ICES INSTALLATION 1/2

Download and Install

$ wget http://downloads.us.xiph.org/releases/ices/ices-2.0.1.tar.gz

$ tar zxf ices-2.0.1.tar.gz

$ ./configure$ make$ make install

ICES INSTALLATION 2/2

Create the configuration fileCreate a new file, config.xml in the

instalation folder

<?xml version="1.0"?><ices><background>1</background><logpath>/etc/icecast/</logpath><logfile>LogIces.log</logfile><loglevel>4</loglevel><consolelog>0</consolelog>

<stream>

<metadata> <name>LNS radio</name> <genre>All</genre> <description>Radio for LNS</description> </metadata>

<input><module>playlist</module><param name="type">basic</param><param name="file">/usr/local/bin/playlist.txt</param><param name="random">0</param><param name="restart-after-reread">0</param><param name="once">0</param></input>

<instance>

<hostname>192.168.10.51</hostname><port>8000</port>

<password>12345</password><mount>/mpd.ogg</mount><reconnectdelay>2</reconnectdelay><reconnectattempts>5</reconnectattempts><maxqueuelength>80</maxqueuelength>

<encode><nominal-bitrate>64000</nominal-bitrate><samplerate>44100</samplerate><channels>2</channels></encode>

</instance></stream></ices>

RUNING THE SERVER 1/2

Run Icecast

Test if it´s working With the web browser

$ icecast –c /etc/icecast/icecast.xml

http://192.168.10.51:8000

RUNING THE SERVER 2/2

Run Ices

Test if it´s workingWith the web browser You should get the mount point

$ ices /etc/ices/config.xml

http://192.168.10.51:8000

PLAYING THE STREAMING

LinuxXmms for example

WindowsWinamp for example

Open the music player, and play the location

http://192.168.10.51:8000/mpd.ogg

PROBLEMS

Many libraries needed during the compilation of Icecast and Ices Just install all the libraries asked and retry the installation.

Error on the website ERROR: “Could not parse XSLT file” This problem is because you don´t have the correct web folders in

the config file. Make sure that you have the next forlders

Problem trying to conect to the server with another computer Disable Iptables in the server, use the “setup” command

CONCLUSION

Easy way to have your own Audio streaming server for free.

Useful if you are working out of your home.

The hardest part is to realize that ICECAST and ICES work together to make the stream possible

THANK YOU FOR YOUR ATTENTION!