DEDIBOX-NEWS.COM

Le Forum Non Officiel de la DEDIBOX

Vous n'êtes pas identifié.

#1 2006-05-21 01:04:30

AxL
Invité

icecast.xml : besoin d'aide

Hello smile

Je souhaite monter une webradio mais je ne sais pas comment configurer icecast.xml sad
J'ai peur de toucher à des trucs qu'il ne faut pas toucher :ph34r:
Ce serait bien de dire dans ce sujet ce qu'il faut toucher et à quoi ça correspond. J'ai vu le lien sur l'assistance Dedibox mais l'anglais j'ai un peu de mal :ph34r:
L'idéal ce serait que quelqu'un qui maîtrise très bien analyse ligne par ligne le .xml smile
Pour ce qui est de Winamp et du plug-in je maîtrise.

Merci d'avance wink

Code:

<icecast>
    <limits>
        <clients>100</clients>
        <sources>2</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>hackme</source-password>
        <!-- Relays log in username 'relay' -->
        <relay-password>hackme</relay-password>

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

    <!-- Uncomment this if you want directory listings -->
    <!--
    <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>
     -->

    <!-- This is the hostname other people will use to connect to your server.
    It affects mainly the urls generated by Icecast for playlists and yp
    listings. -->
    <hostname>localhost</hostname>

    <!-- You can use these two if you only want a single listener -->
    <!--<port>8000</port> -->
    <!--<bind-address>127.0.0.1</bind-address>-->

    <!-- You may have multiple <listener> elements -->
    <listen-socket>
        <port>8000</port>
        <!-- <bind-address>127.0.0.1</bind-address> -->
    </listen-socket>
    <!--
    <listen-socket>
        <port>8001</port>
    </listen-socket>
    -->

    <!--<master-server>127.0.0.1</master-server>-->
    <!--<master-server-port>8001</master-server-port>-->
    <!--<master-update-interval>120</master-update-interval>-->
    <!--<master-password>hackme</master-password>-->

    <!-- setting this makes all relays on-demand unless overridden, this is
         useful for master relays which do not have <relay> definitions here.
         The default is 0 -->
    <!--<relays-on-demand>1</relays-on-demand>-->

    <!--
    <relay>
        <server>127.0.0.1</server>
        <port>8001</port>
        <mount>/example.ogg</mount>
        <local-mount>/different.ogg</local-mount>
        <on-demand>0</on-demand>

        <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
    </relay>
    -->

    <!-- Only define a <mount> section if you want to use advanced options,
         like alternative usernames or passwords
    <mount>
        <mount-name>/example-complex.ogg</mount-name>

        <username>othersource</username>
        <password>hackmemore</password>

        <max-listeners>1</max-listeners>
        <dump-file>/tmp/dump-example1.ogg</dump-file>
        <burst-size>65536</burst-size>
        <fallback-mount>/example2.ogg</fallback-mount>
        <fallback-override>1</fallback-override>
        <fallback-when-full>1</fallback-when-full>
        <intro>/example_intro.ogg</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>

    <mount>
        <mount-name>/auth_example.ogg</mount-name>
        <authentication type="url">
            <option name="mount_add"       value="http://myauthserver.net/notify_mount.php"/>
            <option name="mount_remove"    value="http://myauthserver.net/notify_mount.php"/>
            <option name="listener_add"    value="http://myauthserver.net/notify_listener.php"/>
            <option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
        </authentication>
    </mount>

    -->

    <fileserve>1</fileserve>

    <!-- set the mountpoint for a shoutcast source to use, the default if not
         specified is /stream but you can change it here if an alternative is
         wanted or an extension is required
    <shoutcast-mount>/live.nsv</shoutcast-mount>
    -->

    <paths>
        <!-- basedir is only used if chroot is enabled -->
        <basedir>@pkgdatadir@</basedir>

        <!-- Note that if <chroot> is turned on below, these paths must both
             be relative to the new root, not the original root -->
        <logdir>@localstatedir@/log/@PACKAGE@</logdir>
        <webroot>@pkgdatadir@/web</webroot>
        <adminroot>@pkgdatadir@/admin</adminroot>
        <!-- <pidfile>@pkgdatadir@/icecast.pid</pidfile> -->

        <!-- 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" dest="/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="/" dest="/status.xsl"/>
    </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>
 

#2 2006-05-21 08:55:22

Phach
Membres d'honneurs
Lieu: France
Date d'inscription: 2006-05-05
Messages: 1013
Site web

Re: icecast.xml : besoin d'aide

