18
AUDIO STREAMING SERVER Victor Riera Salvador Priego Okpo Kalu

AUDIO STREAMING SERVER

  • Upload
    makala

  • View
    88

  • Download
    9

Embed Size (px)

DESCRIPTION

Victor Riera Salvador Priego Okpo Kalu. AUDIO STREAMING SERVER. 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 - PowerPoint PPT Presentation

Citation preview

Page 1: AUDIO STREAMING SERVER

AUDIO STREAMINGSERVER

Victor RieraSalvador Priego

Okpo Kalu

Page 2: AUDIO STREAMING SERVER

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

Page 3: AUDIO STREAMING SERVER

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: AUDIO STREAMING SERVER

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: AUDIO STREAMING SERVER

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: AUDIO STREAMING SERVER

ICECAST INSTALLATION 2/3 Configuration

First 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: AUDIO STREAMING SERVER

ICECAST INSTALLATION 3/3 Edit the configuration file

We 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: AUDIO STREAMING SERVER

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: AUDIO STREAMING SERVER

ICES INSTALLATION 2/2 Create the configuration file

Create 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: AUDIO STREAMING SERVER

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: AUDIO STREAMING SERVER
Page 12: AUDIO STREAMING SERVER

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: AUDIO STREAMING SERVER
Page 14: AUDIO STREAMING SERVER

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

Page 15: AUDIO STREAMING SERVER
Page 16: AUDIO STREAMING SERVER

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: AUDIO STREAMING SERVER

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: AUDIO STREAMING SERVER

THANK YOU FOR YOUR ATTENTION!