[Icecast] streaming from the sound card

Jack Coates jack at monkeynoodle.org
Mon May 2 16:43:07 UTC 2005


Hi,

I'm trying to set up Icecast and Ices to stream from my sound card's 
line-in. I'm using ALSA. I'm experienced in Linux but haven't spent much 
time on multimedia and I'm new to streaming. Platform is Mandrake 10.1 
with kernel held to 2.4. The sound card is working and I can record to 
file using sox.

Ices and Icecast both start okay, and aren't logging any complaints. But 
when I try to connect to the ogg stream with Winamp, I get nothing. 
Using tethereal, I can see that the the connection handshakes okay, the 
metadata is passed back to the client, the client acks, and that's the 
end. Nothing is logged by icecast or ices, aside from this sort of thing:
[2005-05-02  09:38:04] DBUG connection/_handle_get_request Client connected
[2005-05-02  09:38:04] DBUG connection/_handle_get_request Source found 
for client

Any ideas? Here's the pertinent config...

icecast-2.0.1-1mdk
ices-2.0.0-4mdk

cat /etc/ices.conf
<?xml version="1.0"?>
<ices>
     <background>0</background>
     <logpath>/var/log/ices</logpath>
     <logfile>ices.log</logfile>
     <loglevel>4</loglevel>
     <consolelog>1</consolelog>
     <stream>
             <metadata>
                     <name>Radio Waves</name>
                     <genre>Any</genre>
                     <description>The real radio</description>
                     <url>http://www.monkeynoodle.org</url>
             </metadata>
             <input>
                    <module>alsa</module>
                    <param name="rate">44100</param>
                    <param name="channels">2</param>
                    <param name="device">hw:0,0</param>
                    <param name="buffer-time">500</param>
                    <param name="metadata">0</param>
             </input>
             <instance>
                     <hostname>localhost</hostname>
                     <port>8000</port>
...password line snipped
                     <mount>/stream.ogg</mount>
             </instance>
     </stream>
     <encode>
             <quality>3</quality>
             <channels>2</channels>
     </encode>
</ices>

cat /etc/icecast.xml
<icecast>
      <limits>
            <clients>100</clients>
            <sources>5</sources>
            <threadpool>5</threadpool>
            <queue-size>102400</queue-size>
            <client-timeout>30</client-timeout>
            <header-timeout>15</header-timeout>
            <source-timeout>10</source-timeout>
      </limits>
     <authentication>
... passwords snipped....
     </authentication>
     <hostname>localhost</hostname>
     <listen-socket>
             <port>8000</port>
     </listen-socket>
     <fileserve>1</fileserve>
... paths & logging snipped....
     <security>
             <changeowner>
                     <user>icecast</user>
                     <group>icecast</group>
             </changeowner>
     </security>
</icecast>

-- 
Jack at Monkeynoodle dot Org: It's a Scientific Venture...
Riding the Emergency Third Rail Power Trip since 1996!



More information about the Icecast mailing list