[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
[300] Music Player Daemon (MPD)
01-04-2012, 11:53 AM (This post was last modified: 12-14-2012 12:08 PM by vaidyasr.)
Post: #1
Music Player Daemon (MPD)
The Following are the original instructions posted by Grael in C200/A200 Series.
MPD quick how-to on C300/A300 :

Needed :
1 - CSI, to install opkg
http://www.networkedmediatank.com/showth...#pid240402
2 - opkg, to install packages
http://www.networkedmediatank.com/showth...#pid427422
3 - in opkg, the following packages need to be installed :
. busybox (a PCH reboot is recommended after install)
. mpd
. mpc (if you want it, not mandatory)

Mpd is automaticaly started after install, and will be automaticaly restarted on PCH reboot.
If you need to restart manualy, start / stop / restart script is here :
/share/Apps/local/etc/init.d/99mpd.sh
use :
/share/Apps/local/etc/init.d/99mpd.sh start
/share/Apps/local/etc/init.d/99mpd.sh stop
/share/Apps/local/etc/init.d/99mpd.sh restart

Config file is here :
/share/Apps/local/etc/mpd/mpd.conf

If you want to remove volume control from your client, just comment out the following line in mpd.conf
Code:
mixer_type            "software"

By default, this file is configured to look for music files under
/share/Music
If you want to modify it, change it in mpd.conf file, then restart mpd with /share/Apps/local/etc/init.d/99mpd.sh restart
If you're using a NAS (or a PC) to store your music files, you can follow those instructions : http://www.networkedmediatank.com/showth...#pid489482

Database file will be created here :
/share/Apps/local/etc/mpd/database
On first start, mpd is scanning the full repository to update database.
It can take some time, and clients can fail to connect to the server during the scan.
Just be patient Tongue

Playlists will be stored under :
/share/Apps/local/etc/mpd/playlists/

Control from a client
So, now that everything is installed and configured, we need a client to control it.
Let's take GMPC (Gnome Media Player Client) for exemple, which works fine on Windows and Linux,
but a lot of other clients for different plateforms are available, OSX, iPad/iPhone/iPod, Android...
http://download.sarine.nl/Programs/gmpc/0.20.0/
[Image: 772px-Gmpc-0.18.1-now-playing.png]

Then you need to configure on which server GMPC will connect: your popcorn IP followed by :6600
exemple 192.168.0.11:6600
- host address, your popcorn IP
- server port, 6600
- no authentication or password required

If it's ok, GMPC will connect to PCH mpd and will display your song collection.

If you need further information about using GMPC, you can refer to this guide :
http://gmpc.wikia.com/wiki/GMPC_FIRST_RUN_GUIDE

Tips and limits :
1- When there is a problem at playback, pushing STOP then START usualy resolves it.
2- Using seek in the playing song can break audio output, => tip 1
3- Using Next and Previous a lot can break output too, => tip 1

Changelog :
- 0.16.2-1 to 0.16.2-3: first releases
- 0.16.2-4: fix mp3 playback
- 0.16.2-5: repackaged, no functional changes
- 0.16.5-1:
. Fixed first 3 seconds missing for the first song of a playlist. Current song is restarted until PCH really starts to play.
. In the same playback queue, you can now mix audio files of different resolution. (like 44.1kHz/16bit mixed with 96kHz/24bit...). PCH audio player will be seamlessly restarted when encountering different resolution file
. Software Volume Control added by default

So, I hope you'll enjoy this.

Additional Instructions for 300 series
1. Install libvorbisenc2, libvorbis0 and libvorbisfile3 from opkg.

Donate if you like my effort to make this happen
[Image: btn_donateCC_LG.gif]

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 15 users say Thank You to vaidyasr for this post
01-05-2012, 01:17 PM
Post: #2
RE: [Apps] Music Player Daemon (MPD) C300/A300
Thx a lot!
french tuto:
http://www.popcorn-hour-fr.com/forum/sho...p?tid=4489

Super Moderator Popcorn Hour France
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to jfcus for this post
01-05-2012, 10:18 PM (This post was last modified: 01-05-2012 10:29 PM by A-team.)
Post: #3
RE: [Apps] Music Player Daemon (MPD) C300/A300
Hi,

I'm sorry, but I don't see theses three files (libvorbisenc2, libvorbis0 and libvorbisfile2) in the opkg list, what am I doing wrong?

Thanks,
Alan

(01-04-2012 11:53 AM)vaidyasr Wrote:  Additional Instructions for 300 series
1. Install libvorbisenc2, libvorbis0 and libvorbisfile2 from opkg.
Find all posts by this user
Add Thank You Quote this message in a reply
01-06-2012, 06:12 AM
Post: #4
RE: [Apps] Music Player Daemon (MPD) C300/A300
@A-team,
Yes the Packages file was not updated and try now. it should be available.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to vaidyasr for this post
01-06-2012, 06:27 AM
Post: #5
RE: [Apps] Music Player Daemon (MPD) C300/A300
Party 2Party1 It works! Thanks! I was looking to get this installed ever since going from my old HDX-1000 to my new PCH A300. Smile
Find all posts by this user
Add Thank You Quote this message in a reply
01-06-2012, 10:37 AM
Post: #6
RE: [Apps] Music Player Daemon (MPD) C300/A300
For some reason it doens't work here... I remember doing the same on my A200 and then it worked immediately. It seems to install fine cause all the folders appear. The only thing is that there isn't a database folder/file created. I restarted using CSI after installing busybox and after waiting a long time after mpd installed, I restarted again but still no joy.
I'm a complete noob on telnet and linux, but since it worked on my A200 following the same steps...

How can I check (as simple as possible) what is wrong and why my database isn't created?

Thanks!
Find all posts by this user
Add Thank You Quote this message in a reply
01-07-2012, 01:58 AM
Post: #7
RE: [Apps] Music Player Daemon (MPD) C300/A300
Thanks for sharing this, got it working on my A-300 Smile
Find all posts by this user
Add Thank You Quote this message in a reply
01-07-2012, 10:31 AM
Post: #8
RE: [Apps] Music Player Daemon (MPD) C300/A300
After hours of thinkering I could not seem to connect between my A300 and the laptop. In the setup of the Gmpc you have to put your IP of the PCH followed by :6600. After I removed :6600 I finally could connect! Everything is working great! Thanks Vaidyasr!


Cheers,

Martijn.
Find all posts by this user
Add Thank You Quote this message in a reply
01-08-2012, 03:17 PM
Post: #9
RE: [Apps] Music Player Daemon (MPD) C300/A300
subscribed

"The future is already here. It's just not evenly distributed." W. Gibson
"I like the future. I'm in it." F. Theater
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
01-09-2012, 07:34 AM
Post: #10
RE: [Apps] Music Player Daemon (MPD) C300/A300
yes, on my A300, it was labeled .../share1/ as well. I am wondering if this will be persistent or does one have to go in and open the "music" share first each time for it to work. I will test it over the next couple days and let you know.

A-300 via HDMI to a Denon AVR 3311Ci. Samsung 46B750 TV.
Find all posts by this user
Add Thank You Quote this message in a reply
01-10-2012, 12:11 PM (This post was last modified: 01-12-2012 11:09 PM by timwest73.)
Post: #11
RE: [Apps] Music Player Daemon (MPD) C300/A300
Hi There,

Recently bought an A300 and got mpd setup over the last couple of days. Great way to play music on the A300 without using NMJ. However I have a problem. 90% of my collection is mp3 while 10% is flac. The mp3 files play fine while the flac files are stuttering a little. Is anyone else experiencing this? The same flac files play perfectly fine when playing in NMJ so it appears the issue is with mpd. Installed mpd as per the instructions here.

Regards
Tim

<Edit> Problem solved
Find all posts by this user
Add Thank You Quote this message in a reply
01-10-2012, 12:23 PM
Post: #12
RE: [Apps] Music Player Daemon (MPD) C300/A300
Flac plays fine here. (A-300--Marantz NR1501). Even when uploading hundreds of jpg's to the NMT.
Find all posts by this user
Add Thank You Quote this message in a reply
01-12-2012, 07:03 PM (This post was last modified: 01-12-2012 07:05 PM by sorpio.)
Post: #13
RE: [Apps] Music Player Daemon (MPD) C300/A300
Jeez can't get this to work on my Synology NAS (SMB share muziek) internal disc does work but with the provided link for network drives I can not seem to get it to work /localhost.drives/NETWORK_SHARE/muziek. Anybody got an idea?

Code:
Networked disk
sh-3.00# killall mpd
sh-3.00# /share/Apps/local/etc/init.d/99mpd.sh start
Starting Music Player Daemon: music directory is not a directory: "/opt/sybhttpd
/localhost.drives/NETWORK_SHARE/muziek"

Local disk
sh-3.00# killall mpd
sh-3.00# /share/Apps/local/etc/init.d/99mpd.sh start
Starting Music Player Daemon: mpd.
Find all posts by this user
Add Thank You Quote this message in a reply
01-12-2012, 07:09 PM
Post: #14
RE: [Apps] Music Player Daemon (MPD) C300/A300
This is probably your problem:

Starting Music Player Daemon: music directory is not a directory: "/opt/sybhttpd
/localhost.drives/NETWORK_SHARE/muziek"

In my case, even though the share was labeled Music and all, as far as my A300 was concerned, the share is called share1. Also, it does not exist on a reboot, you have to manually launch the share for share1 to be there. Do the telnet steps shown above somewhere (or in the C200/A200 thread) and you can see what it actually is.

A-300 via HDMI to a Denon AVR 3311Ci. Samsung 46B750 TV.
Find all posts by this user
Add Thank You Quote this message in a reply
01-12-2012, 07:51 PM
Post: #15
RE: [Apps] Music Player Daemon (MPD) C300/A300
Hmm pardon my ignorance but can't seem to find what you're pointing me to ,any directions? Much obliged!
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [200] Music Player Daemon (MPD) vaidyasr 418 140,247 05-18-2013 07:28 PM
Last Post: NaaN
  [400] Music Player Daemon (MPD) v0.17.3 vaidyasr 7 1,134 03-31-2013 12:23 AM
Last Post: markmyers
Video [200] [Apps] multicast IPTV Player (FlashLite) ikovrigin 38 16,571 02-17-2013 12:23 AM
Last Post: sunny1081
  [100/200/300/400] Can anyone give me the file of multicast IPTV Player (FlashLite) fareign 4 775 02-17-2013 12:12 AM
Last Post: sunny1081
  [200] [Apps] NMT CSI IPTV Player romanr 34 12,081 12-31-2012 07:57 PM
Last Post: romanr
  [200] Setting up RSync daemon vanluijk 7 6,274 10-31-2012 12:24 PM
Last Post: compiler
  [300] Question on music player daemon PRS 0 954 02-05-2012 01:15 AM
Last Post: PRS
  [300] A300: Is there an ipad app for my music library ? Hendershot 6 3,407 01-19-2012 06:20 AM
Last Post: excal
  [200] [Apps] Mplax another remote player. michaelvv 1 1,184 01-03-2012 03:31 PM
Last Post: michaelvv
Music [200] MPD vs Syabas playback - different CPU? marmotamarmota 2 985 10-05-2011 11:30 AM
Last Post: chris57

Forum Jump: