Para hacer streaming con MPD solo necesitamos configurar un audio_output al final del fichero /etc/mpd.conf y reiniciamos el servicio, como en el siguiente ejemplo.
[fraterneo@rainbow2 ~]$ nano /etc/mpd.conf
audio_output {
type "httpd"
name "My HTTP Stream"
encoder "vorbis" # optional, vorbis or lame
port "8000"
bind_to_address "192.168.24.100" # optional, IPv4 or IPv6
quality "5.0" # do not define if bitrate is defined
#bitrate "128" # do not define if quality is defined
format "44100:16:1"
max_clients "0" # optional 0=no limit
}
[fraterneo@rainbow2 ~]$ sudo systemctl restart mpd.service
Ahora abrimos un navegador o un reproductor de streaming y le indicamos la dirección IP y el puerto donde funciona nuestro servicio MPD.







0 comments:
Publicar un comentario