victor riera salvador priego okpo kalu. programs and libraries icecast installation ices...

18
AUDIO STREAMING SERVER Victor Riera Salvador Priego Okpo Kalu

Post on 21-Dec-2015

219 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the streaming

AUDIO STREAMINGSERVER

Victor Riera

Salvador Priego

Okpo Kalu

Page 2: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the streaming

INDEX

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

Page 3: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the streaming

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

Page 4: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the 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

Page 5: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing 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

Page 6: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the streaming

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

Page 7: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the streaming

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>

Page 8: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the streaming

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

Page 9: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the streaming

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>

Page 10: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the streaming

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

Page 11: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the streaming
Page 12: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the streaming

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

Page 13: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the streaming
Page 14: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the streaming

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

Page 15: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the streaming
Page 16: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the streaming

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

Page 17: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the streaming

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

Page 18: Victor Riera Salvador Priego Okpo Kalu.  Programs and Libraries  Icecast Installation  Ices Installation  Runing the server  Playing the streaming

THANK YOU FOR YOUR ATTENTION!