bandeau2016

file envoi d'un seul flux mp3 converti en ogg par le serveur icecast2

il y a 5 ans 7 mois - il y a 5 ans 7 mois #50 par doc_denis
Auparavant, j'envoyais 3 flux !! un flux shoutcast + un flux icecast OGG et un flux icecast MP3

voir le nouveau post à ce sujet ici : www.le85.com/forum.html?func=view&catid=2&id=51#51

Afin de préserver ma bande passante, j'ai cherché à convertir mon flux MP3 en flux OGG sur le serveur Icecast2.

C'est chôse faite ! maintenant, j'envoi 2 flux, un flux Shoutcast + un flux Icecast en MP3 qui est converti en OGG sur le serveur Icecast2. ...comment, voyons cela :

Sur mon serveur en ligne "le relais de mon flux perso" ...un vps ça marche aussi :)
/etc/icecast2/icecast.xml
	<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>
<!-- ajouter le mot de passe de la source du stream -->
	<source-password>motdepasse</source-password>
<!-- change le mot de passe ci dessous Relays log in username 'relay' -->
	<relay-password>motdepasse</relay-password>

<!-- ajouter ton mot de passe pour la page admin "front-end" ici -->
			<admin-user>admin</admin-user>
			<admin-password>motdepasse</admin-password>
		</authentication>

				<!-- 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> -->


<!-- mettre ton nom de domaine ou adresse ip ici, moi, c est un sous-domaine -->
    <hostname>icecast.tondomaine.com</hostname>

<!-- je ne touche a rien ici c est le port de travail du serveur Icecast2 -->
				<listen-socket>
				<port>8000</port>
				<!-- <bind-address>127.0.0.1</bind-address> -->
				<!-- <shoutcast-mount>/stream</shoutcast-mount> -->
				</listen-socket>

<!-- mettre l adresse ip ou le domaine de ton serveur ci dessous -->
    <master-server>adresse ip de ton serveur</master-server>
				<master-server-port>8001</master-server-port>
				<master-update-interval>120</master-update-interval>
				<master-password>motdepasse</master-password>

<!-- J ai mis 1 ci dessous - The default is 0 -->
	<relays-on-demand>1</relays-on-demand>

<!-- CI-DESSOUS !!! je demande au serveur de mettre mon MP3 en OGG -->
<!-- Change le mot "stream" par le nom de ton flux envoyé avec butt, winamp, etc... -->
<relay>
    <server>127.0.0.1</server>
    <port>8000</port>
    <mount>/stream.mp3</mount>
    <local-mount>/stream.ogg</local-mount>
				<!-- <relay-shoutcast-metadata>0</relay-shoutcast-metadata> -->
</relay>

<!-- ne rien modifier ci-dessous !! -->


    <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> -->

        <!-- 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>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>

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

Le partage du savoir fait avancer plus vite !

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.069 secondes
Propulsé par Kunena