Sign inSign up

gpol/mpd

By gpol

Updated about 6 years ago

Simple container for running MPD with RTP stream using PulseAudio stream capabilities.

Image
0

881

gpol/mpd repository overview

MPD over RTP with PulseAudio

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.

Volumes

VolumeRequiredDescription
/musicYesYour music folder.
/configNoYour MPD configuration.
/logNoVarious logs.

Variables

VariableRequiredDescription
DESTINATIONYesThe destination IP address for the RTP stream.
PUIDNoThe UID of the user running MPD.
GUIDNoThe GID of the user running MPD.

Ports

PortShould be exposed?Description
6600YesMPD control port.

Example

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

Listening to the stream

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.

Missing features

  • RTP multicast

Tag summary

Content type

Image

Digest

Size

99.8 MB

Last updated

about 6 years ago

docker pull gpol/mpd