You are not logged in.

#1 2009-10-24 18:23:20

calle
Member
From: Germany
Registered: 2008-11-14
Posts: 45

MPD and Jack

Hej,

I am trying hard to get mpd running with jack, but am constantly failing. Starting mpd it says "successfully detected a jack audio device" and everything looks fine, except i cannot play any file. When i try that with mpc i receive an error "Problems opening audio device". In the mpd logfile appears sth similar:

Oct 24 20:23 : output: Failed to open "default detected output" [jack]: Failed to connect to JACK server
Oct 24 20:23 : player_thread: problems opening audio device while playing "000 neue 000/Eddie Vedder/Into the wild/01 - Setting Forth.mp3"

Any ideas on how to solve this?

I am able to play sounds through jack with aplay, so my .asoundrc should be fine

thanks in advance

Offline

#2 2009-11-10 13:12:09

sighter
Member
Registered: 2008-11-23
Posts: 13

Re: MPD and Jack

Same problem for me.

Do you have any solution?

I am trying around with jack's severname-argument ("-name")  but it doesnt works.

The mpd-daemon starts fine with jack-support compiled in.

greetz
Sascha

Offline

#3 2009-11-10 14:55:18

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

Re: MPD and Jack

For clarification, mpd->alsa->alsa_to_jack_plugin->jack? Not just mpd->jack?

I used that previously, it doesnt' work reliably. All-in-all I've found the jack plugin in alsa to be a pain, prefer the pulseaudio->jack plugin (with jack2).


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

#4 2009-11-11 01:52:17

sighter
Member
Registered: 2008-11-23
Posts: 13

Re: MPD and Jack

I think there are two possible ways, explained here http://mpd.wikia.com/wiki/Configuration . (Look under "Jack")

The first uses the libao and the jack-alsa-plugin:

ngoonee wrote:

For clarification, mpd->alsa->alsa_to_jack_plugin->jack? ...

And the second way directly over the "jack-output" in mpd, which you have to compile in.

With the first way my mpd deamon doesnt start, and dont produce any usable error-output mad


greetz
Sascha

Offline

#5 2009-11-11 03:22:05

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

Re: MPD and Jack

Yep, I'd recommend just using the second way and saving yourself the hassle. Never managed to get to the bottom of the first way.


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 2009-11-11 13:06:02

sighter
Member
Registered: 2008-11-23
Posts: 13

Re: MPD and Jack

Yeah, and with the first way (direct mpd-jack-output) there is the problem.

Mpd starts fine, but if you wanna play any audio over your favourite client (ncmpcpp in my case), a error-msg is written to the log.

Something like the ones calle posted.

But ... ... I am going to increase the verbosity level of mpd. *idea* :-)

EDIT:

The Result

Nov 11 14:11 : decoder: audio_format=44100:24:2, seekable=true
Nov 11 14:11 : output: Failed to open "default" [jack]: Failed to connect to JACK server
Nov 11 14:11 : player_thread: problems opening audio device while playing "Hidden_-_Song.mp3"

This is the output with the highest verbosity-level.

greetz


The SIghter

Last edited by sighter (2009-11-11 13:16:20)

Offline

#7 2009-11-11 13:28:52

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

Re: MPD and Jack

You need a jack plugin, not a direct jack connection. The 'plug' in your asoundrc allows resampling, since I doubt your jack is running at the specified format.


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

#8 2010-01-04 16:53:21

teichsta
Member
Registered: 2010-01-04
Posts: 2

Re: MPD and Jack

sighter wrote:

Yeah, and with the first way (direct mpd-jack-output) there is the problem.

the same to me ... same problem - same error message :-(

With alsaplayer everything works fine but i'd like to use MPD since they have a working and nice looking iPhone-APP :-)

Did you get it working meanwhile?

Cheers,

teichsta

Offline

#9 2010-01-04 17:00:38

teichsta
Member
Registered: 2010-01-04
Posts: 2

Re: MPD and Jack

ngoonee wrote:

You need a jack plugin, not a direct jack connection

which plugin do you think of?

the libao-plugin described here (http://mpd.wikia.com/wiki/Configuration) ?

Cheers,

teichsta

Offline

#10 2010-01-05 05:24:16

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

Re: MPD and Jack

That depends, do you connect directly to JACK or via alsa? The former requries you to recompile mpd with jack support. The latter requires you to have a 'plug' somewhere for format conversion between mpd and jack.

Oh, and I don't think it works if your mpd runs as root and jack runs as user...


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

#11 2010-01-17 08:35:39

rekado
Member
From: Shanghai, China
Registered: 2009-01-13
Posts: 98
Website

Re: MPD and Jack

ngoonee wrote:

Oh, and I don't think it works if your mpd runs as root and jack runs as user...

That seems to be correct. I've set up JACK to start at boot time as a promiscuous server. Still MPD with JACK-support compiled in doesn't seem to be able to connect (same error message in the log).

Offline

#12 2010-01-17 22:44:23

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

Re: MPD and Jack

Sorry, can't really help you there. I'm not sure what direct JACK support brings as a benefit to mpd, probably the alsa plugin is easier to use.


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

Board footer

Powered by FluxBB