MPD Disc Player
go-mpd-discplayer is a daemon that automates audio disc and USB flash drive playback with MPD. Insert a CD or plug in a USB stick — playback starts automatically with full metadata and cover art.
go-mpd-discplayer is part of the odio project but is a standalone project — it works with any MPD setup. Installed and configured automatically by the odio installer. For standalone use, see Installation.
Features
Section titled “Features”- Audio CD playback — detects disc insertion, fetches metadata from GnuDB and MusicBrainz via go-disc-cuer, generates a CUE sheet, and feeds it to MPD. Individual tracks appear in the queue with proper names and cover art.
- USB flash drive playback — monitors udev for USB block device events, mounts via udisks2, triggers an MPD database update, and starts playback. Video files are ignored automatically.
- Automatic cleanup — eject a disc or remove a USB stick, its tracks are removed from the queue.
- Scheduled playback — cron-based scheduling for webradios, CDs, USB devices, or any MPD URI.
- Audio notifications — configurable sound notifications for device events (insertion, removal) and errors.
- Reconnection — automatic reconnection to the MPD server if the connection is lost.
How it works
Section titled “How it works”Audio CDs
Section titled “Audio CDs”go-mpd-discplayer detects disc insertion, reads the disc ID, and delegates CUE file generation to go-disc-cuer. disc-cuer queries GnuDB and MusicBrainz for artist, album, and track information, caches the result, and returns a CUE sheet. go-mpd-discplayer feeds it to MPD. The drive speed is managed automatically: full speed during disc initialization, then reduced for quiet playback.
USB flash drives
Section titled “USB flash drives”go-mpd-discplayer monitors udev for USB block device events. When a stick is inserted, it mounts the filesystem via udisks2, triggers an MPD database update, and starts playback. The previous queue is replaced with the stick’s content. If you plug in a second stick, it replaces the first in the queue.