Upmpdcli
upmpdcli is Article description::a free and open source UPnP media renderer front-end for Music Player Daemon (MPD). It allows MPD to be controlled with a UPnP control point (e.g. BubbleUPnP). upmpdcli also allows a single UPnP library to be shared between UPnP control points/renderers and MPD, meaning MPD can be run without a database.
Prerequisites
This article assumes that MPD and a UPnP media server such as Gerbera have been previously configured.
Installation
USE Flags
USE flags for media-sound/upmpdcli UPnP Media Renderer front-end for MPD, the Music Player Daemon
thirdparty
|
Enable streaming from Qobuz and Tidal external services |
Emerge
root #emerge --ask media-sound/upmpdcliConfiguration
Below is a snippet of the default upmpdcli configuration file. Options prefixed with # are commented out because they are set to default values. The options that need to be set are upnpiface or upnpip and mpdhost. If the UPnP or MPD ports have been changed from their defaults, then upnpport and mpdport should be set accordingly.
/etc/upmpdcli.conf# upmpdcli general parameters #logfilename = /var/log/upmpdcli.log #loglevel = 2 #pkgdatadir=/usr/share/upmpdcli #pidfile = /var/run/upmpdcli.pid # upnp network parameters #upnpiface = upnpip = 192.168.0.1 #upnpport = # media renderer parameters #friendlyname = UpMpd #upnpav = 1 #openhome = 1 #lumincompat = 0 #saveohcredentials = 1 #checkcontentformat = 1 #iconpath = /usr/share/upmpdcli/icon.png #cachedir = /var/cache/upmpdcli #presentationhtml = /usr/share/upmpdcli/presentation.html # mpd parameters mpdhost = 192.168.0.1 #mpdport = 6600 #mpdpassword = #ownqueue = 1
upmpdcli relies on MPD's curl input plugin which should be enabled by default. It can be explicitly enabled by adding the following to the MPD configuration file:
/etc/mpd.confinput {
plugin "curl"
enabled "yes"
}
Restart MPD for the changes to take effect:
root #rc-service mpd restartService
OpenRC
Start upmpdcli:
root #rc-service upmpdcli startStart upmpdcli at boot:
root #rc-update add upmpdcli defaultsystemd
Start upmpdcli:
root #systemctl start upmpdcliStart upmpdcli at boot:
root #systemctl enable upmpdcliSee also
- MPD — a flexible, server-side application for playing music.
External resources
- upmpdcli - MPD and UPnP