[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Lame lib error



Oi todo mundo,
Estou tentando rodar um servidor de rádio em um Etch.
Eu compilei o darkice 0.18.1 e lame 3.96.1.
Quando tento conectar o darkice no icecast2 eu tenho este erro:
-----------------------------------------------------------------------------------------------------------------------------
DarkIce 0.18.1 live audio streamer, http://darkice.tyrell.hu/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/

Using config file: /etc/darkice.cfg
Using OSS DSP input device: /dev/dsp
Using POSIX real-time scheduling, priority 98
DarkIce: LameLibEncoder.cpp:75: lame lib opening underlying sink error [0]

-----------------------------------------------------------------------------------------------------------------------------

Meu arquivos de configuração são:
------ darkice.cfg -----------------------------------------------------------------------------------------------------------------------
# sample DarkIce configuration file, edit for your needs before using
# see the darkice.cfg man page for details

# this section describes general aspects of the live streaming session
[general]
duration        = 0        # duration of encoding, in seconds. 0 means forever
bufferSecs      = 5         # size of internal slip buffer, in seconds
reconnect       = yes       # reconnect to the server(s) if disconnected

# this section describes the audio input that will be streamed
[input]
device          = /dev/dsp  # OSS DSP soundcard device for the audio input
sampleRate      = 22050     # sample rate in Hz. try 11025, 22050 or 44100
bitsPerSample   = 16        # bits per sample. try 16
channel         = 1         # channels. 1 = mono, 2 = stereo
# this section describes a streaming connection to an IceCast2 server
# there may be up to 8 of these sections, named [icecast2-0] ... [icecast2-7]
# these can be mixed with [icecast-x] and [shoutcast-x] sections
[icecast2-0]
bitrateMode     = cbr       # average bit rate
format          = mp3       # format of the stream: ogg vorbis
bitrate         = 96        # bitrate of the stream sent to the server
server          = 10.101.4.17
                            # host name of the server
port            = 8000      # port of the IceCast2 server, usually 8000
password        = **PASSWORD**    # source password to the IceCast2 server
mountPoint      = radio     # mount point of this stream on the IceCast2 server
name            = DarkIce trial
                            # name of the stream
description     = This is only a trial
                            # description of the stream
url             = http://10.101.4.17
                            # URL related to the stream
genre           = my own    # genre of the stream
public          = yes       # advertise this stream?
-----------------------------------------------------------------------------------------------------------------------------

e...
----- icecast.xml ------------------------------------------------------------------------------------------------------------------------
<icecast>
    <limits>
        <clients>100</clients>
        <sources>1</sources>
        <threadpool>5</threadpool>
        <queue-size>524288</queue-size>
        <client-timeout>30</client-timeout>
        <header-timeout>15</header-timeout>
        <source-timeout>10</source-timeout>
        <!-- If enabled, this will provide a burst of data when a client
             first connects, thereby significantly reducing the startup
             time for listeners that do substantial buffering. However,
             it also significantly increases latency between the source
             client and listening client.  For low-latency setups, you
             might want to disable this. -->
        <burst-on-connect>1</burst-on-connect>
        <!-- same as burst-on-connect, but this allows for being more
             specific on how much to burst. Most people won't need to
             change from the default 64k. Applies to all mountpoints  -->
        <burst-size>65535</burst-size>
    </limits>

    <authentication>
        <!-- Sources log in with username 'source' -->
        <source-password>**PASSWORD**</source-password>
        <!-- Relays log in username 'relay' -->
        <relay-password>**PASSWORD**</relay-password>

        <!-- Admin logs in with the username given below -->
        <admin-user>administrador</admin-user>
        <admin-password>**PASSWORD**</admin-password>
    </authentication>

    <hostname>10.101.4.17</hostname>

    <!-- You may have multiple <listener> elements -->
    <listen-socket>
        <port>8000</port>
        <bind-address>10.101.4.17</bind-address>
        <shoutcast-compat>1</shoutcast-compat>
    </listen-socket>
   <mount>
        <mount-name>/radio</mount-name>

        <username>source</username>
        <password>**PASSWORD**</password>

        <max-listeners>100</max-listeners>
        <dump-file>/tmp/dump-radio</dump-file>
        <burst-size>65536</burst-size>
        <fallback-mount>/radio2</fallback-mount>
        <fallback-override>1</fallback-override>
        <fallback-when-full>1</fallback-when-full>
        <intro>/radio_intro</intro>
        <hidden>1</hidden>
        <no-yp>1</no-yp>
        <authentication type="htpasswd">
                <option name="filename" value="myauth"/>
                <option name="allow_duplicate_users" value="0"/>
        </authentication>
        <on-connect>/home/icecast/bin/stream-start</on-connect>
        <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
    </mount>
    <fileserve>1</fileserve>

    <paths>
                <!-- basedir is only used if chroot is enabled -->
        <basedir>/usr/share/icecast2</basedir>

        <!-- Note that if <chroot> is turned on below, these paths must both
             be relative to the new root, not the original root -->
        <logdir>/var/log/icecast2</logdir>
        <webroot>/usr/share/icecast2/web</webroot>
        <adminroot>/usr/share/icecast2/admin</adminroot>
        <!-- <pidfile>/usr/share/icecast2/icecast.pid</pidfile> -->
    </paths>
    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
        <!-- <playlistlog>playlist.log</playlistlog> -->
        <loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
        <logsize>10000</logsize> <!-- Max size of a logfile -->
        <!-- If logarchive is enabled (1), then when logsize is reached
             the logfile will be moved to [error|access|playlist].log.DATESTAMP,
             otherwise it will be moved to [error|access|playlist].log.old.
             Default is non-archive mode (i.e. overwrite)
        -->
        <!-- <logarchive>1</logarchive> -->
    </logging>

    <security>
        <chroot>0</chroot>
        <!--
        <changeowner>
            <user>nobody</user>
            <group>nogroup</group>
        </changeowner>
        -->
    </security>
</icecast>
----------------------------------------------------------------------------------------------------------------------------------

Alguma ideia do que possa ser?

Grato,
--
Bruno Guimarães Sousa
COINF-CEFET-BA
Ciência da Computação UFBA
Registered Linux user #465914
Reply to: