Raspberry Pi Home Media Centre [gav-pi10 / 17]
Everyone should really have a Raspberry Pi set up as a media player!
The easiest way to get this up and running is with LibreELEC (just enough Linux to run Kodi).
Kodi itself allows you to watch any videos that are on the network, listen to your music over the network, show photos, and even get the likes of YouTube and Ted Talks on the telly!
I've set Kodi up to have exclusive use of the HDMI for video and audio... and additional music is on the dedicated USB TOSLINK.
For my own house, I used a Pi3 (gav-pi17, bought to replace a Pi that I thought had gone faulty, but turned out to just be a corrupt SD card). This runs Kodi via LibreELEC but also has Music Player Daemon (MPD) in the background.
The Pi set up at the ex-wife's house (gav-pi10) doesn't run LibreELEC, but just Raspberry Pi OS (lite) as she just uses MPD.
Kodi is set up to NFS mount all of the media from within the programme. However, to get all of the media from the server for MPD, I've mounted my NFS export directly into the filesystem. If you want to store music directly on the Pi, then skip step 6a below.
I originally gave MPD exclusive use of the audio stereo jack. However, after getting my Marantz NR1504 A/V Receiver (which was replaced a decade later by a Denon AVR-X2800H), I noticed a massive difference in the sound quality of the same FLAC played through MPD -> stereo jack -> analogue amplifier input and Kodi -> HDMI -> digital input on amplifier (or indeed the amplifier reading the FLAC directly). So, I bought myself one of these: a Cubilux USB-TOSLINK Optical Adaptor Now I have digital FLAC all the way to the DAC inside the amplifier... it sounds much better now!
This was an older digital audio device: Fanmusic FM-6011 USB-S/PDIF adaptor, which was replaced by the Cubilux TOSLINK device when I got my new Denon amplifier, that only had optical digital audio inputs.
It was extremely simple to set up...
- Plug an SDHC card into desktop PC (or laptop).
- Download and install LibreELEC to the card.
- Plug the SDHC card into the Raspberry Pi and power up, letting it re-size the SD card and then reboot.
- Install the Music Player Daemon: System -> Add-ons -> Install from repository -> LibreELEC Add-ons -> Services -> Music Player Daemon (MPD)
- Install as many add-ons as you like to Kodi. The SuperReop has literally thousands of them!
-
From the desktop PC, SSH into the Pi and do the following:
- Set up a mount service to locate music on your network.
-
Edit the MPD configuration (note that there are actually two versions
in different locations for some reason, but this is the one you want):
nano ~/.kodi/userdata/addon_data/service.multimedia.mpd/config/mpd.confThe things that you'll want to change are the "music_directory" and an "audio_output" - I used the ALSA example to produce this:audio_output {
type "alsa"
name "S/PDIF -> Amp"
device "hw:1,0"
format "44100:16:2"
mixer_type "none"
} - Reboot the Pi (to start MPD)
- Sit back and play / watch / listen!
Specifications [gav-pi10]
| Case: | Official Raspberry Pi 3 Case | ||||
| Board: | Rapsberry Pi 3B (version 1.2) | ||||
| SoC: |
Broadcom BCM2837
|
||||
| RAM: | 1GiByte LPDDR2 SDRAM | ||||
| Storage: | Sandisk Ultra, class 10 (32GByte SDHC) | ||||
| External Sound: | Cubilux USB-TOSLINK Optical Adaptor | ||||
| External Sound: | LG Soundbar |
Specifications [gav-pi17]
| Case: | FLIRC with Pimoroni's Omni VESA mount | ||||
| Board: | Rapsberry Pi 3B+ (version 1.3) | ||||
| SoC: |
Broadcom BCM2837B0
|
||||
| RAM: | 1GiByte LPDDR2 SDRAM | ||||
| Storage: | Sandisk Ultra, class 10 (8GByte SDHC) | ||||
| Monitor: | Sony BRAVIA KD50X80JU (4k LCD TV) | ||||
| External Sound: | Cubilux USB-TOSLINK Optical Adaptor | ||||
| Speakers: |
Cambridge Audio MINX MIN12 (rear speakers)
Cambridge Audio SX-120 (subwoofer) and Kef iQ5SE (floor standing front speakers) and Monitor Audio Radius 200 (centre speaker) and All driven from Denon AVR-X2800H (A/V receiver & amplifier) |
||||
| Keyboard / Mouse: | Logitech diNovo Mini |
Helpful resources:



![Validate my Atom 1.0 feed [Valid Atom 1.0]](./images/valids/valid-atom10-yellow.gif)
![Validate my RSS 2.0 feed [Valid RSS 2.0]](./images/valids/valid-rss20-yellow.gif)