1

Тема: Друзья! Очень нужна помощь с icecast.xml

Друзья! Очень нужна помощь с icecast.xml . не могу его по человечески настроить. Все просто . 2 потока, 1 для лайва, второй для нонстопа.
Понимаю что это уже много раз тут обсасывалось, но не получается настроить.
Буду примного благодарен.

2

Re: Друзья! Очень нужна помощь с icecast.xml

Вот сам файл, беда в том что когда подключается дж, то канал автоматом не меняется.
<icecast>
    <limits>
    <sources>2</sources>
    <burst-size>32768</burst-size>
    <threadpool>5</threadpool>
    </limits>
    <authentication>
        <admin-user>*****</admin-user>
        <admin-password>****</admin-password>
    </authentication>
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
    </directory>
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
    </directory>
    <hostname>127.0.0.1</hostname>
    <listen-socket>
        <port>8000</port>
    </listen-socket>
    <fileserve>1</fileserve>
    <paths>
        <logdir>./log</logdir>
        <webroot>./web</webroot>
        <adminroot>./admin</adminroot>

        <!-- Aliases: treat requests for 'source' path as being for 'dest' path
             May be made specific to a port or bound address using the "port"
             and "bind-address" attributes.
          -->
        <!--
        <alias source="/foo" destination="/bar"/>
        -->
        <!-- Aliases: can also be used for simple redirections as well,
             this example will redirect all requests for http://server:port/ to
             the status page
        -->
        <alias source="/" destination="/status.xsl"/>
        <!-- The certificate file needs to contain both public and private part.
             Both should be PEM encoded.
        <ssl-certificate>./icecast.pem</ssl-certificate>
        -->
    </paths>

    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
        <!-- <playlistlog>playlist.log</playlistlog> -->
        <loglevel>3</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>
<mount>
        <mount-name>/non-stop</mount-name>
        <password>*****</password>
        <max-listeners>250</max-listeners>
        <charset>cp1251</charset>
        <public>0</public>
        <stream-name>LongCoastradio</stream-name>
        <stream-description>24/7 Non-stop music</stream-description>
        <stream-url>Longcoast.ru</stream-url>
        <genre>Electronic</genre>
        <bitrate>320</bitrate>
        <type>audio/mpeg</type>
        <subtype>mp3</subtype>
        <hidden>0</hidden>
    </mount>
<mount>
        <mount-name>/live</mount-name>
        <password>******</password>
        <max-listeners>100</max-listeners>
<fallback-mount>/non-stop</fallback-mount>
        <fallback-override>1</fallback-override>
        <fallback-when-full>0</fallback-when-full>
        <charset>cp1251</charset>
        <public>1</public>
        <stream-name>LongCoast radio</stream-name>
        <stream-description>Ogon'</stream-description>
        <stream-url>Transcendens.ru:8000/non-stop</stream-url>
        <genre>Electronic</genre>
        <bitrate>192</bitrate>
        <type>audio/mpeg</type>
        <subtype>Ogg</subtype>
        <hidden>0</hidden>
    </mount>
   <security>
        <chroot>0</chroot>
        <changeowner>
        <user>icecast</user>
        <group>nogroup</group>
        </changeowner>
    </security>
</icecast>