Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
choses:radio_fluflu [2020/04/10 15:25] emoc [Diffuser depuis un ordinateur avec Butt] |
choses:radio_fluflu [2020/04/23 19:03] cyril [Autres possibilités] |
||
---|---|---|---|
Ligne 88: | Ligne 88: | ||
* http://icecast.org/apps/ | * http://icecast.org/apps/ | ||
+ | * http://www.darkice.org/ (pas encore testé au 23/04/2020) | ||
Ligne 161: | Ligne 162: | ||
===== A tester ===== | ===== A tester ===== | ||
- | Plusieurs à envoyer des choses en même temps, ping-pong. (= plusieurs points de montage) | + | Plusieurs à envoyer des choses en même temps, ping-pong. (= plusieurs points de montage) / mixer les deux \\ |
- | * smart crossfade pas possible sur des flux live (je ne sais plus ou j'ai lu ça) | + | --> testé, ça fonctionne |
- | * https://stackoverflow.com/a/26482731 | + | |
- | * "lacher le flux" | + | <accordion> |
- | * mixer toujours les deux | + | <panel title="liquidsoap_mix_stream.liq (cliquer pour afficher le code)"> |
+ | <code bash liquidsoap_mix_stream.liq> | ||
+ | #!/usr/bin/liquidsoap | ||
+ | |||
+ | set("log.file.path","/tmp/radiolive.log") | ||
+ | |||
+ | # Serveur settings | ||
+ | set("harbor.bind_addr","0.0.0.0") | ||
+ | |||
+ | # An emergency file | ||
+ | emergency = single("/home/radio/test/test.mp3") | ||
+ | |||
+ | # Les playlist | ||
+ | emoc = mksafe(normalize(playlist(mode='random', "/home/radio/pierre"))) | ||
+ | ortie = mksafe(normalize(playlist(mode='random', "/home/radio/ortie"))) | ||
+ | |||
+ | # Playlist tournante | ||
+ | playlist = switch(track_sensitive=true, [ # track_sensitive true par défaut, cad attend la fin de la piste! | ||
+ | ({0h-8h}, emoc), | ||
+ | ({8h-10h}, ortie), | ||
+ | ({10h-15h}, emoc), | ||
+ | ({15h-17h}, ortie), | ||
+ | ({17h-20h}, emoc), | ||
+ | ({20h-22h}, ortie), | ||
+ | ({22h-24h}, emoc) | ||
+ | ]) | ||
+ | |||
+ | # live source | ||
+ | live = input.harbor("live",port=8080,password="****") | ||
+ | |||
+ | #live source bis | ||
+ | livebis = input.harbor("livebis",port=8081,password="****") | ||
+ | |||
+ | livemix = add([live,livebis]) | ||
+ | |||
+ | # fallback | ||
+ | radio = fallback(track_sensitive=false, | ||
+ | [livemix,playlist,emergency]) | ||
+ | |||
+ | output.icecast(%vorbis, | ||
+ | host = "localhost", port = 8000, | ||
+ | password = "****", mount = "radio", | ||
+ | url="http://5.196.66.118:8000/radio", | ||
+ | name="La Baleine Radio Test", | ||
+ | genre="Music", | ||
+ | description="La Baleine Radio Test", | ||
+ | public=true, | ||
+ | fallible=true, | ||
+ | radio) | ||
+ | </code> | ||
+ | </panel> | ||
+ | </accordion> |