Skip to content

gutmensch/docker-mpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-mpd Build Status Docker Pulls

mpd - music player daemon

alpine build for home entertainment, alsa only - no pulse, jack, libao, pipewire bloat :P

Goals:

  • Use USB optical out device on QNAP in Docker Container

  • Support MPC and most other audio formats

  • Forget about SMB and NFS (mount in Container anyway)

  • Have frontend for mpd deployed as well (s6 + ympd)

Usage

docker run -d  --cpus "2" --memory 256mb --cap-add SYS_NICE --net host -e MPD_RESAMPLER=soxr -e MPD_HTTPD_OUTPUT_ENCODER=opus -e MPD_HTTPD_OUTPUT_FORMAT='*:*:1' -e MPD_HTTPD_OUTPUT_BITRATE=96000 -e MPD_ALSA_DEVICE="iec958:CARD=U0xccd0x77,DEV=0" -e MPD_ALSA_BUFFER_TIME=400000 -e MPD_ALSA_NAME="USB Audio" -v var-lib-mpd:/var/lib/mpd -v /share/Music:/media/music:ro --device=/dev/snd:/dev/snd --name mpd-1 --restart always registry.n-os.org:5000/mpd:0.23.5

Docker Env Variables (defaults marked bold)

MPD_LOG_LEVEL - mpd log level (e.g. **default**, verbose, etc.)
MPD_PORT - mpd server port (**6600**)
MPD_MUSIC_DIRECTORY - music directory (e.g. **/media/music**)
MPD_ALSA_NAME - display name of alsa output device for ympd (**AudioDevice**)
MPD_ALSA_DEVICE - address of alsa output device (**hw:0,0**)
MPD_ALSA_BUFFER_TIME - alsa buffer time increased if you see messages like 'decoder too slow' (**250000**)
MPD_ALSA_PERIOD_TIME - same tuning as above (**5084**)
MPD_HTTPD_OUTPUT_PORT - mpd http streaming port (**8800**)
MPD_HTTPD_OUTPUT_ENCODER - mpd http output encoder (**lame**, opus)
MPD_HTTPD_OUTPUT_QUALITY - mpd http streaming quality (**3.0**)
MPD_HTTPD_OUTPUT_BITRATE - mpd http streaming bitrate
MPD_RESAMPLER - mpd resampling library (**internal**, soxr, libsamplerate)

About

mpd image for qnap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published