OK .. got the streaming stuff working :
Test if audio card is configured allright (if not use alsamixer):
arecord -f cd -d 10 -t raw | lame -x - out.mp3
Install needed packages for streaming :
PART1 : Set up shoutcast server
apt-get install lame
apt-get install vorbis-tools libvorbis-dev
apt-get install ices2
Configure icecast :
backup the original icecast config
#cp -p /etc/icecast2/icecast.xml /etc/icecast2/icecast.xml.ori
Change passwords and usernames to 'admin' .
#vi /etc/icecast2/icecast.xml
<source-password>admin</source-password>
<relay-password>admin</relay-password>
<admin-user>admin</admin-user>
<admin-password>admin</admin-password>
edit this file :
#vi /etc/default/icecast2
and change
from "ENABLE=false"
to "ENABLE=true"
Configure ice2 :
ice2 need paths :
#mkdir /var/log/ices
#mkdir /etc/ices2
ice2 xml config file :
#cp -p cp /usr/share/doc/ices2/examples/ices-alsa.xml /etc/ices2/ices-alsa.xml
change these values :
from <param name="rate">44100</param>
to <param name="rate">48000</param>
from <in-rate>44100</in-rate>
to <in-rate>48000</in-rate>
With most soundcards ,the 44100 option give problems. So change this to 44800
FIRST TEST : Start all applications
start icecast2 :
/etc/init.d/icecast2 start
start the streamserver :
ices2 /etc/ices2/ices-alsa.xml
Check logs for errors : /var/log/ices/ices.log
To check the icecast server config :
http://192.168.xxx.xxx:8000/server_version.xsl
To test your streaming :
Right now connect with winamp (or with another stream client ) to you running machine :
http://192.168.xxx.xxx:8000/example1.ogg
PART2 : Setup stream client : liquidsoap (savonet)
Just follow the guide here :
http://savonet.sourceforge.net/wiki/wik ... ka=Savonet
For ubuntu install these lines are missing at the end :
useradd liquidsoap
make install
To test liquidsoap : Let's make a file based on our current running icecast server.
=> TODO
For external streaming (getting stream into mp3 file ):
example :
Used docs for creating this guide :
http://www.howtoforge.com/linux_webradi ... 2_ices2_p2 (doc for streaming with playlist)
http://www.communecation.net/pages/streaming.html (doc for streaming using darkice)
http://www.devshed.com/c/a/Multimedia/N ... h-Icecast/
http://savonet.sourceforge.net/wiki/wik ... tionUbuntu
FIRST CONCLUSIONS :
Has got much potential :
-the streaming works with a buffer ,thus enabling the possibility to do audio analysis just the same way ZM does :
This gives the possibility to :
-Here I'd like to get a VU meter application to monitor the sound level of the streaming app. IF ANYBODY KNOWS AN APP WHICH CAN DO THIS ,PLEASE PUT IT IN THIS POST !
-Get the audio recorded on approximately the same moment as the video recording of ZM starts !
-Working with streaming gives the ability to couple audio and browsers
-Seems to work well on local network ,with winamp streamclient. However doesn't work yet on the web .=> to verify.
TODO'S :
-Check if liquisoap is able to stream axis audio stream.
-Find application to monitor VU level in the audio stream
-Create script to record the audio stream into mp3 using 'liquidsoap'
-Find a way to get a flash app into page that is able to bring the audio into the browser. ( this site proves it can be done :
http://wiihear.com/ , here you can enter shoutcast url into a flash application)
-Get this whole setup into ZM perl scripts and also database. (I am not able to do this one. My perl and database knowledge is not big enough