UPnP Endpoint on MacOS

If you are not against the use of it you could ask AI. In my experience ChatGPT and Claude can be really helpful with troubleshooting and suggestions for the right commands.

Hello Agoldnear !
Well to make a long story short : on my setup my Mac is what plays my music, with my Metric Halo sound card. My actuel setup is MPD for my local music, but I just discovered Navidrome and I did a setup with that so that my children can access to that music library (with the Subsonic protocol) from client on old iPhones I have. Now I’d like to “simplify” a bit that setup, so that my children and I use the same client. I found a very nice app in beta test (“Narjo”) that allows to play from Navidrome, AND to send music via uPnp DNLA speakers. And I prefer use that than AirPlay, to ensure there will be no resampling of the music. You know everything ! :wink:

Yes I could but I prefer talk with human, especially if they are kind like Jud :slight_smile:

1 Like

Ok I understood why I can’t install : that’s because my OS is too old :frowning:

When I check on the page

I see the minimum OS required is Sonoma… I’m still on Monterey :sweat_smile:

I upgraded to Sonoma but I still have the same issue when trying to install libnpupnp :



Warning: No available formula with the name "libnpupnp". Did you mean libupnp or libnatpmp?


==> Searching for similarly named formulae and casks...

==> Formulae

libupnp ✔                                                                                                               libnatpmp



To install libupnp ✔, run:

  brew install libupnp ✔

Very strange. Since I didn’t run into that problem, I don’t know why it says that.

The next thing to do would be to download the source and try the meson build, using the same commands as the upmpdcli build. If you get a similar message trying to install libupnpp with Homebrew, do the same there.

I had the good idea : brew upgrade :slight_smile:

Since I upgraded the OS I had to upgrade brew, quite logical but I didn’t thought about this before…

So now it’s finding the libraries and installing :slight_smile:

I’ll let you know the suite :wink:

1 Like

I followed your steps and now I’m blocked here :

Now you’ll use meson to install upmpdcli. The configuration manual is for Linux and there’s one variation for the Mac installation. Open the Terminal and issue the following commands in sequence:

meson setup build

cd build

ninja

sudo meson install

I don’t understand : how am I supposed to install upmpdcli ?

When I type meson setup build in the terminal I get ERROR: Neither source directory 'build' nor build directory None contain a build file meson.build.

I tried brew install upmpdcli but it doesn’t found the formula.

I think I begin to understand… I need to upgrade Xcode now… I keep on fighting and will come back to let you know if I win :wink:

1 Like

You need to clone the upmpdcli source, then cd into the source directory on your system before you issue the build commands. So go to the upmpdcli page that talks about building from source (I have it linked above), and click the link for the git source page. When you go to that page, copy the URL. Then in the terminal type git clone, paste the source page URL after it and enter, so:

git clone URL-you-pasted

After the source is done downloading, issue

cd upmpdcli

then follow the meson build steps. :slightly_smiling_face:

Hello Jud !

I’m begining to success, but with the hard way :sweat_smile: I had to download the 2 libraries and compile (I don’t know why meson didn’t saw the libraries installed by brew…). Anyway I managed to compile a version of upmpdcli :partying_face:

But it’s still not working completly, when I run it it says it can’t connect to MPD (which is working, I checked). Î’m even sure the compilation have be sucessful :grin: well I’ll keep on fighting tomorow ! Thank you very much for your help

1 Like

I just saw that on a forum :

The one problem is mpd only works with default port 6600, otherwise not listened.
Everything works well after install controller app

that may be a cause, I’ve put 6605. I’ll try tomorrow

1 Like

In the upmpdcli.conf-xml and upmpdcli.conf-dist files, try uncommenting the line that says mpd is on localhost. Also try uncommenting the line in mpd.conf that says the mpd host is “any.” And finally, restart the computer, restart mpd, then start upmpdcli.

Then hope it works! :crossed_fingers::slightly_smiling_face:

Edit: And yes, don’t monkey around with the port, leave it at default.

A serious kluge… Good luck trying to maintain this…
Why not just put your music library on a NAS so everybody with iPhones can access the music library via Sharing?.. You have one reference system that is being compromised by software operations on the Mac platform that is supporting Audirvāna… it’s kind of a joke to be concerned about ‘no resampling’ but have no problem running this kluge…

:musical_notes: :eye: :nose: :eye: :musical_notes:

It works ! Thank you very much Jud, my build was finaly right, I had to leave the port of mpd to defaut.

It works… more or less :wink: The upnp renderer is seen by mConnect (another client player) but not by Narjo, which is the app I’d like to use… I’ll see that with the Narjo developer.

1 Like

Hello Agoldnear, I don’t use Audirvana, even if it’s a nice app I allready tried.

And so easy, too. :wink:

It’s possible the reason Narjo isn’t working is because Navidrome (the server for which Narjo is a client/control point) uses mpv’s IPC facility, while upmpdcli uses mpd as a dependency. That’s just a possibility, I haven’t used Navidrome or its apps, so I can’t be certain.

No no it’s not the reason. In fact I also am trying to use Navidrome in what they call “Jukeboxe mode”, which is what you describe, use mpv to play the audio on the computer that hosts Navidrome. It works, and the developper of Narjo is doing a very nice job to implement it, but it’s still a bit buggy. That’s the reason that pushed me to try the upnp solution.
And to be complete in my answer : Narjo “sees” upmpdci (it appears in the list of the available upnp Devices), but it doesn’t appear in the page where the speakers are selectable. That must be a bug of Narjo that will be solved, I hope !

1 Like

@Jud are you seeing that he does not use Audirvāna…? Don’t you think this serious kluge should be addressed on a different forum and not here, because it is very sketchy operationally, as well as, in the management of the kluge, and does not promote the fundamental premise of Audirvāna and is not supported by the Audirvāna Team?

:musical_notes: :eye: :nose: :eye: :musical_notes: