Marion Hall
2004-Oct-01 06:29 UTC
[Icecast] Problems getting Ices2 to work with live input.
I've got icecast2 and ices2 working with a playlist of ogg files and it works fine. I've been playing for a few days with getting my audio to work at all. I've now got my audio where I can play an ogg file from ogg123 -d oss filename.ogg. When I run ices ices-live.xml I get the following error in my log file: [2004-09-30 09:38:07] INFO ices-core/main IceS 2.0.0 started... [2004-09-30 09:38:07] EROR input-oss/oss_open_module Couldn't set sampling rate [2004-09-30 09:38:07] EROR input/input_loop Couldn't initialise input module "o ss" [2004-09-30 09:38:07] INFO ices-core/main Shutdown complete I know I'm missing something, but I'm not sure what. I also added icecast to the audio group to see if it would help. Ices is running as root. The config file is pretty much the default see below: <?xml version="1.0"?> <ices> <!-- run in background --> <background>0</background> <!-- where logs go. --> <logpath>/var/log/ices</logpath> <logfile>ices.log</logfile> <logsize>2048</logsize> <!-- 1=error, 2=warn, 3=infoa ,4=debug --> <loglevel>4</loglevel> <!-- logfile is ignored if this is set to 1 --> <consolelog>0</consolelog> <!-- optional filename to write process id to --> <!-- <pidfile>/home/ices/ices.pid</pidfile> --> <stream> <!-- metadata used for stream listing --> <metadata> <name>Example stream name</name> <genre>Example genre</genre> <description>A short description of your stream</description> <url>http://mysite.org</url> </metadata> <!-- Input module. This example uses the 'oss' module. It takes input from the OSS audio device (e.g. line-in), and processes it for live encoding. --> <input> <module>oss</module> <param name="rate">44100</param> <param name="channels">2</param> <param name="device">/dev/dsp</param> <!-- Read metadata (from stdin by default, or --> <!-- filename defined below (if the latter, only on SIGUSR1) --> <param name="metadata">1</param> <param name="metadatafilename">test</param> </input> <!-- Stream instance. You may have one or more instances here. This allows you to send the same input data to one or more servers (or to different mountpoints on the same server). Each of them can have different parameters. This is primarily useful for a) relaying to multiple independent servers, and b) encoding/reencoding to multiple bitrates. If one instance fails (for example, the associated server goes down, etc), the others will continue to function correctly. This example defines a single instance doing live encoding at low bitrate. --> <instance> <!-- Server details. You define hostname and port for the server here, along with the source password and mountpoint. --> <hostname>localhost</hostname> <port>8000</port> <password>hackme</password> <mount>/example1.ogg</mount> <yp>1</yp> <!-- allow stream to be advertised on YP, default 0 --> <!-- Live encoding/reencoding: channels and samplerate currently MUST match the channels and samplerate given in the parameters to the oss input module above or the remsaple/downmix section below. --> <encode> <quality>0</quality> <samplerate>22050</samplerate> <channels>1</channels> </encode> <!-- stereo->mono downmixing, enabled by setting this to 1 --> <downmix>1</downmix> <!-- resampling. Set to the frequency (in Hz) you wish to resample to, --> <resample> <in-rate>44100</in-rate> <out-rate>22050</out-rate> </resample> </instance> </stream> </ices> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/icecast/attachments/20041001/e3dad5cf/attachment.htm
Karl Heyes
2004-Oct-01 07:23 UTC
[Icecast] Problems getting Ices2 to work with live input.
On Fri, 2004-10-01 at 14:28, Marion Hall wrote:> I?ve got icecast2 and ices2 working with a playlist of ogg files and > it works fine. I?ve been playing for a few days with getting my audio > to work at all. I?ve now got my audio where I can play an ogg file > from ogg123 ?d oss filename.ogg. When I run ices ices-live.xml I get > the following error in my log file: > > > > [2004-09-30 09:38:07] INFO ices-core/main IceS 2.0.0 started... > > [2004-09-30 09:38:07] EROR input-oss/oss_open_module Couldn't set > sampling ratelooks like the driver doesn't do 44100, try 48000 instead karl.
Marion Hall
2004-Oct-01 08:25 UTC
[Icecast] Problems getting Ices2 to work with live input.
>looks like the driver doesn't do 44100, try 48000 instead>karl.I think that may have fixed it. I'll let you know as soon as I can get a radio or something to feed a live source into it. I've also got to find, I guess, a 1/8" stereo to 1/8" stereo patch cable at my local Radio Shack. Thanks for your help. Marion __________ NOD32 1.881 (20040930) Information __________ This message was checked by NOD32 antivirus system. http://www.nod32.com