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 

EROR input/input_loop Couldn't initialise input module "

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



Joined: 03 Jan 2011
Posts: 22
Location: INDIA

PostPosted: Thu Jan 27, 2011 6:52 am    Post subject: EROR input/input_loop Couldn't initialise input module " Reply with quote

hi,
i am using M-AUDIO 1010LT audio card.
when i try to run the ices2. i am getting the error message in ices.log file
Quote:
EROR input/input_loop Couldn't initialise input module "alsa"


here is my ices-alsa.xml
Code:
<?xml version="1.0"?>
<ices>

    <!-- run in background  -->
    <background>0</background>
    <!-- where logs go. -->
    <logpath>/var/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://my ip</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>alsa</module>
            <param name="rate">44100</param>
            <param name="channels">3</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>

        <!--    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>my ip</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>


here is my arecord -l output:
Quote:
card 0: M1010LT [M Audio Delta 1010LT], device 0: ICE1712 multi [ICE1712 multi]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1

could any one tell me wht might the problem.
i am using ubuntu 10.04 studio .
alsa version:1.0.21

thanks in advance.
bsbrp.
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 Jan 27, 2011 2:14 pm    Post subject: Reply with quote

If you built ices yourself, then it could be because no development package was installed (ldd /path/to/ices | grep asound).

The xml looks odd at this point

<param name="channels">3</param>

you may find it easier in the single instance case to capture 22050 mono from the input and avoid the downmix and resample.

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



Joined: 03 Jan 2011
Posts: 22
Location: INDIA

PostPosted: Thu Jan 27, 2011 3:47 pm    Post subject: Reply with quote

I have taken the source of ices2
and
installed in this way
./configure
make
make install
copied the ices-alsa.xml to /usr/loca/etc/
created the log directory /var/log/ices/ices.log
i dint get you karlh
Quote:
it could be because no development package was installed (ldd /path/to/ices | grep asound)

i mean what things more i am missing?

regarding the channels, it was 2(default value in ices-alsa.xml). i made the change.

thanks in advance
bsbrp
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 Jan 27, 2011 4:02 pm    Post subject: Reply with quote

If the alsa development package is not found then the alsa input is disabled, that is what I meant, you can check the config to see if it was disabled with

grep ALSA config.h

remember there is a difference between a runtime package and development package. Typical names on linux setups have development packages called alsa-devel or alsa-dev.

Regarding the channels, you may of changed it but that may be the reason why alsa failed to initialise. As a beginner I would stick to the more common 2 (stereo) instead 3.

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



Joined: 03 Jan 2011
Posts: 22
Location: INDIA

PostPosted: Fri Jan 28, 2011 12:06 pm    Post subject: Reply with quote

but i was able to record all the channels in M1010LT card using audacity.(Does this mean alsa input is enabled? ) and moreover i have installed all the alsa packages before i installed the icecast and ices2.


thanks in advance
bsbrp
Back to top
View user's profile Send private message
bsbrp



Joined: 03 Jan 2011
Posts: 22
Location: INDIA

PostPosted: Fri Jan 28, 2011 1:22 pm    Post subject: Reply with quote

hi
i am able to run ices2 when i select the device=hw:1,0 but when i select hw:0,0 . i am getting the above error.

this is my cat /proc/asound/cards output
Quote:

0[M1010LT]: ICE1712 - M Audio Delta 1010LT
M Audio Delta 1010LT at 0xec00, irq 18
1[Intel]: HDA-Intel - HDA Intel
HDA Intel at 0xfea38000 irq 16


the problem is with m-audio card, but i am using audacity and it is successfully using the card and recording the channels. i am very confused what to do.

thanks in advance.
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