You are not logged in.

#1 2011-12-07 19:52:18

klz
Member
Registered: 2011-02-14
Posts: 23

[sorta-solved]mpd-pulse removed; but mpd[extra] does not work

Hi,

A few weeks ago i got a lib-error (after an Pacman -Syu) for mpd-pulse. So i tried reinstalling it. Unfortunately mpd-pulse is not around anymore.

Previously i used mpd-pulse because, on my system, somehow the mpd[extra] does not work.
I tried very hard to make the extra-version work; in the end i gave up and tried the aur version as a last resort. This worked out of the box.

I also commented this in on the package page of mpd-pulse. (which has disappeared?)

Now i cant find mpd-pulse anywhere anymore. It seems to have been removed altogether.
Is it possible to get the sources of this (old) package?

Regards,
klz

p.s. the lib-error i got was something like "missing libavformat.so.52" ; after reading this thread: https://bbs.archlinux.org/viewtopic.php?id=119453 i tried reinstalling mpd-pulse, when i noticed this was impossile i tried installing mpd instead, with silence as a result.

Last edited by klz (2012-05-25 14:40:50)

Offline

#2 2011-12-07 20:00:31

cybertorture
Member
Registered: 2010-05-05
Posts: 339

Re: [sorta-solved]mpd-pulse removed; but mpd[extra] does not work

I believe mpd support pulse for quite some time. Any particular reason to use older release ?


O' rly ? Ya rly Oo

Offline

#3 2011-12-07 23:21:10

klz
Member
Registered: 2011-02-14
Posts: 23

Re: [sorta-solved]mpd-pulse removed; but mpd[extra] does not work

cybertorture wrote:

I believe mpd support pulse for quite some time. Any particular reason to use older release ?

Jep, i have a reason wink
The mpd that (supposedly) supports pulse, actually only gives me silence on my system.

I don't know what the difference is between mpd-pulse and mpd;
i've spent many nights trying to get mpd to play some music on my system... i only get silence.

I had a sound playing system with mpd-pulse, i didnt change any settings. After changing from mpd-pulse to mpd: SILENCE. 
(I tested this a while ago, before the library broke.)
So i do not think it has something to do with my system settings. Maybe it has something to do with the way the binary in pacman is compiled??

I havent tried compiling mpd from source, will try that somewhere this week. For the time being i use mplayer to play my musics.

Offline

#4 2011-12-08 01:46:04

matse
Member
Registered: 2011-04-27
Posts: 299

Re: [sorta-solved]mpd-pulse removed; but mpd[extra] does not work

MPD and pulse works really fine here, have you configured mpd to use pulse as described in the Archwiki?

Offline

#5 2011-12-08 07:00:15

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [sorta-solved]mpd-pulse removed; but mpd[extra] does not work

matse wrote:

MPD and pulse works really fine here, have you configured mpd to use pulse as described in the Archwiki?

Ditto, I've been using mpd from [extra] with pulseaudio no problem. You can check the PKGBUILD in abs as well...


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#6 2011-12-08 12:41:54

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [sorta-solved]mpd-pulse removed; but mpd[extra] does not work

mpd from [extra] has native pulseaudio support... but make sure that you are using the pulse output and not the alsa output.
Check in your client which outputs are active.  (mpc output should list those).

I am using it with pulseaudio with no hassle at all...


Oh and if you have installed pulseaudio-alsa there shouldnt be any issues even if you use mpds alsa output...

Last edited by Rasi (2011-12-08 12:42:22)


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

#7 2011-12-10 15:52:26

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [sorta-solved]mpd-pulse removed; but mpd[extra] does not work

I'm confused by some advice in this post.  I have pulse-audio happily working with mpd but I have to use the alsa line in /etc/mpd.conf

$ sed -e '/^\#/d' -e '/^$/d' /etc/mpd.conf
music_directory		"/media/data/DM/Genre"
playlist_directory	"/var/lib/mpd/playlists"
db_file			"/var/lib/mpd/mpd.db"
log_file		"/var/log/mpd/mpd.log"
pid_file		"/var/run/mpd/mpd.pid"
state_file		"/var/lib/mpd/mpdstate"
user "mpd"
gapless_mp3_playback			"yes"
zeroconf_enabled		"yes"
zeroconf_name			"Music Player"
input {
  plugin "curl"
}
audio_output {
  type		"alsa"
  name		"My soundcard"
}
mixer_type			"software"
audio_buffer_size "35000"
buffer_before_play "5%"

