Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

oss works, alsa doesn't

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients
View previous topic :: View next topic  
Author Message
Frank Cox



Joined: 13 Jun 2009
Posts: 17

PostPosted: Mon Jan 18, 2010 9:19 pm    Post subject: oss works, alsa doesn't Reply with quote

I am trying to get a FM radio station to stream using Icecast and Ices but I have two issues, one of which I think I have gotten around and the other is a showstopper. Both of these issues may be related.

The "gotten around" issue is that ices doesn't work with the alsa setup on my audio server computer.

/proc/asound/card0/pcm0c/info shows this:
card: 0
device: 0
subdevice: 0
stream: CAPTURE
id: STAC92xx Analog
name: STAC92xx Analog
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 2
subdevices_avail: 2

arecord -l shows this:
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1

It's my understanding that this device should be specified as hw:0,0 (which is the default in the example alsa configuration file.

However, when I do a "service ices start" with this setup, I get this error message:
EROR input-alsa/alsa_open_module Failed to open audio device hw:0,0: No such file or directory

My "solution" to this was to try using the oss configuration and that starts and appears to work.

INFO stream/ices_instance_stream Connected to server: 192.168.0.196:8000/example1.ogg
[2010-01-18 14:12:00] INFO ices-core/main IceS 2.0.1 started...
[2010-01-18 14:12:00] INFO input-oss/oss_open_module Opened audio device /dev/dsp at 2 channel(s), 44100 Hz
[2010-01-18 14:12:00] INFO input-oss/oss_open_module Starting metadata update thread
[2010-01-18 14:12:00] INFO signals/signal_usr1_handler Metadata update requested
[2010-01-18 14:12:00] INFO audio/downmix_initialise Enabling stereo->mono downmixing
[2010-01-18 14:12:00] INFO audio/resample_initialise Initialised resampler for 1 channels, from 44100 Hz to 22050 Hz
[2010-01-18 14:12:00] INFO encode/encode_initialise Encoder initialising in VBR mode: 1 channel(s), 22050 Hz, quality 0.000000
[2010-01-18 14:12:00] DBUG metadata/metadata_thread_signal meta thread wakeup
[2010-01-18 14:12:00] WARN metadata/metadata_thread_signal Failed to open file "test" for metadata update: No such file or directory
[2010-01-18 14:12:00] INFO stream/ices_instance_stream Connected to server: 192.168.0.196:8000/example1.ogg

However, when I connect to the server to listen to the stream I hear nothing but absolute silence. It's streaming and my client is downloading it but there is no sound to be heard.

Hence the second part of my inquiry, which I will post as a different message here because it's a somewhat different issue.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Jan 18, 2010 10:05 pm    Post subject: Reply with quote

try using default instead of hw:0,0. If you are getting silence then the capture settings on the mixer will be not set as you want.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frank Cox



Joined: 13 Jun 2009
Posts: 17

PostPosted: Mon Jan 18, 2010 10:17 pm    Post subject: Reply with quote

"default" works. Thanks!

Now I seem to have a choice of oss or alsa and I don't know a great deal about either: is there any advantage to one or the other?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Jan 18, 2010 11:00 pm    Post subject: Reply with quote

yes, quite simple really, oss came first but is now deprecated, alsa isn't

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frank Cox



Joined: 13 Jun 2009
Posts: 17

PostPosted: Mon Jan 18, 2010 11:40 pm    Post subject: Reply with quote

Ah... now I've learned something!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber