Firmware: A-410 [01 Apr. 2014] | A-400 [12 Mar. 2014] | C-300 [13 Feb. 2014] | A-300 [24 Feb. 2014] | C-200 [11 July 2013] | A-200/A-210 [11 July 2013] | Popbox V8 [3 Dec 2013]

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: 2 Guest(s)
Poll: Hoorah?
It works!
I tried, read the instructions at least three times, but can't get it to work :-(
[Show Results]
 
Post Reply 
Music Player Daemon (MPD) - v0.16.2
04-09-2011, 08:04 PM (This post was last modified: 08-26-2011 11:05 AM by shadowcode.)
Post: #1
Rainbow Music Player Daemon (MPD) - v0.16.2
What is this?
The Music Player Daemon turns your Popcorn Hour into a nifty remote controlled jukebox.
However, this jukebox does not come with a graphical interface! In fact, it comes with many!
Place your music in the /share/Music directory, load up MPoD on your iPhone or iPod.
Not into Apple? Well, there's probably a MPD Client for your phone. Probably.
Prefer to use a computer? Well, there's Minion for that, it runs inside Firefox.

Requirements:
  • This version of MPD was built for A100/A110/B110 in mind. It won't work on other devices.
  • TelnetD package (or anything else that installs busybox, probably) may need to be installed.


Download
CSI packages After installing and testing, please vote..
Voting helps me keep track of the success versus failure rate.

Upgrade Instructions
There are no special upgrade instructions. If you upgrade from the 0.15 series MPD, then you will also need to upgrade the audio plugin! Other than that, stick to the installation instructions. You don't need to uninstall MPD/AudioOutputPlugin prior to installing the new version.

Installation Instructions
  1. If you have an existing installation of MPD, it is advisable that you create a backup before continueing.
  2. It is assumed that you've downloaded the .rar file, and extracted it. This results in at least two files; mpd.zip and mpdAudioPlugin.zip. Do not extract these two zip files.
  3. Open the Community Package Installer
  4. Click File -> Install From File and install "MPD.zip" first.
    It is important that MPD.zip is installed BEFORE MPDAudioPlugin.zip!
  5. Follow the instructions on screen.
  6. When the installer has finished, click File->Install From File again and install the MPDAudioPlugin.zip, this will only work if MPD.zip was installed first.
  7. Again, follow the instructions on screen. This could take up to 90 seconds (since sometimes MPD doesn't want to quit nicely).



Usage Instructions
  1. Well, if everything went okay, you should be able to use an MPD Client (mentioned earlier) and connect to the mediatank using its ip address or hostname. (If this doesn't ring a bell, try and find your mediatank's ip address in CSI, or fire up your TV and check what IP address the mediatank is using)
  2. Depending on your media library size, it could very well be that MPD is still indexing. It might take a while before the full collection appears in the MPD Client (such as Minion, or, MPoD for iPhone/iPOD or MPaD for iPad).



Additional Version/Build/Config Info
The following is what MPD outputs when you ask it what version it is (ie, --version).
It's configured to support the mentioned formats, but not all of them may work very well.
All common formats, such as: MP3, M4A (AAC), FLAC, ALAC, etc should all work.

Quote:mpd (MPD: Music Player Daemon) 0.16.2

Copyright © 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright © 2008-2010 Max Kellermann <max@duempel.org>
This is free software; see the source for copying conditions. There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Supported decoders:
[mad] mp3 mp2
[vorbis] ogg oga
[oggflac] ogg oga
[flac] flac
[audiofile] wav au aiff aif
[faad] aac
[mp4ff] m4a m4b mp4
[mpcdec] mpc
[wavpack] wv
[ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4b m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav wma wmv wsaud wsvga wv wve

Supported outputs:
shout null fifo oss httpd recorder

Supported encoders:
null vorbis lame wave flac

Supported protocols:
file:// http:// mms:// mmsh:// mmst:// mmsu:// gopher:// rtp:// rtsp:// rtmp:// rtmpt:// rtmps://

Note that I've compiled MPD against FFmpeg 0.6.90-rc0 "Love and Peace", this is a departure from FFmpeg 0.5. I moved forward because FFmpeg 0.5 has trouble with extracting metadata from ALAC files.

Known Issues
  • HTTP Streams no longer seem to work. Not sure yet if this is due to the new FFmpeg (likely), MPD or something else. I'll look into this, but I can't promise anything right now. If you really want to use streams, then don't upgrade for now.
  • Does MPD crash or behave odd otherwise? Can't find your songs? Check the log! If lighttpd is installed, it should be accessible at:
    Code:
    http://<mediatank hostname or ip address>:9999/mpd/log.txt


What about feature X?
I've tried to enable as many options as possible while still keeping the memory footprint somewhat acceptable. Another issue is maintainability. The more features enabled, the harder it becomes to push another version if MPD changes dependencies. If you're missing a feature, then please let me know in this thread.

As for 24-bit support, in theory it should work in this version, but:
  • A) AlanH built the audio support, and unfortunately he's the only one who CAN maintain it (it requires a certain expertise I simply do not have).
  • B) No idea how to enable it. Don't have the equipment to test it, either. If I had to warrent a guess, then, try changing the output plugin's format field in mpd.conf
  • MPD simply dies/crashes if it runs into a corrupted file. In fact, sometimes it dies because the TAGS are slightly wrong, and sometimes it dies for no apparent reason. I understand that this can be frustrating, but that's something the MPD team is responsible for. I use MPD daily with a large music collection and I have no problems, there's MP3/MP4/FLAC/ALAC in my collection and it works fine. Just make sure your files are sane.