Apprendre a quelqu'un => ok
Faire la la place => Non

http://rezal404.org/wikini/wakka.php?wiki=IceCastDoc

Si t'as des questions précise, tu les poses.

PS : pour monter une webradio, il te faut être déclarer à la sacem et payer un forfait mensuel.


http://bayimg.com/image/aakogaabp.jpg http://www.radioparadise.com/graphics/banner_80.gif

Hors ligne

 

#3 2006-05-21 12:09:49

AxL
Invité

Re: icecast.xml : besoin d'aide

Je n'ai pas demandé à ce qu'on me le fasse :+
J'ai demandé une analyse du .xml.
Le lien que tu m'as donné, y'a que 6 paramètres (les principaux)... mais les autres trucs dans le .xml je ne sais pas ) quoi ça sert. La page officielle d'Icecast est complète mais c'est en anglais :ph34r:

 

#4 2006-05-21 16:41:52

Phach
Membres d'honneurs
Lieu: France
Date d'inscription: 2006-05-05
Messages: 1013
Site web

Re: icecast.xml : besoin d'aide

Le XML c'est comme le HTML, c'est un langage a balise, a la différence que tu peux mettre les balise que tu veux.

Si tu ne comprends pas les paramètres plus poussé, alors ne les utilise pas car tu risquerais de créer des gros trous de sécurité dans ton serveur.
Pour faire un webradio simple, tu n'as besoin que des 6 parametres données dans les tutorials.

Aprés tu peux préciser ta question :
- veux tu faire de l'authentification sur les flux ?
- as tu plusieurs serveurs qui relaient ta webradio ?
- veux tu garder un journal (log) des evenements.
...
tout ca correspond a des balises XML dans ton fichier de conf.


http://bayimg.com/image/aakogaabp.jpg http://www.radioparadise.com/graphics/banner_80.gif

Hors ligne

 

#5 2006-05-21 19:34:19

AxL
Invité

Re: icecast.xml : besoin d'aide

J'ai suivi ton lien et ça marche nickel wink

Par contre, pas de truc à régler pour le nombre max d'auditeurs ? :ph34r:

De plus, je ne comprends pas certaines choses dans l'admin rubrique Global Server Stats.
client_connections 51
clients 0
connections 52
server Icecast 2.2.0
source_client_connections 1
source_relay_connections 0
source_total_connections 1
sources 0
stats 0
stats_connections 0
Personne n'écoute la radio mais les champs en gras augmentent quand j'actualise la page :wacko:

Côté client, pour le moment, j'utilise OddcastV3= (hyper facile à paramétrer)

Ha oui, j'oubliais, y'a pas moyen de faire un .xml plus simple avec uniquement les choses utiles ? :wacko:

En tout cas merci wink

 

#6 2006-05-21 19:55:54

Phach
Membres d'honneurs
Lieu: France
Date d'inscription: 2006-05-05
Messages: 1013
Site web

Re: icecast.xml : besoin d'aide

AxL a écrit:

J'ai suivi ton lien et ça marche nickel wink

Ha oui, j'oubliais, y'a pas moyen de faire un .xml plus simple avec uniquement les choses utiles ? :wacko:

En tout cas merci wink

si tu peux effacer tout ce qui est entre "<!--" et "-->" attention tout de même.

le nombre max d'auditeur :

Code:

<clients>100</clients>

http://bayimg.com/image/aakogaabp.jpg http://www.radioparadise.com/graphics/banner_80.gif

Hors ligne

 

#7 2006-07-08 15:43:29

clikeurs
Invité

Re: icecast.xml : besoin d'aide

bonjour  a tous.
j'ai bien suivi le tuto et  au moment  de demarre stream404

voila le message:

error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directory

y t il qlq un qui pourrais m'aider.

 

#8 2006-07-08 15:47:20

Phach
Membres d'honneurs
Lieu: France
Date d'inscription: 2006-05-05
Messages: 1013
Site web

Re: icecast.xml : besoin d'aide

clikeurs a écrit:

bonjour  a tous.
j'ai bien suivi le tuto et  au moment  de demarre stream404

voila le message:

error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directory

y t il qlq un qui pourrais m'aider.

il te manque les fichiers lame : ftp://rpmfind.net/linux/freshrpms/fedor … 4.i386.rpm

si tu as d'autre erreurs, tu vas sur rpmfind.net et tu tape le nom du fichier qui te manque, puis tu installe le package en question.


http://bayimg.com/image/aakogaabp.jpg http://www.radioparadise.com/graphics/banner_80.gif

Hors ligne

 

Pied de page des forums

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson