Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tutoriel:comment_creer_une_webradio [Le 13/04/2008, 15:13] – 87.89.222.57, 127.0.0.1 | tutoriel:comment_creer_une_webradio [Le 11/09/2022, 12:20] (Version actuelle) – Suppression des espaces en fin de ligne (détecté et corrigé via le bot wiki-corrector (https://forum.ubuntu-fr.org/viewtopic.php?id=2067892) moths-art | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ===== Introduction ===== | + | {{tag>tutoriel |
| - | Ce tutoriel | + | |
| - | //Les webradios sont des stations plus ou moins semblables aux stations de radio. La particularité d’une webradio est qu’elle est diffusée sur Internet.// | + | ---- |
| - | \\ | + | |
| - | \\ | + | |
| - | \\ | + | |
| - | ===== Installation de paquets ===== | + | |
| - | <note important> | + | |
| - | // | + | |
| - | < | + | |
| - | sudo apt-get install mpd icecast2</ | + | |
| + | ====== Comment créer sa webradio ? ====== | ||
| + | |||
| + | Ce tutoriel a pour but d' | ||
| + | |||
| + | ===== Installation ===== | ||
| + | |||
| + | [[: | ||
| ===== Configuration de MPD ===== | ===== Configuration de MPD ===== | ||
| + | |||
| Créer un fichier de configuration par défaut : | Créer un fichier de configuration par défaut : | ||
| - | < | ||
| - | La configuration de MPD se fait par un simple fichier texte / | ||
| - | < | ||
| - | <note important> | ||
| - | < | ||
| - | # See the mpd.conf man page for a more detailed description of each parameter. | ||
| + | sudo dpkg-reconfigure mpd | ||
| + | |||
| + | La configuration de MPD se fait par un fichier texte. [[: | ||
| + | Avant la première utilisation de **mpd** , il est nécessaire de charger des musique dans la collection, sinon mpd n'aura aucune musique à lire. ( voir [[:mpd|Lien externe]] ) | ||
| + | |||
| + | Voici un exemple du fichier / | ||
| + | |||
| + | < | ||
| ######################## | ######################## | ||
| # You can put symlinks in here, if you like. Make sure that | # You can put symlinks in here, if you like. Make sure that | ||
| # the user that mpd runs as (see the ' | # the user that mpd runs as (see the ' | ||
| # can read the files in this directory. | # can read the files in this directory. | ||
| - | music_directory "/ | + | music_directory "/ |
| playlist_directory "/ | playlist_directory "/ | ||
| db_file "/ | db_file "/ | ||
| Ligne 32: | Ligne 33: | ||
| error_file "/ | error_file "/ | ||
| pid_file "/ | pid_file "/ | ||
| - | ################################################################ | ||
| - | |||
| - | |||
| - | ######################## | ||
| - | # | ||
| - | # If specified, MPD will save its current state (playlist, | ||
| - | # current song, playing/ | ||
| - | # used to restore the session the next time it is run. | ||
| - | # | ||
| - | state_file "/ | ||
| - | # | ||
| - | ################################################################ | ||
| - | |||
| - | |||
| - | ######################## | ||
| - | # | ||
| - | # If started as root, MPD will drop root privileges and run as | ||
| - | # this user instead. | ||
| - | # started by. If left unspecified, | ||
| - | # privileges at all (not recommended). | ||
| - | # | ||
| - | user " | ||
| - | # | ||
| - | # The address and port to listen on. | ||
| - | # | ||
| - | # | ||
| - | #port " | ||
| - | # | ||
| - | # Controls the amount of information that is logged. | ||
| - | # " | ||
| - | # | ||
| - | # | ||
| - | # | ||
| ################################################################ | ################################################################ | ||
| Ligne 74: | Ligne 42: | ||
| # log in with that password are allowed to do. | # log in with that password are allowed to do. | ||
| # | # | ||
| - | password | + | password |
| # | # | ||
| # Specifies what permissions a user who has not logged in with a | # Specifies what permissions a user who has not logged in with a | ||
| Ligne 87: | Ligne 55: | ||
| ########################## | ########################## | ||
| - | # | ||
| - | # MPD supports many audio output types, as well as playing | ||
| - | # through multiple audio outputs at the same time. You can | ||
| - | # specify one or more here. If you don't specify any, MPD will | ||
| - | # automatically scan for a usable audio output. | ||
| - | # | ||
| - | # See < | ||
| - | # for examples of other audio outputs. | ||
| - | # | ||
| - | # An example of an ALSA output: | ||
| - | # | ||
| - | # | ||
| - | # type " | ||
| - | # name "My ALSA Device" | ||
| - | # device | ||
| - | # format | ||
| - | #} | ||
| - | # | ||
| - | # An example of an OSS output: | ||
| - | # | ||
| - | # | ||
| - | # type " | ||
| - | # name "My OSS Device" | ||
| - | # device | ||
| - | # format | ||
| - | #} | ||
| - | # | ||
| - | # An example of a shout output (for streaming to Icecast): | ||
| - | # | ||
| audio_output { | audio_output { | ||
| type " | type " | ||
| Ligne 121: | Ligne 60: | ||
| host " | host " | ||
| port " | port " | ||
| + | |||
| mount "/ | mount "/ | ||
| - | password | + | password |
| quality | quality | ||
| # bitrate | # bitrate | ||
| Ligne 136: | Ligne 76: | ||
| # | # | ||
| # | # | ||
| - | # | ||
| - | ################################################################ | ||
| - | |||
| - | |||
| - | ############################# | ||
| - | # | ||
| - | # MPD needs to know what mixer settings to change when you | ||
| - | # adjust the volume. | ||
| - | # pick one based on which ones it was compiled with support for. | ||
| - | # | ||
| - | # An example for controlling an ALSA mixer: | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # An example for controlling an OSS mixer: | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # If you want MPD to adjust the volume of audio sent to the | ||
| - | # audio outputs, you can tell it to use the software mixer: | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | ################################################################ | ||
| - | |||
| - | |||
| - | ######################### | ||
| - | # | ||
| - | # Specifies the type of ReplayGain to use. Can be " | ||
| - | # " | ||
| - | # < | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # Sets the pre-amp used for files that have ReplayGain tags. | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # Enable on the fly volume normalization. | ||
| - | # volume of all songs played to be adjusted so that they sound | ||
| - | # as though they are of equal loudness. | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | ################################################################ | ||
| - | |||
| - | |||
| - | ########################### | ||
| - | # | ||
| - | # The size of the buffer containing decoded audio. | ||
| - | # shouldn' | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # How much of the buffer to fill before beginning to play. | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # Similar options for the HTTP stream buffer. | ||
| - | # skipping while playing HTTP streams, you may wish to increase | ||
| - | # these. | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | ################################################################ | ||
| - | |||
| - | |||
| - | ########################### | ||
| - | # | ||
| - | # Specifies the HTTP proxy to use for playing HTTP streams. | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # | ||
| - | # | ||
| # | # | ||
| ################################################################ | ################################################################ | ||
| Ligne 226: | Ligne 86: | ||
| # restricting your usage of MPD. | # restricting your usage of MPD. | ||
| # | # | ||
| - | connection_timeout | + | connection_timeout |
| max_connections | max_connections | ||
| max_playlist_length | max_playlist_length | ||
| Ligne 233: | Ligne 93: | ||
| # | # | ||
| ################################################################ | ################################################################ | ||
| + | </ | ||
| - | ###################### | + | ===== Configuration de Icecast2 ===== |
| - | # | + | |
| - | # If file or directory names do not display correctly, then you | + | |
| - | # may need to change this. In most cases it should be either | + | |
| - | # " | + | |
| - | # after changing this (use mpd --create-db). | + | |
| - | # | + | |
| - | filesystem_charset | + | |
| - | # | + | |
| - | # The encoding that ID3v1 tags should be converted from. | + | |
| - | # | + | |
| - | id3v1_encoding | + | |
| - | # | + | |
| - | ################################################################ | + | |
| + | [[: | ||
| + | Il y a peu de choses à modifier, mis à part les mots de passe. | ||
| - | ######################### | + | <file XML> |
| - | # | + | < |
| - | # The metadata types MPD will recognize. | + | < |
| - | # | + | < |
| - | metadata_to_use | + | < |
| - | # | + | < |
| - | # Enable this if you wish to use your MPD created playlists | + | < |
| - | # other music players. | + | < |
| - | # | + | < |
| - | # | + | < |
| - | # | + | < |
| - | ################################################################ | + | </ |
| - | </code> | + | |
| + | < | ||
| + | <!-- Sources log in with username ' | ||
| + | < | ||
| + | <!-- Relays log in username ' | ||
| + | < | ||
| + | |||
| + | <!-- Admin logs in with the username given below --> | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | |||
| + | Pour faire tourner Icecast2 en tache de fond, [[: | ||
| + | |||
| + | < | ||
| - | ===== Configuration de Icecast2 ===== | ||
| - | [[: | ||
| - | < | ||
| - | Il y a pas grand chose à modifier. A part les mots de passe. :-) | ||
| - | <note important> | ||
| - | Pour faire tourner Icecast2 en tache de fond, [[: | ||
| - | < | ||
| - | Et modifier a la fin du fichier pour obtenir : | ||
| - | < | ||
| - | Terminé ! :-D\\ | ||
| Relancer les services mpd et icecast2 : | Relancer les services mpd et icecast2 : | ||
| - | < | ||
| - | sudo / | ||
| - | Puis créer la base de donnée de MPD : | ||
| - | < | ||
| - | < | + | sudo /etc/init.d/mpd restart |
| - | La playlist se trouve à l’adresse : http://adresse.com:8000/nom_de_la_playlist.m3u.\\ | + | |
| - | Vous avez choisi le nom de cette playlist lors de la configuration du fichier mpd.conf. (Que vous pouvez modifier a tout moment, il faudra juste penser a relancer les services pour que les modifications soient prises | + | < |
| + | Vous pouvez maintenant accéder au serveur icecast2 à l’adresse http:// | ||
| - | ===== Client de MPD ===== | + | La playlist se trouve à l’adresse : http:// |
| - | ==== GMPC ==== | + | Vous avez choisi le nom de cette playlist lors de la configuration du fichier « mpd.conf ». (Que vous pouvez modifier a tout moment, il faudra juste penser a relancer les services pour que les modifications soient prises en compte. |
| - | GMPC est un client qui permet l’utilisation | + | |
| - | {{mydoom666_gmpc2.png}} | + | Bien entendu, il vous faut ensuite installer et démarrer un client MPD avant que icecast2 ne puisse jouer quoi que ce soit</ |
| - | [[http:// | + | ===== Client de MPD ===== |
| - | <note tip>Plus de captures : http:// | + | ==== PhpMp2 ==== |
| - | Plus d’informations sur GMPC : http:// | + | |
| - | Plus de clients pour MPD : http:// | + | |
| - | <note important> | + | PhpMp2 est un client qui tourne sur un serveur web (avec php). |
| - | // | + | Ainsi si vous avez un serveur web vous pouvez l' |
| - | < | + | |
| + | Vous pouvez le télécharger à https:// | ||
| + | Il faut décompresser l' | ||
| + | {{tutoriel: | ||
| ===== Ouvrir le port dans le pare-feu ===== | ===== Ouvrir le port dans le pare-feu ===== | ||
| - | Dernière étape, ouvrir le port 8000 dans le pare-feu. Le port 8000 (par défaut) est celui utilisé par icecast2 | + | Dernière étape, ouvrir le port 8000 dans le [[:pare-feu]]. Le port 8000 (par défaut) est celui utilisé par Icecast2 |
| - | <note help> | + | |
| Il est possible d’administrer votre serveur a distance en ouvrant le port 6600 (par défaut). Il suffira ensuite dans GMPC de bien spécifier l’adresse distante du serveur. | Il est possible d’administrer votre serveur a distance en ouvrant le port 6600 (par défaut). Il suffira ensuite dans GMPC de bien spécifier l’adresse distante du serveur. | ||
| - | <note important> | + | <note important> |
| + | |||
| + | ===== Ressources Supplémentaires ===== | ||
| + | |||
| + | ==== Sites officiels ==== | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * [[wpfr> | ||
| + | |||
| + | ==== Pour aller plus loin ==== | ||
| - | ===== Informations supplémentaires ===== | + | |
| - | | + | * [[http://www.generation-linux.fr/index.php? |
| - | * http://www.musicpd.org/ | + | |
| - | * http://fr.wikipedia.org/ | + | |
| - | ===== Source ===== | + | |
| - | * http://www.mydoom666.com/2008/04/creer-sa-webradio-sous-ubuntu | + | |
| ---- | ---- | ||
| - | // | + | // |
