Audio Format Support on Raspberry Pi with mpd and mopidy
What audio formats work on Raspberry Pi with mpd and mopidy? Covers format support, FLAC playback, USB DAC compatibility, and library setup tips.
Raspberry Pi has become a serious audio platform — single-board computers cheap enough to dedicate one to music streaming, with software stacks (Volumio, moOde, RoPieee, MPD, Mopidy) that turn the Pi into a network audio endpoint. This guide covers the Pi's audio output options, format support, recommended DAC HATs, and the conversion workflow to feed a Pi-based music server.
Raspberry Pi Audio Output Options
The Pi's stock audio outputs are limited:
- 3.5mm jack (Pi 4, Pi 5): noisy analog output from the Pi's PWM audio circuit. Acceptable for desktop listening, not audiophile-grade.
- HDMI: digital audio out to TVs, AVRs, and HDMI-input DACs. Up to 7.1 PCM at 48 kHz.
- USB: any USB DAC, plug-and-play. Supports up to 32-bit / 384 kHz on most modern UAC2 DACs.
- GPIO I2S: digital audio bus available on the GPIO header for HAT-style DACs to bypass USB and connect directly. This is the audiophile path.
Recommended DAC HATs
Pi audio HATs sit on the GPIO header and provide a high-quality DAC plus analog output:
- HiFiBerry DAC2 Pro (~$70) — Burr-Brown PCM5122 DAC, RCA outputs, supports up to 24-bit / 192 kHz
- HiFiBerry DAC2 HD (~$120) — TI PCM1796 DAC, slightly cleaner output, same rate ceiling
- HiFiBerry Digi2 Pro (~$50) — S/PDIF and TOSLINK digital out for users with their own DAC
- Allo BOSS (~$130) — Sabre ESS9038Q2M DAC, dual-clock design for jitter reduction
- IQaudio DAC+ (now Raspberry Pi DAC+, ~$25) — entry-level Burr-Brown PCM5122
- JustBoom DAC HAT (~$50) — Burr-Brown PCM5122 with analog output and headphone amp option
For most users, the HiFiBerry DAC2 Pro or Allo BOSS hits the sweet spot. The output goes to powered speakers, an integrated amplifier, or a headphone amp.
Software Stacks for Music Servers
- Volumio (free / paid premium) — out-of-the-box music server with a web UI, supports DLNA, AirPlay, Spotify Connect, Tidal, Qobuz. Plug-and-play on a fresh SD card.
- moOde audio (free) — community-developed, lightweight, audiophile-focused. Good for users who want fewer features and more control.
- RoPieee (free) — Roon endpoint specifically. Pairs with a Roon Core elsewhere on the network.
- MPD (Music Player Daemon) — bare-bones audio playback daemon. Lightweight, command-line, scriptable.
- Mopidy — Python-based MPD-compatible server with extension system for Spotify, SoundCloud, Tidal sources.
For users with an existing FLAC library on a NAS, Volumio mounted via SMB or NFS is the smoothest path. For users with Spotify subscriptions, Volumio's Spotify Connect integration is the easiest endpoint.
Format Support on Pi
The Pi runs Linux, so the audio decoder is whatever the chosen software ships with — typically GStreamer or FFmpeg under the hood, supporting:
- FLAC, ALAC, WAV, AIFF, WavPack, APE, DSF/DFF (with conversion or DSD-over-PCM)
- MP3, AAC, OGG Vorbis, Opus, WMA
- MP4 audio-only, MKA, OGG containers
Volumio and moOde both support DSD playback (native or DoP) on DACs that decode DSD. The Pi's CPU handles DSD-to-PCM conversion for DACs that do not.
Hardware DAC HAT vs USB DAC
I2S HATs offer:
- Lower cost for equivalent quality (no USB controller in the path)
- Lower jitter on the digital signal
- Cleaner physical setup (no USB cable, integrated power)
USB DACs offer:
- Plug-and-play on any computer, not just Pi
- Higher-end DAC chips at higher prices (Topping E50, Schiit Modi, Chord Mojo)
- Easier upgrade path
For a dedicated Pi music server, an I2S HAT keeps things compact. For a Pi shared with other audio sources, a USB DAC is more flexible.
Conversion Before Transfer
If your library is mixed format and you want a clean Pi-side experience, convert to FLAC for archival before copying to the NAS or SD card the Pi reads. AudioUtils tools that help:
- WAV to FLAC — convert master files to lossless archive format
- FLAC to MP3 — create a portable MP3 copy if needed alongside the FLAC archive
- OGG to MP3 — bridge older OGG libraries
The Pi handles FLAC at any compression level without performance issues — even level 8 (slowest encode, smallest file) decodes in real time on a Pi 3 or later.
Filesystem Considerations
The Pi's SD card filesystem (typically ext4 or vfat) handles the operating system. For music storage, three patterns:
1. All on SD card — works for libraries under 50-100 GB on a 128 GB SD card. Cheap, simple, slow random reads. 2. External USB drive — USB 3 SSD or HDD plugged in. Up to multi-TB. Format as ext4 for Linux performance or exFAT for cross-OS compatibility. 3. NAS over SMB/NFS — music stays on a separate NAS, Pi mounts the share. Best for libraries shared across devices.
For the cleanest setup with a quiet Pi: mount NAS music share via NFS, configure Volumio to use it as a music source, no spinning disks attached to the Pi itself.
Sample Rate and Bit Depth
I2S HATs typically support up to 24-bit / 192 kHz. USB DACs support higher (32-bit / 384 kHz, DSD256, DSD512 on DoP-capable DACs). For most listeners, 24-bit / 96 kHz is the practical ceiling — anything higher is debate territory.
The Pi sends the source file's native bit depth and sample rate to the DAC when configured for bit-perfect output. Volumio and moOde both expose this in their UI. The reproduction is bit-perfect; what arrives at the DAC is exactly what came off the FLAC.
CPU Load and Power
A Pi 4 with HiFiBerry DAC2 Pro pulling a 24-bit / 96 kHz FLAC consumes:
- ~5-10% CPU during decode
- ~3-4 W total system power
- Silent passive cooling at this load
DSD playback or simultaneous transcoding (e.g., AirPlay re-encode) pushes CPU higher. The Pi 5 has roughly 3x the CPU headroom of the Pi 4.
Tagging and Library
Volumio, moOde, and MPD all read FLAC Vorbis comments, MP3 ID3v2, and M4A atoms. Album art embedded in the file or saved as cover.jpg / folder.jpg in the album directory displays correctly. Use MusicBrainz Picard on a desktop to clean tags before exposing the library to the Pi.
For more on the FLAC archival case that fuels Pi-based music servers, see what is FLAC. For Linux-side conversion tooling that complements browser converters, see convert audio on Linux. For Kodi as an alternative on Pi, see audio format for Kodi.