Rob Campbell
2006-Feb-16 21:48 UTC
[Icecast] Ices crashes all of a sudden: EROR input-oss/oss_read Error reading from audio device: Input/output error
It was kind of working for a while but I could not hear the stream but it was running. I started messing with alsamixer and now it crashes. I see the error but I don't know how to fix it. ices-oss-xml: (alsa is the same just a different input module) <?xml version="1.0"?> <ices> <!-- run in background --> <background>0</background> <!-- where logs go. --> <logpath>/home/iceuser/log/ices</logpath> <logfile>ices.log</logfile> <!-- size in kilobytes --> <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>thisthatshit</password> <mount>/thegospel.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> error.log: [2006-02-17 00:45:10] INFO ices-core/main IceS 2.0.1 started... [2006-02-17 00:45:10] INFO input-oss/oss_open_module Opened audio device /dev/dsp at 2 channel(s), 44100 Hz [2006-02-17 00:45:10] INFO input-oss/oss_open_module Starting metadata update thread [2006-02-17 00:45:10] INFO signals/signal_usr1_handler Metadata update requested [2006-02-17 00:45:10] WARN metadata/metadata_thread_signal Failed to open file "test" for metadata update: No such file or directory [2006-02-17 00:45:10] INFO audio/downmix_initialise Enabling stereo->mono downmixing[2006-02-17 00:45:10] INFO audio/resample_initialise Initialised resampler for 1 channels, from 44100 Hz to 22050 Hz [2006-02-17 00:45:10] INFO encode/encode_initialise Encoder initialising in VBR mode: 1 channel(s), 22050 Hz, quality 0.000000 [2006-02-17 00:45:10] INFO stream/ices_instance_stream Connected to server: localhost:8000/thegospel.ogg [2006-02-17 00:45:20] EROR input-oss/oss_read Error reading from audio device: Input/output error [2006-02-17 00:45:20] DBUG stream-shared/stream_wait_for_data Shutdown signalled: thread shutting down [2006-02-17 00:45:20] DBUG encode/encode_clear Clearing encoder engine [2006-02-17 00:45:20] DBUG input/input_loop An instance died, removing it [2006-02-17 00:45:20] DBUG input/input_flush_queue Input queue flush requested [2006-02-17 00:45:20] INFO input/input_loop All instances removed, shutting down... [2006-02-17 00:45:20] INFO metadata/metadata_thread_signal metadata thread shutting down [2006-02-17 00:45:20] INFO ices-core/main Shutdown complete [2006-02-17 00:45:21] INFO ices-core/main IceS 2.0.1 started... [2006-02-17 00:45:21] INFO input-alsa/alsa_open_module Opened audio device hw:0,0 [2006-02-17 00:45:21] INFO input-alsa/alsa_open_module using 2 channel (s), 44100 Hz, buffer 371 ms [2006-02-17 00:45:21] INFO input-alsa/alsa_open_module Starting metadata update thread [2006-02-17 00:45:21] INFO signals/signal_usr1_handler Metadata update requested [2006-02-17 00:45:21] WARN metadata/metadata_thread_signal Failed to open file "test" for metadata update: No such file or directory [2006-02-17 00:45:21] INFO audio/downmix_initialise Enabling stereo->mono downmixing[2006-02-17 00:45:21] INFO audio/resample_initialise Initialised resampler for 1 channels, from 44100 Hz to 22050 Hz [2006-02-17 00:45:21] INFO encode/encode_initialise Encoder initialising in VBR mode: 1 channel(s), 22050 Hz, quality 0.000000 [2006-02-17 00:45:21] INFO stream/ices_instance_stream Connected to server: localhost:8000/thegospel.ogg [2006-02-17 00:45:31] EROR input-alsa/alsa_read snd_pcm_readi failed: Input/output error [2006-02-17 00:45:31] DBUG stream-shared/stream_wait_for_data Shutdown signalled: thread shutting down [2006-02-17 00:45:31] DBUG encode/encode_clear Clearing encoder engine [2006-02-17 00:45:31] DBUG input/input_loop An instance died, removing it [2006-02-17 00:45:31] DBUG input/input_flush_queue Input queue flush requested [2006-02-17 00:45:31] INFO input/input_loop All instances removed, shutting down... [2006-02-17 00:45:31] INFO metadata/metadata_thread_signal metadata thread shutting down [2006-02-17 00:45:31] INFO ices-core/main Shutdown complete -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/icecast/attachments/20060217/d9ac8142/attachment.htm