If I change the line under audio_output from "alsa" to "pulse" I get no sound.

The only alsa package I have installed is alsa-lib but it i is a dep of many other packages such as chromium, ffmpeg, etc.

$ pacman -Qq | grep alsa
alsa-lib

@Rasi and ngoonee - can you guys post the similar output to that sed command from your systems?

Last edited by graysky (2011-12-10 15:57:14)

Offline

#8 2011-12-10 16:04:59

cybertorture
Member
Registered: 2010-05-05
Posts: 339

Re: [sorta-solved]mpd-pulse removed; but mpd[extra] does not work

user "mpd"

maybe that is the reason especially if you use gdm+gnome, because your session of user "mpd" is actually not active so it works but you wont get sound. Test it with your own user, and if it is working than that is the reason.


O' rly ? Ya rly Oo

Offline

#9 2011-12-10 18:56:35

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [sorta-solved]mpd-pulse removed; but mpd[extra] does not work

@cybertort - that was the problem.  Thanks.

Offline

#10 2011-12-11 05:20:15

cybertorture
Member
Registered: 2010-05-05
Posts: 339

Re: [sorta-solved]mpd-pulse removed; but mpd[extra] does not work

You are welcome wink


O' rly ? Ya rly Oo

Offline

#11 2011-12-11 11:15:25

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: [sorta-solved]mpd-pulse removed; but mpd[extra] does not work

In the off chance someone else has the same issue, mpd set to play with pulse also won't work for me (silence) when I am using teamspeak3 set to pulse simultaneously. All is well with teamspeak3 set to alsa and mpd set to pulse though..

.. mpd-pulse used to work for me too with both ts and mpd set to pulse. http://forum.teamspeak.com/showthread.p … -Mutes-MPD  as described here, others on arch have the same issue and it worked with an older teamspeak.. so I'm not sure which is the issue, newer ts3 or mpd or both. I will edit this thread at a later time when I feel inclined to try an older mpd with the answer to that question.

Ftr, mpd.conf is indeed set to run as my user, and it is set to pulse as the output.

EDIT1: Naturally, mpd oldstable won't compile anymore because of a newer version of ffmpeg. http://musicpd.org/mantis/view.php?id=3239  ..trying older teamspeak3. Will probably never know if the old mpd would still work properly with the aforementioned configurations.

EDIT2: 3.0.0beta36 does work in pulseaudio mode with mpd current also in pulseaudio mode without problems. Presumably because it uses the old teamspeak3 sound system I think -- the FModEX one or whatever it was before the teamspeak3 devs rewrote it from their own code. Of course this does me little good, as plugins break with this old one... I'll keep using current ts3 w/ alsa and current mpd w/ pulse though as it is a better workaround.

EDIT3 a long time later: I don't know what changed, but everything seems to work fine now with all respective apps configured for pulse output for now. Maybe the pulse 1.1-2 package?..

Last edited by FrozenFox (2012-01-14 17:10:08)

Offline

#12 2011-12-12 20:07:08

klz
Member
Registered: 2011-02-14
Posts: 23

Re: [sorta-solved]mpd-pulse removed; but mpd[extra] does not work

Hi smile

Thanks for your replies, yes, I followed the wiki, been trying stuff from there a lot. Even tried from scratch (uninstalled mpd, removed all confs files) as well, to no avail :s
I'm flabbergasted..

my /etc/mpd.conf:

music_directory		"/home/klz/music"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/mpd.db"
pid_file "/var/run/mpd/mpd.pid"
state_file "/var/lib/mpd/mpdstate"
user "klz"
port				"6600"
input {
        plugin "curl"
}
audio_output {
	type		"pulse"
	name		"My Pulse AARGH"
}
$ ps aux

tells me my mpd is also actually started with this conf file.

$ mpc outputs 
Output 1 (My Pulse AARGH) is enabled
klz $ groups
lp wheel audio klz pulse pulse-access users

(and can play mplayer through pulse)

klz $ aplay /usr/share/orage/sounds/Spo.wav 
Playing WAVE '/usr/share/orage/sounds/Spo.wav' : Signed 16 bit Little Endian, Rate 11025 Hz, Mono

Gives me sound.

My pulse is running in --system mode
And i can restart /etc/rc.d/mpd without getting warnings or errors.

