# Automation webradio

**URL:** <https://www.debian-fr.org/t/automation-webradio/90033>\
**Category:** Pause Café\
**Created:** [Mai 30, 2024, 8:28 UTC](https://www.debian-fr.org/t/automation-webradio/90033 "2024-05-30T08:28:16Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Mai 30, 2024, 8:28 UTC](https://www.debian-fr.org/t/automation-webradio/90033/1 "2024-05-30T08:28:16Z")

</div>

Bonjour à tous,  
En automation radio (diffusion en automatique d’une playlist musicale), il n’y a pas grand chose pour le monde de Linux. Il y a bien Azuracast qui utilise liquidsoap, mais il ne me convient pas pour sa partie autodj qui ne respecte pas l’ordre donné des pistes.  
Avez-vous connaissance d’un tel logiciel, quelque chose qui permet l’automation d’une playlist ?  
Merci.

---

<div class="post-metadata">

**Author:** ![dindoun](https://www.debian-fr.org/user_avatar/www.debian-fr.org/dindoun/32/4281_2.png) [@dindoun](https://www.debian-fr.org/u/dindoun)\
**Post date:** [Mai 30, 2024, 11:48 UTC](https://www.debian-fr.org/t/automation-webradio/90033/2 "2024-05-30T11:48:52Z")

</div>

vlc  
ices + icecast

> **[webradio : icecast2 + ices2](https://brunosanchiz.fr/spip.php?article242)**
>
> Utilisation correcte apt-get install icecast2 vlc Faire la configuration de icecast2 en dessous. Créer le fichier /opt/Vlc-Icecast.sh et y (...)

---

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Mai 30, 2024, 1:08 UTC](https://www.debian-fr.org/t/automation-webradio/90033/3 "2024-05-30T13:08:01Z")

</div>

Salut dindoun,  
Et on peut automatiser complètement une playlist ?

---

<div class="post-metadata">

**Author:** ![Zargos](https://www.debian-fr.org/user_avatar/www.debian-fr.org/zargos/32/10889_2.png) [@Zargos](https://www.debian-fr.org/u/Zargos)\
**Post date:** [Mai 30, 2024, 2:29 UTC](https://www.debian-fr.org/t/automation-webradio/90033/4 "2024-05-30T14:29:05Z")

</div>

Salut,  
Qu’entends tu par là? automatiser à partir de quoi et sur quels critères?

---

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Mai 30, 2024, 2:50 UTC](https://www.debian-fr.org/t/automation-webradio/90033/5 "2024-05-30T14:50:16Z")

</div>

Re,  
Automatiser une liste de fichiers Ogg (ou mp3) pour la diffuser via un flux stream audio, sans avoir à intervenir. Comme le fait Autodj ou Azuracast ou liquidsoap il me semble.

---

<div class="post-metadata">

**Author:** ![Zargos](https://www.debian-fr.org/user_avatar/www.debian-fr.org/zargos/32/10889_2.png) [@Zargos](https://www.debian-fr.org/u/Zargos)\
**Post date:** [Mai 30, 2024, 3:15 UTC](https://www.debian-fr.org/t/automation-webradio/90033/6 "2024-05-30T15:15:56Z")

</div>

Ah ok, donc tu parles d’automatiser le lancement d’une playlist.

---

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Mai 30, 2024, 3:28 UTC](https://www.debian-fr.org/t/automation-webradio/90033/7 "2024-05-30T15:28:18Z")

</div>

Non, non, pas seulement le lancement, la jouer du début à la fin. 🙂

---

<div class="post-metadata">

**Author:** ![Clochette](https://www.debian-fr.org/user_avatar/www.debian-fr.org/clochette/32/8757_2.png) [@Clochette](https://www.debian-fr.org/u/Clochette)\
**Post date:** [Mai 30, 2024, 4:23 UTC](https://www.debian-fr.org/t/automation-webradio/90033/8 "2024-05-30T16:23:32Z")

</div>

> [@mand](#):
>
> Il y a bien Azuracast qui utilise liquidsoap, mais il ne me convient pas pour sa partie autodj qui ne respecte pas l’ordre donné des pistes.

C’est donc un souci lié à l’utilisation de Liquidsaop, ça se configure 😉

Par exemple :

[https://www.liquidsoap.info/doc-2.1.4/cookbook.html](https://www.liquidsoap.info/doc-2.1.4/cookbook.html)

> ## [Files](https://www.liquidsoap.info/doc-2.1.4/cookbook.html#files)
> 
> A source which infinitely repeats the same URI:
> 
> ```auto
> single("/my/default.ogg")
> 
> ```
> 
> A source which plays a playlist of requests – a playlist is a file with an URI per line.
> 
> ```auto
> # Shuffle, play every URI, start over.
> playlist("/my/playlist.txt")
> # Do not randomize
> playlist(mode="normal", "/my/pl.m3u")
> # The playlist can come from any URI,
> # can be reloaded every 10 minutes.
> playlist(reload=600,"http://my/playlist.txt")
> 
> ```
> 
> When building your stream, you’ll often need to make it unfallible. Usually, you achieve that using a fallback switch (see below) with a branch made of a safe `single` . Roughly, a single is safe when it is given a valid local audio file.

---

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Mai 30, 2024, 4:47 UTC](https://www.debian-fr.org/t/automation-webradio/90033/9 "2024-05-30T16:47:47Z")

</div>

Salut Clochette,  
Je ne sais pas s’il s’agit d’un problème lié à Azuracast, liquidsoap ou l’autodj en fait.

---

<div class="post-metadata">

**Author:** ![dindoun](https://www.debian-fr.org/user_avatar/www.debian-fr.org/dindoun/32/4281_2.png) [@dindoun](https://www.debian-fr.org/u/dindoun)\
**Post date:** [Mai 30, 2024, 8:33 UTC](https://www.debian-fr.org/t/automation-webradio/90033/10 "2024-05-30T20:33:51Z")

</div>

pour vlc , il suffit de créer une playlist et de la lire, par exemple pour un dossier :

`find ${DOSSIER} -name "*mp3" -o -name "*flac" > playlist.m3u`  
et tu peux éditer le fichier comme un fichier texte

---

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Juin 3, 2024, 5:35 UTC](https://www.debian-fr.org/t/automation-webradio/90033/11 "2024-06-03T05:35:51Z")

</div>

Oui, mais ce n’est pas ce que je recherche en finalité, ce que je souhaite c’est un lecteur intégré à une adresse internet, une page web quoi, qui lit un flux audio.

---

<div class="post-metadata">

**Author:** ![dindoun](https://www.debian-fr.org/user_avatar/www.debian-fr.org/dindoun/32/4281_2.png) [@dindoun](https://www.debian-fr.org/u/dindoun)\
**Post date:** [Juin 3, 2024, 11:53 UTC](https://www.debian-fr.org/t/automation-webradio/90033/12 "2024-06-03T11:53:37Z")

</div>

salut  
j’ai bien compris :  
une fois créé le m3u, tu l’ouvres avec vlc et le balance sur par exemple le port 8080  
`vlc -vvv a.m3u --sout '#standard{access=http,mux=ogg,dst=192.168.1.5:8080}'`  
et de l’extérieur tu lis la playlist avec [http://IP:8080](http://IP:8080)

---

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Juin 3, 2024, 12:54 UTC](https://www.debian-fr.org/t/automation-webradio/90033/13 "2024-06-03T12:54:52Z")

</div>

Salut dindoun,  
Tu veux dire que vlc peut streamer vers l’extérieur en indiquant sur une page web un lecteur audio qui renvoie vers [http://IP:8080](http://IP:8080) ?

---

<div class="post-metadata">

**Author:** ![Zargos](https://www.debian-fr.org/user_avatar/www.debian-fr.org/zargos/32/10889_2.png) [@Zargos](https://www.debian-fr.org/u/Zargos)\
**Post date:** [Juin 3, 2024, 1:07 UTC](https://www.debian-fr.org/t/automation-webradio/90033/14 "2024-06-03T13:07:00Z")

</div>

> [@mand](#):
>
> Tu veux dire que vlc peut streamer vers l’extérieur en indiquant sur une page web un lecteur audio qui renvoie vers [http://IP:8080](http://IP:8080) ?

Sur ta page web tu as juste à mettre un lien vers l’adresse IP port 8080

---

<div class="post-metadata">

**Author:** ![mand](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mand](https://www.debian-fr.org/u/mand)\
**Post date:** [Juin 3, 2024, 1:45 UTC](https://www.debian-fr.org/t/automation-webradio/90033/15 "2024-06-03T13:45:21Z")

</div>

Bluffant ce qu’on peut faire avec vlc.  
j’aimerais bien trouver une démo live de ce qui est décrit si c’était possible.

---

<div class="post-metadata">

**Author:** ![dindoun](https://www.debian-fr.org/user_avatar/www.debian-fr.org/dindoun/32/4281_2.png) [@dindoun](https://www.debian-fr.org/u/dindoun)\
**Post date:** [Juin 5, 2024, 6:37 UTC](https://www.debian-fr.org/t/automation-webradio/90033/16 "2024-06-05T18:37:42Z")

</div>

> [@mand](#):
>
> Tu veux dire que vlc peut streamer vers l’extérieur en indiquant sur une page web un lecteur audio qui renvoie vers [http://IP:8080](http://IP:8080) ?

oui  
pour tester tu ouvres le menu media puis tatata TATA !!! le menu **diffuser** ,  
tu cliques sur diffuser,  
suivant,  
tu choisis http , clique sur ajouter,  
suivant,  
tuchoisis un profil,suivant,  
case diffuser les flux élémentaires, clique sur diffuser
