You are not logged in.
Pages: 1
Hi all. I've been struggling with mpd for a long while now. I have alsa up and running perfectly fine, but it will not play well with mpd. I have been trying to fix this problem for a few weeks reading through tons of posts on this forum and others but to no avail.
Side note: This same thing happened on ubuntu last year but I managed to fix it and I have forgotten how ![]()
I used Rasi's mpd setup script and am running mpd as user.
Here is my ~/.mpd/mpd.conf
music_directory "/home/axioen/Music"
db_file "/home/axioen/.mpd/database"
log_file "/home/axioen/.mpd/log"
pid_file "/home/axioen/.mpd/pid"
state_file "/home/axioen/.mpd/state"
playlist_directory "/home/axioen/.mpd/playlists"
log_level "default"
#password "password@read,add,control,admin"
#default_permissions "read,add,control,admin"
#user "axioen"
#bind_to_address "10.0.0.1"
bind_to_address "127.0.0.1"
bind_to_address "/home/axioen/.mpd/socket"
port "6600"
gapless_mp3_playback "yes"
auto_update "yes"
audio_output {
type "alsa"
name "Alsa output"
# device "hw:0,0"
# format "44100:16:2"
mixer_type "software"
# mixer_device "default"
# mixer_control "PCM"
# mixer_index "0"
}Running
mpd --no-daemon --stdout -v returns no errors until I try to play song, it returns
alsa_output: Failed to open "Alsa output" [alsa]: Failed to open ALSA device "default": No such file or directory
output: Failed to open audio output Commenting out the audio_output section returns
config_file: loading file /home/axioen/.mpd/mpd.conf
path: SetFSCharset: fs charset is: UTF-8
libsamplerate: libsamplerate converter 'Fastest Sinc Interpolator'
vorbis: Xiph.Org libVorbis 1.3.4
opus: libopus 1.1
sndfile: libsndfile-1.0.25
db: reading DB
output: No 'AudioOutput' defined in config file
output: Attempt to detect audio output device
output: Attempting to detect a alsa audio device
alsa_output: Error opening default ALSA device: No such file or directory
output: Attempting to detect a oss audio device
oss_output: Error opening OSS device "/dev/dsp": No such file or directory
oss_output: Error opening OSS device "/dev/sound/dsp": No such file or directory
output: Attempting to detect a pulse audio device
Assertion 'm' failed at pulse/thread-mainloop.c:236, function pa_threaded_mainloop_get_api(). Aborting.
Aborted (core dumped)useradd -G audio axioen
useradd: user 'axioen' already exists I have tried running it as root and other things but it always gives me the same error.
I don't know if it matters, but I also have pulseaudio installed.
Changing the mpd.conf audio output to pulse works but it is highly distorted.
All help appreciated, thank you.
Update: The solve was removing
replaygain "album" from the bottom of my ~/.mpd/mpd.conf
Last edited by Axioen (2014-10-20 00:14:45)
Offline
useradd -G audio axioen useradd: user 'axioen' already exists
First of all, you normally should not add your user to audio group. Second, do it like this: gpasswd -a axioen audio
I don't know if it matters, but I also have pulseaudio installed.
Changing the mpd.conf audio output to pulse works but it is highly distorted.
Yes, you should use the pulse output. check the levels of your soundcard with "alsamixer -c 0"
and if necessary lower them. Also watch the sliders in pavucontrol
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
Thanks for the tips. I enabled the pulse audio output and it's working, yet everything is still distorted. I have all the sliders very low (alsamixer and pavucontrol).
Last edited by Axioen (2014-10-20 00:09:45)
Offline
Solved. I'm using only
audio_output {
type "pulse"
name "Pulseaudio
}The problem was
replaygain "album"At the bottom of the config file created by the mpdsetup script.
Any ideas on why thats causing a problem?
Last edited by Axioen (2014-10-20 01:35:00)
Offline
hmm... sounds like corrupt replaygain tags in your files. I would like to see one of those..
can you join #mpd on freenode and ping me?
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
Pages: 1