[Icecast] I can't run ices client - please help

Manuel J Contreras Maya manuel at agenteel.com
Tue Nov 29 02:30:33 UTC 2011


Hello,

I am running fedora 14 in a EeePC netbook. I managed to compile and run icecast server. I managed to compile ices client but I can't make it run. I need to stream from the sound card (mic). My card is this:

>lspci
...
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)
...

I guess, and this is my first question, that the device must be one of the ones inside /dev/snd since there is not /dev/dsp nor /dev/dsa.
The /dev/snd folder looks like this:

total 0
crw-rw----+  1 root audio 116, 2 Nov 28 14:35 timer
crw-rw----+  1 root audio 116, 3 Nov 28 14:36 seq
crw-rw----+  1 root audio 116, 6 Nov 28 14:36 hwC0D0
crw-rw----+  1 root audio 116, 7 Nov 28 14:36 controlC0
drwxr-xr-x   2 root root      60 Nov 28 14:36 by-path
drwxr-xr-x   3 root root     180 Nov 28 14:36 .
crw-rw----+  1 root audio 116, 5 Nov 28 14:36 pcmC0D0c
crw-rw----+  1 root audio 116, 4 Nov 28 15:36 pcmC0D0p
drwxr-xr-x  20 root root    3780 Nov 28 18:07 ..

Mi xml ices files <input> part is:

<input>
<module>oss</module>
<param name="rate">22050</param> <!-- samplerate -->
<param name="channels">1</param> <!-- number of channels -->
<param name="device">/dev/snd/pcmC0D0c</param> <!-- audio device -->
<param name="metadata">1</param> <!-- Read metadata from stdin? -->
</input>

I have tried with all devices listed in /dev/snd and with 44100 and 22050 rates and 1 or 2 channels but I always get the same error. I change the <encode> part in the xml accordingly with the values in <input>


<encode>
<bitrate>22050</bitrate>
<samplerate>22050</samplerate>
<channels>1</channels>
</encode>
  

The error I get when I run ices is this:


$ ices ices-live.xml
[2011-11-28  16:02:23] INFO ices-core/main IceS 2.0.1 started...
[2011-11-28  16:02:23] EROR input-oss/oss_open_module Failed to set sample format on audio device /dev/snd/pcmC0D0c: Inappropriate ioctl for device
[2011-11-28  16:02:23] EROR input/input_loop Couldn't initialise input module "oss"
[2011-11-28  16:02:23] INFO ices-core/main Shutdown complete

I guess I am about to make it work but I do not have a clue how to fix this since I have tried all the possibilities.

Any help is highly appreciated.

thanks,

Manuel



More information about the Icecast mailing list