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/07 22:49] emoc [Autres possibilités] |
choses:radio_fluflu [2020/04/18 15:29] emoc [A tester] |
||
---|---|---|---|
Ligne 60: | Ligne 60: | ||
{{:choses:radio_fluflu:radio_fluflu_diffuser_avec_mixxx_2.png?direct|}} | {{:choses:radio_fluflu:radio_fluflu_diffuser_avec_mixxx_2.png?direct|}} | ||
+ | |||
+ | **Sur l'utilisation générale de Mixxx, voir : [[https://www.mixxx.org/manual/latest/en/index.html|Mixxx 2.2 User Manual]]** | ||
+ | |||
+ | ==== Diffuser depuis un ordinateur avec Butt ==== | ||
+ | |||
+ | On peut utiliser butt pour streamer ce qui sort de la carte son quelque soit le logiciel utilisé | ||
+ | * butt http://danielnoethen.de/butt/ | ||
+ | * https://p-node.org/documentation/streams/how-to-stream | ||
+ | |||
+ | Sur linux (debian stretch 9.5 sur un thinkpad T430), il faut compiler butt pour l'installer (c'est expliqué sur le site de l'auteur) et configurer pavucontrol comme il faut. Une petite copie d'écran pour récapituler (parce que c'était pas si simple d'arriver à ce résultat simple) | ||
+ | |||
+ | {{:choses:radio_fluflu:butt_pavucontrol.png?direct&1000|}} | ||
+ | |||
+ | |||
==== Diffuser depuis un téléphone / une tablette ==== | ==== Diffuser depuis un téléphone / une tablette ==== | ||
Ligne 74: | Ligne 88: | ||
* http://icecast.org/apps/ | * http://icecast.org/apps/ | ||
- | * butt http://danielnoethen.de/butt/ + https://p-node.org/documentation/streams/how-to-stream | + | |
==== Diffuser à 2 en même temps ==== | ==== Diffuser à 2 en même temps ==== | ||
Ligne 147: | Ligne 161: | ||
===== 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> | ||
+ | #!/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> |