Simple container for running MPD with RTP stream using PulseAudio stream capabilities.
881
This container allows the user to run MPD in a Docker container and stream the audio losslessly to another computer on the network using PulseAudio's RTP steam capabilities.
| Volume | Required | Description |
|---|---|---|
/music | Yes | Your music folder. |
/config | No | Your MPD configuration. |
/log | No | Various logs. |
| Variable | Required | Description |
|---|---|---|
DESTINATION | Yes | The destination IP address for the RTP stream. |
PUID | No | The UID of the user running MPD. |
GUID | No | The GID of the user running MPD. |
| Port | Should be exposed? | Description |
|---|---|---|
6600 | Yes | MPD control port. |
docker run \
--detach \
--restart "always" \
--name "mpd" \
--publish 6600:6600 \
--env DESTINATION=192.168.0.106 \
--env PUID=$(id -u bob) \
--env PGID=$(id -g bob) \
--volume=/home/bob/Music:/music:ro \
--volume=/home/bob/.config/mpd:/config \
theniceguy/mpd
You can listen to the stream on the specified machine using various software that handle RTP streams (VLC, mpv, etc). PulseAudio can directly play the stream. Simply edit the configuration (default.pa) by adding the following lines:
load-module module-native-protocol-tcp
load-module module-rtp-recv sap_address=<DESTINATION IP>
where DESTINATION is the same IP that you've specified in your docker run command.
Content type
Image
Digest
Size
99.8 MB
Last updated
about 6 years ago
docker pull gpol/mpd