Source
This version of MPD was built from version 0.16.2, available here. The modifications I had to make are available here.
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 10 users say Thank You to shadowcode for this post
04-09-2011, 10:04 PM
Post: #2
RE: Music Player Daemon (MPD) - v0.16.2
Firstly, can I just say thanks shadowcode for still giving your time to this, much appreciated. Smile

I initially tried 0.16.2 with a small database of files on my A100 internal disk. I tried telnet, then minion on my pc and then finally mpdjb directly on my popcorn. All methods worked without error.

MP3,AAC,FLAC and ALAC files all played great, with increased meta data from the ALAC files, very nice! Cool

Lastfm streams also played smoothly, with track, artist and album info correctly displayed.

I am now switching to my collection on my server, which is about 3,500 files. MPD has so far been unable to rebuild the database without crashing halfway through. It appears to be choking on a folder which also contains a .m4v video file (courtesy of iTunes), this wasn't a problem for 0.15.9 though.

I shall keep testing and let you know what I find.

Thanks again for all your efforts!
Find all posts by this user
Add Thank You Quote this message in a reply
04-09-2011, 10:19 PM (This post was last modified: 04-09-2011 10:46 PM by shadowcode.)
Post: #3
RE: Music Player Daemon (MPD) - v0.16.2
(04-09-2011 10:04 PM)banquo Wrote:  Firstly, can I just say thanks shadowcode for still giving your time to this, much appreciated. Smile

I initially tried 0.16.2 with a small database of files on my A100 internal disk. I tried telnet, then minion on my pc and then finally mpdjb directly on my popcorn. All methods worked without error.

MP3,AAC,FLAC and ALAC files all played great, with increased meta data from the ALAC files, very nice! Cool

Lastfm streams also played smoothly, with track, artist and album info correctly displayed.

I am now switching to my collection on my server, which is about 3,500 files. MPD has so far been unable to rebuild the database without crashing halfway through. It appears to be choking on a folder which also contains a .m4v video file (courtesy of iTunes), this wasn't a problem for 0.15.9 though.

I shall keep testing and let you know what I find.

Thanks again for all your efforts!

Could you grab the log? It's probably ffmpeg crashing. I'll see if I can disable video support since it doesn't make sense for MPD.
*edit*: I looked, but there's no blanket option to disable all video decoders.
*edit2*: Grabbed a sample .m4v from Apple's site. Seemed to be fine, but CPU use did shoot up and stay high for a while. Not sure what it's doing. Maybe it chokes on large .m4v files.
Find all posts by this user
Add Thank You Quote this message in a reply
04-09-2011, 10:47 PM
Post: #4
RE: Music Player Daemon (MPD) - v0.16.2
Last time database was built with 0.15.9

