You are not logged in.

#1 2008-03-03 14:09:51

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

[SOLVED] MPD and Mplayer don't play nice

At the moment, I have to kill the MPD process in order to get MPlayer to play sound, otherwise a 'resource is busy' type message comes up.
I'm using alsa and using self compiled Mplayer (from svn).

Any suggestions?

Last edited by dyscoria (2008-03-03 16:28:34)


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#2 2008-03-03 14:47:50

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: [SOLVED] MPD and Mplayer don't play nice

yeah this is very strange, to have a problem like this in 2008... anyway you fix it by editing ~/.asoundrc and no, i can't remember how.. edit: maybe this entry on alsa will help: http://wiki.archlinux.org/index.php/All … nd_at_once


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#3 2008-03-03 14:56:16

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

Re: [SOLVED] MPD and Mplayer don't play nice

*flamemode on*
i know an even nicer fix for this:

pacman -R alsa-lib && pacman -A oss4 (from aur)
*flamemode off*

Last edited by Rasi (2008-03-03 14:56:39)


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

#4 2008-03-03 15:30:08

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: [SOLVED] MPD and Mplayer don't play nice

Are you sure that you need to kill mpd?  Isn't it enough if music is stopped (stopped, not paused)?  If the problem occurs if music is properly stopped then I think something is wrong with the svn version of mpd; otherwise it means that there is something wrong with alsa dmix setup.

Offline

#5 2008-03-03 16:16:51

oliwer
Member
From: Paris
Registered: 2007-06-30
Posts: 153
Website

Re: [SOLVED] MPD and Mplayer don't play nice

I had the same problem wink

In /etc/mpd.conf, go to the "audio_output" section and comment the lines "device" and "format" (thoses lines are marked as optionnal).

Now restart mpd, and it will work as any other alsa application.

Offline

#6 2008-03-03 16:28:22

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: [SOLVED] MPD and Mplayer don't play nice

oliwer wrote:

I had the same problem wink

In /etc/mpd.conf, go to the "audio_output" section and comment the lines "device" and "format" (thoses lines are marked as optionnal).

Now restart mpd, and it will work as any other alsa application.

Ah worked like a charm! Thanks bud

*MPD wiki edited*


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

Board footer

Powered by FluxBB