AUDIO STREAMING SERVER Victor Riera Salvador Priego Okpo

  • Slides: 18
Download presentation
AUDIO STREAMING SERVER Victor Riera Salvador Priego Okpo Kalu

AUDIO STREAMING SERVER Victor Riera Salvador Priego Okpo Kalu

INDEX � Programs and Libraries � Icecast Installation � Ices Installation � Runing the

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

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

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 2.

ICECAST INSTALLATION 1/3 � Download and Install $ wget http: //downloads. xiph. org/releases/icecast 2. 3. 2. tar. gz tar zxf icecast-2. 3. 2. tar. gz $. /configure $ make install

ICECAST INSTALLATION 2/3 � Configuration �First we need to create some folders and files

ICECAST INSTALLATION 2/3 � Configuration �First we need to create some folders and files needed. $ wget http: //www. paginasprodigy. com. mx/SOAD 1982/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

<authentication> <source-password>12345</source-password> <relay-password>12345</relay-password> <admin-user>admin</admin-user> <admin-password>12345</admin-password> </authentication> ICECAST INSTALLATION 3/3 � Edit the configuration file

<authentication> <source-password>12345</source-password> <relay-password>12345</relay-password> <admin-user>admin</admin-user> <admin-password>12345</admin-password> </authentication> ICECAST INSTALLATION 3/3 � Edit the configuration file <hostname>192. 168. 10. 51</hostname> We only need the edit the next commands. � <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 INSTALLATION 1/2 � Download and Install $ wget http: //downloads. us. xiph. org/releases/ices 2. 0. 1. tar. gz $ tar zxf ices-2. 0. 1. tar. gz $. /configure $ make install

ICES INSTALLATION 2/2 <? xml version="1. 0"? > <ices> <background>1</background> <logpath>/etc/icecast/</logpath> <logfile>Log. Ices. log</logfile>

ICES INSTALLATION 2/2 <? xml version="1. 0"? > <ices> <background>1</background> <logpath>/etc/icecast/</logpath> <logfile>Log. Ices. log</logfile> <loglevel>4</loglevel> <consolelog>0</consolelog> � Create <instance> <hostname>192. 168. 10. 51</hostname> <port>8000</port> <password>12345</password> the configuration file <mount>/mpd. ogg</mount> <reconnectdelay>2</reconnectdelay> <reconnectattempts>5</reconnectattempts> <maxqueuelength>80</maxqueuelength> �Create a new file, config. xml in the <stream> instalation folder <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> <encode> <nominal-bitrate>64000</nominal-bitrate> <samplerate>44100</samplerate> <channels>2</channels> </encode> </instance> </stream> </ices>

RUNING THE SERVER 1/2 � Run Icecast $ icecast –c /etc/icecast. xml � Test

RUNING THE SERVER 1/2 � Run Icecast $ icecast –c /etc/icecast. xml � Test if it´s working �With the web browser http: //192. 168. 10. 51: 8000

RUNING THE SERVER 2/2 � Run Ices $ ices /etc/ices/config. xml � Test if

RUNING THE SERVER 2/2 � Run Ices $ ices /etc/ices/config. xml � Test if it´s working �With the web browser � You should get the mount point http: //192. 168. 10. 51: 8000

PLAYING THE STREAMING � Linux �Xmms for example � Windows �Winamp for example �

PLAYING THE STREAMING � Linux �Xmms for example � Windows �Winamp 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

PROBLEMS � Many libraries needed during the compilation of Icecast and Ices � Just install 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. �

CONCLUSION � Easy way to have your own Audio streaming server for free. � Useful home. � The if you are working out of your hardest part is to realize that ICECAST and ICES work together to make the stream possible

THANK YOU FOR YOUR ATTENTION!

THANK YOU FOR YOUR ATTENTION!