Code:
Apr 06 17:44 : update: added Nosaj Thing/Drift Remixed/06 Us (Jon Hopkins Remix).mp3
Apr 06 17:44 : update: added Oasis/The Shock of the Lightning - Single/01 The Shock of the Lightning.m4a
Apr 06 17:44 : update: added Oasis/The Shock of the Lightning - Single/02 Falling Down (Chemical Brothers R.m4a
Apr 06 17:44 : update: added Oasis/The Shock of the Lightning - Single/The Shock of the Lightning.m4v
Apr 06 17:44 : update: added Olafur Arnalds/_..and they have escaped the weight of d/01 Þú ert sólin.mp3

Now with 0.16.2

Code:
Apr 09 21:28 : update: added Nosaj Thing/Drift Remixed/06 Us (Jon Hopkins Remix).mp3
Apr 09 21:28 : update: added Oasis/The Shock of the Lightning - Single/01 The Shock of the Lightning.m4a
Apr 09 21:28 : update: added Oasis/The Shock of the Lightning - Single/02 Falling Down (Chemical Brothers R.m4a

Those are the last three lines of the log.
Find all posts by this user
Add Thank You Quote this message in a reply
04-09-2011, 10:50 PM (This post was last modified: 04-09-2011 10:53 PM by shadowcode.)
Post: #5
RE: Music Player Daemon (MPD) - v0.16.2
Could you try moving the m4v's out of there for a moment, see if it gets through? I get the feeling that it might actually choke on what follows; "Olafur Arnalds/_..and they have escaped the weight of d/01 Þú ert sólin.mp3".

Maybe a new bug in MPD?

Edit:
Do you know how to edit your MPD.conf file?
Could you try uncommenting (remove the leading #) the following line:
#filesystem_charset "UTF-8"
Find all posts by this user
Add Thank You Quote this message in a reply
04-09-2011, 10:52 PM (This post was last modified: 04-09-2011 11:05 PM by banquo.)
Post: #6
RE: Music Player Daemon (MPD) - v0.16.2
Yeah. Just trying that now.

EDIT:

Yeah, I always edit it to
filesystem_charset "ISO-8859-1" as I have a few files with french and german characters in them.
Find all posts by this user
Add Thank You Quote this message in a reply
04-09-2011, 11:14 PM (This post was last modified: 04-09-2011 11:15 PM by shadowcode.)
Post: #7
RE: Music Player Daemon (MPD) - v0.16.2
Did that work? I'd expect that UTF-8 should pretty much cover everything, though.
If UTF-8 works then I might make that the default setting.. although it would screw up all existing databases :-(
Find all posts by this user
Add Thank You Quote this message in a reply
04-09-2011, 11:24 PM
Post: #8
RE: Music Player Daemon (MPD) - v0.16.2
It definitely appears to be the .m4v files. I removed the oasis one and then it stalled on another one. I think I only have two in my whole library, so I've moved them out and am currently rebuilding.

btw, I always thought UTF-8 was the default? I changed it to ISO-8859-1 to catch a few missing files.
Find all posts by this user
Add Thank You Quote this message in a reply
04-09-2011, 11:27 PM
Post: #9
RE: Music Player Daemon (MPD) - v0.16.2
I would expect it to be, but it doesn't say anywhere. I can't imagine they'd pick anything else, though.
Find all posts by this user
Add Thank You Quote this message in a reply
04-10-2011, 01:25 PM
Post: #10
RE: Music Player Daemon (MPD) - v0.16.2
hello,
mpdjb with this version (0.16.2) doesn't work!:
no display folders, files, artists...
but the reading of the current track works very well (cover, tag ok!)
and the control panel of mpdjb is ok (play, shuffle,...)

sorry for my bad english!

Find all posts by this user
Add Thank You Quote this message in a reply
04-10-2011, 01:44 PM (This post was last modified: 04-10-2011 01:44 PM by banquo.)
Post: #11
RE: Music Player Daemon (MPD) - v0.16.2
Okay, without those video files the database built correctly. Everything played nicely again.
However, I restarted my A100 this morning and now I can't get mpd to respond through either telnet or mpdjb. Still works through minion though!?!

Telnet reports the following.
Code:
/opt/sybhttpd/localhost.drives/HARD_DISK # cd Apps/mpd
/opt/sybhttpd/localhost.drives/HARD_DISK/Apps/mpd # mpc
mpc: can't load library 'libmpdclient.so.2'

There's also nothing being written in the log file since the restart.
Find all posts by this user
Add Thank You Quote this message in a reply
04-10-2011, 01:49 PM
Post: #12
RE: Music Player Daemon (MPD) - v0.16.2
for me minion and Gnome Music Windows are oK with the version 0.16.2! but i've uninstalled this version to the old (0.15.9)

Find all posts by this user
Add Thank You Quote this message in a reply
04-10-2011, 02:24 PM
Post: #13
RE: Music Player Daemon (MPD) - v0.16.2
Yeah, I think the problem is with the mpc commandline interface rather than mpd itself.
Find all posts by this user
Add Thank You Quote this message in a reply
04-10-2011, 03:01 PM (This post was last modified: 04-10-2011 07:29 PM by shadowcode.)
Post: #14
RE: Music Player Daemon (MPD) - v0.16.2
Ah, it's because MPC wasn't linked statically for some reason.
I'll push another version later today with a static linked MPC.

edit:
Download link has been updated, today's version includes a static linked mpc, this should fix mpdjb.
Even if you already have yesterday's version installed, please stick to the full installation procedure (ie, install the base package and then the plugin package. So yes. Both, in that order).
If MPDJB still isn't working, reboot the mediatank! (otherwise the resident mpc binary does not get updated!)
Find all posts by this user
Add Thank You Quote this message in a reply
04-10-2011, 07:57 PM
Post: #15
RE: Music Player Daemon (MPD) - v0.16.2
Code:
Mem: 86044K used, 3692K free, 0K shrd, 1464K buff, 60876K cached
CPU: 99.2% usr  0.7% sys  0.0% nic  0.0% idle  0.0% io  0.0% irq  0.0% sirq
Load average: 5.12 2.44 0.98 7/52 1724
  PID  PPID USER     STAT   VSZ %MEM CPU %CPU COMMAND
1451  1449 root     R <  32420 36.1   0 98.6 /share/Apps/mpd/bin/mpd /share/Apps/mpd/etc/mpd.conf
1623  1610 root     R     1536  1.7   0  0.6 top
  881     1 root     R     2892  3.2   0  0.3 /upnp/upnpapp
1547     1 root     S <   1560  1.7   0  0.1 ./ms-mips start
1450  1449 root     S <  32420 36.1   0  0.0 /share/Apps/mpd/bin/mpd /share/Apps/mpd/etc/mpd.conf
1448     1 root     S <  32420 36.1   0  0.0 /share/Apps/mpd/bin/mpd /share/Apps/mpd/etc/mpd.conf
1452  1449 root     S <  32420 36.1   0  0.0 /share/Apps/mpd/bin/mpd /share/Apps/mpd/etc/mpd.conf
1449  1448 root     S <  32420 36.1   0  0.0 /share/Apps/mpd/bin/mpd /share/Apps/mpd/etc/mpd.conf
  908     1 root     R    12788 14.2   0  0.0 ./gaya
1652  1560 root     S     7020  7.8   0  0.0 /mnt/syb8634/bin/smbd -D
1560     1 root     S     6732  7.5   0  0.0 /mnt/syb8634/bin/smbd -D
1562  1560 root     S     6732  7.5   0  0.0 /mnt/syb8634/bin/smbd -D
1556     1 root     S     3636  4.0   0  0.0 /mnt/syb8634/bin/nmbd -D
When I install it on my 110, after update-database, the result is maximum CPU van de mpd.
Then I reboot and after reboot it's the same.

Regards,
BW

PCH A-110 2TB HDD 3.5"
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
  Music player minion connection problems webkocken 6 4,888 09-24-2013 12:18 AM
Last Post: glorifyday
  Music Browser for NMT - Updated August, 2nd, 2011 gkreidl 14 11,009 01-19-2013 04:07 PM
Last Post: winfried_laane
  Is it possible to code a HULU player for the A-110? mulderfox 0 1,127 01-05-2013 11:11 AM
Last Post: mulderfox
  Any music jukebox that syncs with itunes? superflysocal 0 1,395 07-04-2012 02:57 PM
Last Post: superflysocal
  Music Player Daemon (MPD) 2010-04-04 v0.15.9 shadowcode 245 107,800 03-10-2012 01:05 AM
Last Post: ianny
  Stream music to the popcornhour snakeboots 1 3,136 08-30-2011 02:56 PM
Last Post: minio
  Disable amule daemon drunkendonkey 0 1,832 02-04-2011 12:33 AM
Last Post: drunkendonkey
  music player daemon MPD & PCH Remote control beatnut88 19 11,978 12-22-2010 12:31 AM
Last Post: dooly
  Music Player Daemon (MPD) 2009-10-01 Re-Release alanh 290 139,002 04-24-2010 07:20 AM
Last Post: avanegmond
  monoLite - Alternative NMT Player for TS files wizziwig 72 27,963 04-15-2010 11:08 AM
Last Post: gtdaqua

Forum Jump: