You are not logged in.

#1 2013-07-18 22:20:05

lmello
Member
From: Brazil
Registered: 2012-11-06
Posts: 300

mpd - remote control a machine connected to a stereo?

HI,

From the popularity of mpd, I decided to give it a try.

I have a laptop and a desktop. My stereo is connected to the desktop. I installed mpd on the desktop and a client on the laptop. But instead of playing the music library on the desktop, I got mpd to play the music on the server in the laptop speakers. I wanted the exact opposite: to simply control remotely what plays on the stereo. Is/how is it possible with mpd?

Last edited by lmello (2013-07-19 12:46:38)


Fundamental Axiom of the Universe (aka Murphy's Law): Whatever can go wrong, will go wrong.
First Digital Deduction: Nothing obeys Murphy's Law so well as computers.
Second Digital Deduction: Everything go wrong at least once.
Third Digital Deduction: Things go wrong even when there's absolutely no possibility of anything go wrong.

Offline

#2 2013-07-18 22:28:56

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: mpd - remote control a machine connected to a stereo?

Please choose a thread title that describes the issue: the current one is a candidate for TGN:
https://wiki.archlinux.org/index.php/Fo … ow_to_Post


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-07-18 22:38:36

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

Re: mpd - remote control a machine connected to a stereo?

Run mpd on your media center box.  Now control it with an android or iPhone app.  You get it now I trust?

Offline

#4 2013-07-19 00:21:25

veox
Member
Registered: 2008-10-28
Posts: 49
Website

Re: mpd - remote control a machine connected to a stereo?

Specific steps depend on the client you're using, but basically you run mpd on the server, and configure your client to connect to the server (specifying an IP or hostname). If you understand this, then I don't understand your question.

It would be nice to know what your client is. Or yet better, look at your client's documentation on how to connect to a remote server.

Last edited by veox (2013-07-20 07:10:26)

Offline

#5 2013-07-19 03:03:52

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: mpd - remote control a machine connected to a stereo?

mpd is just a server. You need a client to play the music in the server's db. The server can play music on clients located on the localhost or on a remote host, but the music will always play on the clients machine. I think what you want to do is install a client on the server's machine (something like mpc or ncmpcpp) and use ssh to control the client remotely. Or use MPDroid or iPhone equivalent to turn your phone into an mpd remote.

Offline

#6 2013-07-19 12:43:36

lmello
Member
From: Brazil
Registered: 2012-11-06
Posts: 300

Re: mpd - remote control a machine connected to a stereo?

cris9288 wrote:

but the music will always play on the clients machine.

Thanks, so that's it...


Fundamental Axiom of the Universe (aka Murphy's Law): Whatever can go wrong, will go wrong.
First Digital Deduction: Nothing obeys Murphy's Law so well as computers.
Second Digital Deduction: Everything go wrong at least once.
Third Digital Deduction: Things go wrong even when there's absolutely no possibility of anything go wrong.

Offline

#7 2013-07-19 18:02:03

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

Re: mpd - remote control a machine connected to a stereo?

lmello wrote:
cris9288 wrote:

but the music will always play on the clients machine.

Thanks, so that's it...

wtf. thats plain wrong. music is always played on the server machine...


to the original poster: your question is somewhat hard to follow. but let me guess what you want to do: you have a machine with mpd installed. and you have a 2nd machine (the client) that controls mpd.
Now you want the machine with the client to output sound, right?

If so: use pulseaudio:
https://wiki.archlinux.org/index.php/Pu … er_network

Last edited by Rasi (2013-07-19 18:06:15)


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

#8 2013-07-19 18:05:51

qball
Member
Registered: 2004-04-02
Posts: 40
Website

Re: mpd - remote control a machine connected to a stereo?

cris9288 wrote:

mpd is just a server. You need a client to play the music in the server's db. The server can play music on clients located on the localhost or on a remote host, but the music will always play on the clients machine. I think what you want to do is install a client on the server's machine (something like mpc or ncmpcpp) and use ssh to control the client remotely. Or use MPDroid or iPhone equivalent to turn your phone into an mpd remote.

That my friend is _so_ wrong, I re-logged in after 2 years to comment on this.

THE DEFAULT AND ORIGINAL DESIGN OF MPD IS: A server that plays music! and can be controlled remotely.  It was _NOT_ designed to stream music to clients.

ref: http://mpd.wikia.com/wiki/What_MPD_Is_and_Is_Not

Last edited by qball (2013-07-19 18:08:14)

Offline

#9 2013-07-19 19:05:15

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: mpd - remote control a machine connected to a stereo?

ok, well my apologies - that was definitely wrong. I guess it would be more accurate to say that mpd plays music, but you still you need a client to interface with mpd and have it play music through the outputs configured in mpd.conf.

The op should check out his mpd.conf and make sure he has the right outputs configured (one for the desktop, another for the laptop, etc.). Then he can run his client and use it to turn the right outputs on/off.

Offline

Board footer

Powered by FluxBB