Skip to content

A simple guide for connecting MPD and Navidrome running on 2 different computers #489

@sergueif

Description

@sergueif

Hi Giovanni,

I know there's many different ways to use MPD and Navidrome and Upnp and all. There's "control point" stuff, etc. I've read the "frontend-vs-backend mpd intgration" page (https://www.lesbonscomptes.com/upmpdcli/pages/upmpdcli-or-mpdupnp.html). But I still can't figure out how to do the following:

  • I have navidrome happily running on computer A. it accesses media files on computer X via a samba share. I can play music on my phone via a subsonic client accessing this Navidrome instance
  • Computer X also has nice speakers connected to it. I play music on those by using MPD. in the current setup, MPD accesses the audio files via a local folder and has it's own DB in a file.
  • I want to deploy upmpdcli somewhere (could be computer X or another computer B, but probably not A, so as to not overload it) to make the MPD use Navidrome as it's database.

In the above setup, is it necessary to have upmpdcli also act as an audio file server? my MPD can already access the raw audio files because it's colocated with those. I just want MPD to have live access to the playlists that Navidrome maintains (some of which are "smart").

I managed to get upmpdcli running via Docker-compose on computer B and it prints a bunch of happy stuff like CMDTALK: subsonic-app.py: Processing genre [Instrumental Jazz] so I take it that means upmpdcli can access the content of my Navidrome. But now how do I connect the existing MPD instance to it? What's the minimal config for mpd.conf and for upmpdcli.conf?

I tried to do just the

database {
    plugin "upnp"
}

in mpd.conf, but that seems to fail with:

exception: Failed to open database plugin; UpnpInit() failed: UPNP_E_SOCKET_BIND

also, I can't seem to see the docker-compose instance of upmpdcli on the iOS UPnP Mate app. But when i did another experiment and ran UPnP without docker on Computer X, then I can see the upmpdcli "Media Server" listed in upnp Mate.

Anyway, much appreciate you doing the subsonic upmpdcli plugin so that there's hope of connecting MPD to Navidrome. All I want is to use MPD "as a client to" Navidrome (and then ncmpcpp "as a client/remote to" MPD).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions