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 

Darkice ALSA Soundcard input issues.

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



Joined: 08 Jan 2010
Posts: 2
Location: Washington

PostPosted: Fri Jan 08, 2010 10:44 pm    Post subject: Darkice ALSA Soundcard input issues. Reply with quote

Hello,

I am having some issues getting darkice to use an ALSA system for streaming sound from the sound card input. i can get it to work with OSS input but not ALSA. I would prefer to use ALSA so i can use one sound card for multable inputs ( ie use the rear input as one and the internal CD input as another) and multable instances of darkice, but I cant seem to get it to work.

here is what i get when i try to start darkice...

jason@Stream-BawFaw:~$ /usr/bin/darkice -v 0 -c /home/jason/darkice.cfg
DarkIce 0.20.1 live audio streamer, http://darkice.tyrell.hu/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/

Using config file: /home/jason/darkice.cfg
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM HW:0,2
DarkIce: DarkIce.cpp:1187: can't open connector [0]
jason@Stream-BawFaw:~$

here is my darkice config....

[general]
duration = 0
bufferSecs = 1

[input]
device = HW:1,2
sampleRate = 22050
bitsPerSample = 16
channel = 1

[shoutcast-0]
bitrateMode = cbr # variable bit rate mode
bitrate = 24
quality = 1.0 # encoding quality
server = ************* # host name of the server
port = **** # source port of the ShoutCast server,usually 8001
password = **** # source password to the ShoutCast server
name = BNSF Centralia South - Covers from Nisqually, Wa to Vancouver, Wa # name$
url = http://www.railroadradio.net # URL related to the stream
genre = Railroad Radio Scanner # genre of the stream

now it does work when i set the input devide to /dev/dsp , but i dont think i can have multable inputs with that.

any help would be greatly appreciated.
_________________
Jason J. Hill
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jan 08, 2010 11:10 pm    Post subject: Reply with quote

The device is wrong, try using something else, even the name default might be sufficient

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



Joined: 08 Jan 2010
Posts: 2
Location: Washington

PostPosted: Sat Jan 09, 2010 12:19 am    Post subject: Reply with quote

making the device "default" works, but i guess i need to know how to tell the first instance of darkice one device input and another instance with a seperate config file a different input. Im not sure what the devices should be...
_________________
Jason J. Hill
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Meswara Marco



Joined: 09 Apr 2011
Posts: 14

PostPosted: Mon Apr 11, 2011 6:21 am    Post subject: Reply with quote

karlH wrote:
The device is wrong, try using something else, even the name default might be sufficient

karl.


how do we go about determining the device name?
it so happens that /dev/dsp/ seems to work on mine.

lspci doesn't seem to be cutting it?
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 Apr 11, 2011 1:17 pm    Post subject: Reply with quote

lspci is for listing pci devices (so that would tell you what audio cards(s) you have installed) but it will not tell you how many DSP devices there are on a particular card. arecord -l should be enough to to show your capture devices.

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



Joined: 09 Apr 2011
Posts: 14

PostPosted: Tue Apr 12, 2011 3:32 am    Post subject: Reply with quote

karlH wrote:
lspci is for listing pci devices (so that would tell you what audio cards(s) you have installed) but it will not tell you how many DSP devices there are on a particular card. arecord -l should be enough to to show your capture devices.

karl.


Noted karl. When i run that command, this is what i get.

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

Is this hw0.0?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Apr 12, 2011 11:57 am    Post subject: Reply with quote

hw:0.0 is the reference for the actual card, but with alsa you also have names that act as wrappers around these devices like plughw:0.0 or default

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



Joined: 09 Apr 2011
Posts: 14

PostPosted: Thu Apr 14, 2011 5:20 am    Post subject: Reply with quote

karlH wrote:
hw:0.0 is the reference for the actual card, but with alsa you also have names that act as wrappers around these devices like plughw:0.0 or default

karl.


So how do i deduce the name of my sound card from the output of 'arecord -l' ? is there a way ?

How do we find out what are the wrapper names ? any commands to use ?

In my case , i just used /dev/dsp.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Apr 14, 2011 1:23 pm    Post subject: Reply with quote

the /dev/dsp reference is not for alsa, that is the OSS naming which alsa has a compatibility mechanism for.

hw:0.0 is card 0 device 0. arecord -L (according to the man page at least) lists the PCMs but these are primarily alsa questions so you should confirm that with the alsa project.

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



Joined: 09 Apr 2011
Posts: 14

PostPosted: Fri Apr 15, 2011 3:07 am    Post subject: Reply with quote

Thanx karl.
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