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 

one soundcard - ices2.0 and arecord want both acces to alsa

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





PostPosted: Wed Apr 05, 2006 12:07 pm    Post subject: one soundcard - ices2.0 and arecord want both acces to alsa Reply with quote

Hello
I have configured ices2.0 and it work fine.
But at one Server I am recording alle time with arecord ( for a free (!) Radio Station) the broadcast.
Both recording with alsa and ices dosent work.

If stated ices2.0 during arecord runnig , ices2.0 not work.
LOG-File:
Code:

[2006-04-05  13:45:52] INFO ices-core/main IceS 2.0.1 started...
[2006-04-05  13:47:10] INFO signals/signal_int_handler Shutdown requested...

If I stopped the recording witch arecord ices2 work fine.

I have configured the xml file so:
Code:
<input>
            <module>alsa</module>
            <param name="rate">44100</param>
            <param name="channels">2</param>
            <param name="device">plughw:0,0</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>


Has anyone a idee what I can do that both programms arecord an ices can use ALSA?
thanks
Chris
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Apr 05, 2006 1:40 pm    Post subject: Reply with quote

are you sure plughw:0,0 is the device you want, if you are using the dsnoop feature of alsa for sharing between apps then you may need to use the higher level device name. In most cases I've seen, the 'default' name maps to this as well so maybe you should use that instead.

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






PostPosted: Wed Apr 05, 2006 3:19 pm    Post subject: Reply with quote

Thank for your answer Smile

I am tryed to run it with hw:0,0 / default / ...
and in the log I find only this, but ices dosent work:
Code:

[2006-04-05  17:04:24] INFO ices-core/main IceS 2.0.1 started...

if arecord is running.

If arcord is not running, ices2 works only with the
plughw:0,0 and it don't work with hw:0,0
Logfile with using hw:0,0
Code:
[2006-04-03  14:58:48] INFO ices-core/main IceS 2.0.1 started...
[2006-04-03  14:58:48] EROR input-alsa/alsa_open_module Sample format not available: Invalid argument
[2006-04-03  14:58:48] EROR input/input_loop Couldn't initialise input module "alsa"
[2006-04-03  14:58:48] INFO ices-core/main Shutdown complete


have anyone on other idea?

thanks
Chris

P.S. I am using Debian / Sarge
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Apr 05, 2006 4:44 pm    Post subject: Reply with quote

You need to be using your dsnoop/asym'd device.

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






PostPosted: Thu Apr 06, 2006 6:31 pm    Post subject: Reply with quote

Thank you for the cue with dsnoop.
After few hours it is now possible to record with die dsnoop Plugin.
Quote:
arecord -Dplug:dsnooper -t wav b.wav

But with ices2 didn't work.
My Question:
How must configured the ices2 configuration file?
Quote:
<input>
<module>alsa</module>
<param name="rate">44100</param>
<param name="channels">2</param>
<param name="device">hw:0,0</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>

With device Name I needed to use dsnoop
Thank for yur help
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Apr 06, 2006 9:38 pm    Post subject: Reply with quote

try using the same device eg plug:dsnooper or whatever you call it in asoundrc. Your distribution should have all this sorted already, but needs someone with Sarge experience to say.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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