This commit is contained in:
Wouter Groeneveld 2022-03-05 21:29:04 +01:00
parent 308d775fea
commit 12d8d7917f
1 changed files with 7 additions and 5 deletions

View File

@ -20,19 +20,21 @@ While just relying on ripped `.mp3` files on your local HDD suffices, it's nice
## The How
Enter [Navidrome](https://www.navidrome.org/), a blazing fast "personal streaming service" that acts as your local Spotify server. It has been running in try-out mode for a few weeks and so far, I'm pretty impressed. It's simple, small, consumes little resources, can handle huge libraries, and immediately detects file changes. Do not expect the polish present in the current Spotify client though: the HTML5 client still has missing features (no universal search, no decent gapless playback, ...)---but still. You don't _have_ to rely on their default client.
Enter [Navidrome](https://www.navidrome.org/), a blazing fast "personal streaming service" that acts as your local Spotify server. It has been running in try-out mode for a few weeks here, and so far, I'm pretty impressed. It's simple, small, consumes little resources, can handle huge libraries, and immediately detects file changes. Do not expect the polish present in the current Spotify client though: the HTML5 client still has missing features (no universal search, no decent gapless playback, ...)---but still. You don't _have_ to rely on their default client.
To install docker, [use the offical Docker image](https://www.navidrome.org/docs/installation/docker/). If you have a Synology NAS, it's very easy: install the "Docker" application from the Package Center, click "Registry", find Navidrome, double-click to download. The only thing to configure is the volume; create a new shared folder called `music` and mount it at path `/music`. Done! Now the app should be available at your server IP:your local port (see screenshot below, mine's set at `9977`):
To install Navidrome using docker, simply [use the offical Docker image](https://www.navidrome.org/docs/installation/docker/). If you have a Synology NAS, it's very easy: install the "Docker" application from the Package Center, click "Registry", find Navidrome, double-click to download. The only thing to configure is the volume; create a new shared folder called `music` and mount it at path `/music`. Done! Now the app should be available at your server IP:your local port (see screenshot below, mine's not set to "auto" but hard-coded at `9977`):
![](../navidrome-docker.jpg)
If you want to create a clean URL as an alias, setup the reverse proxy: go to Control Panel, click on Login Portal, tab Advanced, click on Reverse Proxy. Fill in the source (`HTTP`, hostname `cd.yourhost`, port `80`) and destination (`HTTP`, hostname `localhost`, port the local one set up in the Docker settings, mine's set at `9977`). This will not suffice, you also need a DNS server that tells you `yourhost` is actually your local server IP. Synology has a built-in DNS server (search for "DNS Server" in the Package Center), or you can rely on something like a Pi-Hole.
If you want to create a clean URL as an alias, set up the reverse proxy: go to Control Panel, click on Login Portal, tab Advanced, click on Reverse Proxy. Fill in the source (`HTTP`, hostname `cd.yourhost`, port `80`) and destination (`HTTP`, hostname `localhost`, port the local one set up in the Docker settings, mine's set at `9977`). This will not suffice, you also need a DNS server that tells you `yourhost` is actually your local server IP. Synology has a built-in DNS server (search for "DNS Server" in the Package Center), or you can rely on something like a Pi-Hole.
Great, now it's time to start populating that music folder! The location _does not matter_---Navidrome will auto-scan that path. After a while you can enjoy the music through a browser by simply surfing to `http://cd.yourhost/`:
![](../navidrome.jpg)
If you don't like the fact that it's a web app, no worries. Navidrome implements the Subsonic API, meaning all other music streaming clients that are compatible with Subsonic (development was stopped) are also compatible with Navidrome. [Here's a list of apps](https://www.navidrome.org/docs/overview/#apps) currently compatible with the Navidrome server. So far, I've tried:
If you don't like the fact that it's a web app, no worries. Navidrome implements the Subsonic API, meaning all other music streaming clients that are compatible with Subsonic[^subs] are also compatible with Navidrome. [Here's a list of apps](https://www.navidrome.org/docs/overview/#apps) currently compatible with the Navidrome server. So far, I've tried:
[^subs]: The Subsonic development was stopped, hence Navidrome as the spiritual "successor".
- Subtracks for Android---a great looking app but no download play;
- Sonixd---a desktop client based on Electron that is slow, has issues with text rendering and doesn't listen to dedicated next/previous key buttons;
@ -56,7 +58,7 @@ A few random tagging tips for Navidrome:
- Dig up a `cover.jpg` file for each album, there's no need to embed it into the file itself, although it's possible.
- The `comment` tag is displayed below the album art. Go nuts!
As for the ripping itself, well... I still rely on my trusty [WinXP machine](/post/2020/10/building-a-core2duo-winxp-retro-pc/) and yes, still use [Audiograbber](https://www.audiograbber.org/) with `lame.exe`. Instant retro vibes! The LAME encoder comes with a few presets, of which probably only two are of use in 2022:
As for the ripping itself, well... I still rely on my trusty [WinXP machine](/post/2020/10/building-a-core2duo-winxp-retro-pc/) and yes, still use [Audiograbber](https://www.audiograbber.org/) with `lame.exe`. Instant retro vibes! Remember to enable the `SMB1` (Samba v1) sharing protocol on your NAS if you require file access from a retro computer---version 2 and 3 are the standard nowadays. The LAME encoder comes with a few presets, of which probably only two are of use in 2022:
- The `--preset insane` option: a constant bit rate of `320 kbps`. The absolute highest quality but largest files. Average album sizes: `140 MB`.
- The `--preset extreme` option: a variable bit rate of around `260 kbps`. Still very high quality, I can't hear the difference and usually settle with this. Average album size: `105 MB`.