$ for i in `seq 0 4`; do mpc; sleep 3; done
pt1/Nirvana - unplugged_in_new_york/Nirvana - About A Girl (Unplugged).mp3
[playing] #2/15   0:54/3:38 (24%)
volume: 81%   repeat: off   random: off   single: off   consume: off
pt1/Nirvana - unplugged_in_new_york/Nirvana - About A Girl (Unplugged).mp3
[playing] #2/15   0:57/3:38 (26%)
volume: 81%   repeat: off   random: off   single: off   consume: off
pt1/Nirvana - unplugged_in_new_york/Nirvana - About A Girl (Unplugged).mp3
[playing] #2/15   1:00/3:38 (27%)
volume: 81%   repeat: off   random: off   single: off   consume: off
pt1/Nirvana - unplugged_in_new_york/Nirvana - About A Girl (Unplugged).mp3
[playing] #2/15   1:03/3:38 (28%)
volume: 81%   repeat: off   random: off   single: off   consume: off
pt1/Nirvana - unplugged_in_new_york/Nirvana - About A Girl (Unplugged).mp3
[playing] #2/15   1:06/3:38 (30%)
volume: 81%   repeat: off   random: off   single: off   consume: off

So it tells me it is playing, it tells me it has volume, but... no sound.



graysky wrote:

I have pulse-audio happily working with mpd but I have to use the alsa line in /etc/mpd.conf ... If I change the line under audio_output from "alsa" to "pulse" I get no sound.

So i changed my mpd.conf to use alsa, AND LO AND BEHOLD:
Now i get sound, somehow this does not make me completely happy.

Seems i have the same as you graysky.. ;(
Its not really using mpd with pulse now is it...

So now i'm thinking is has something to do with my alsa setup, that that is somehow fucking up my pulse....

Last edited by klz (2011-12-12 20:27:11)

Offline

#13 2012-01-10 16:03:15

klz
Member
Registered: 2011-02-14
Posts: 23

Re: [sorta-solved]mpd-pulse removed; but mpd[extra] does not work

Unfortunately it was only for a short time with the alsa-hack. Dunno what changed/broke it again but after a while (without rebooting) it stopped playing again.
No matter what i use, alsa or pulse. No sound :s

tried compiling mpd from source... didnt help either.
Please somebody!

Last edited by klz (2012-01-10 16:04:47)

Offline

#14 2012-01-11 02:16:46

matse
Member
Registered: 2011-04-27
Posts: 299

Re: [sorta-solved]mpd-pulse removed; but mpd[extra] does not work

Check your mpd log (you should have configured the place where it is stored in your mpd.conf). Also try running mpd with the verbose "-v" switch and see if this produces some output. Just to be sure check with e.g. pnmixer that you don't have muted the mpd output (with pulse you can mute single applications).
Does

mplayer -ao pulse AnyMP3

give you sound?
Greetings
matse

//Edit: And if the above didn't help, can you then upload your /etc/asound.conf ?

Last edited by matse (2012-01-11 02:20:07)

Offline

#15 2012-04-14 21:24:37

klz
Member
Registered: 2011-02-14
Posts: 23

Re: [sorta-solved]mpd-pulse removed; but mpd[extra] does not work

Hi matse,
Yes that always has given me proper sound.

However, I think i have found out what was the problem.
I stopped using the system-wide instance of pulseaudio, I let mpd set up(spawn) its own instance. Now i can play sound through pulseaudio with mpd.
After finding out this working 'profile', i tried gettin a system-wide pulseaudio work with mpd again.. but no matter what i tried, nothing seems to work.

My guess is that the pulseaudio has changed a default in client.conf: 'autospawn = yes'. Maybe this happened somewhere around august 2011, cause, if i remember correctly, that was around the time my mpd died.
Does mpd somehow react on this...? Back in the day (with the mpd from AUR) i could use the system-wide instance problemfree.

Strange thing is, that on the system-wide profile, everything seems to go fine: no errors in logs, file seems to be playing, i can set volume, BUT NO SOUND.
When i change to spawn-settings, everything looks the same in mpd, plus is have sound.


btw, my /etc/asound.conf looks like this:

pcm.!default {
  type pulse
}
ctl.!default {
  type pulse
}

Last edited by klz (2012-04-14 21:27:59)

Offline

#16 2012-05-25 14:40:21

klz
Member
Registered: 2011-02-14
Posts: 23

Re: [sorta-solved]mpd-pulse removed; but mpd[extra] does not work

updated to [sorta-solved] since the problem seems only to occur with a system-wide pulseaudio instance

Offline

Board footer

Powered by FluxBB