blog:articles:raspberry:mpd_network
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
blog:articles:raspberry:mpd_network [2024/05/04 21:41] – [MPD] Phil Ide | blog:articles:raspberry:mpd_network [2024/06/21 13:31] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOCACHE~~ | ||
====== MPD and NAS ====== | ====== MPD and NAS ====== | ||
- | I have Volumio on a Raspberry Pi 4, which I thin is fantastic software, but there re two gripes I have with it: | + | I have Volumio on a Raspberry Pi 4, which I think is fantastic software, but there are two gripes I have with it: |
- Despite setting "Allow UI Statics Collection" | - Despite setting "Allow UI Statics Collection" | ||
- In order to play music on the device I'm controlling it from (e.g. my phone), I have to pay | - In order to play music on the device I'm controlling it from (e.g. my phone), I have to pay | ||
- | I can do without paying, I've paid enough and I'm on a tight budget but the stats collection gets up my nose. Whilst they may no longer collect | + | I can do without paying, I've paid enough and I'm on a tight budget but the stats collection gets up my nose. Whilst they may no longer collect |
Time for something new. | Time for something new. | ||
===== MPD ===== | ===== MPD ===== | ||
- | I grabbed a spare micro SD card and installed a copy of DietPi on it (my favourite OS for headless Raspberry Pi's). Once the Pi was up and running, I did some basic configuration stuff (such as change default passwords and give the Pi a hostname), | + | I grabbed a spare micro SD card and installed a copy of DietPi on it (my favourite OS for headless Raspberry Pi's). Once the Pi was up and running, I did some basic configuration stuff (such as change default passwords and give the Pi a hostname), |
- | Next up, I installed < | + | Next up, I installed < |
- | My music folder is: < | + | My music folder is: < |
< | < | ||
+ | At this stage you can use '' | ||
+ | |||
+ | Once that's done, it's necessary to stream the music (as well as play it on the attached studio speakers), so you can listen on your phone/ | ||
+ | < | ||
+ | audio_out { | ||
+ | type " | ||
+ | name " | ||
+ | port " | ||
+ | bind_to_address " | ||
+ | bitrate " | ||
+ | format " | ||
+ | </ | ||
+ | |||
+ | Note the bitrate is half CD quality - I don't want to burn up my data allowance too quickly, and besides, bluetooth bandwidth is limited anyway. An mp3 is between 1/4 and 1/3 of CD quality, and bluetooth has less bandwith than an mp3. After saving this file, restart mpd: | ||
+ | < | ||
+ | |||
+ | ===== O!MPD and MAFA ===== | ||
+ | Using the web interface, I can select an album by various categories (genre, artist, album, recents, most-played etc.), by my music is orgnised such that it's easiest to navigate to an album using the file system structure. When I selected an album it started playing, and my music cheerfully blared out of the speakers. That works. Next, onto the reason I wanted this setup in the first place - streaming to my phone when I'm out of the house. | ||
+ | |||
+ | I'd heard a lot of good things about MAFA, an app available for android phones so I installed that. Here's the nice bit - all I had to do was point it at my Raspberry Pi I'd just been setting up, using the local IP address (it has a fixed address). To test, I simply turned WiFi off on my phone, and mobile data on. I have a VPN which tunnels me into my home network, so I enabled that on my phone too. | ||
+ | |||
+ | Hmmm, not working. MAFA is failing to connect. I checked Network settings on MAFA: ' | ||
+ | |||
+ | To the right of the play controls (in MAFA) is an icon that looks like it woud take you to a graphic equaliser. Instead, it takes you to a screen where you have three very important controls. One allows you to enable/ | ||
+ | |||
+ | ===== Adding Music ===== | ||
+ | If I get another CD I'll rip it to FLAC and upload it to my NAS. Then I jump on O!MPD (the web manager) and in the settings I select '' | ||
+ | |||
+ | To give more distinction, | ||
+ | |||
+ | If you have lots of music - I have in excess of 44k tracks (although there is some duplication in earlier stuff) - scanning and rescanning can take a long time, so being able to update a single folder and its sub-folders is very welcome. | ||
+ | |||
+ | ===== Conclusion ===== | ||
+ | It turned out to be a lot less hassle than I expected to setup this system. I have to agree that Volumio generally has a better web interface, but I only use O!MPD to update the database anyway, so I don't care about that. If you wanted a whole-house system, it is very easy to add Shoutcast or Icecast to the system, to ensure each speaker in your house plays in synch with the others. You can even set each ' | ||
+ | |||
+ | One more note about MPD - you can ' | ||
+ | ~~socialite~~ | ||
+ | ~~DISCUSSION~~ | ||
blog/articles/raspberry/mpd_network.1714858892.txt.gz · Last modified: 2024/05/04 21:41 by Phil Ide