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: 1 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-10-2011, 08:04 PM (This post was last modified: 04-10-2011 08:05 PM by shadowcode.)
Post: #16
RE: Music Player Daemon (MPD) - v0.16.2
(04-10-2011 07:57 PM)BushWhacker Wrote:  
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

Not seeing the same behavior here (except when MPD is still updating). Check the log, possibly MPD is choking on a bad file.
Find all posts by this user
Add Thank You Quote this message in a reply
04-10-2011, 08:30 PM
Post: #17
RE: Music Player Daemon (MPD) - v0.16.2
(04-10-2011 08:04 PM)shadowcode Wrote:  
(04-10-2011 07:57 PM)BushWhacker Wrote:  
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

Not seeing the same behavior here (except when MPD is still updating). Check the log, possibly MPD is choking on a bad file.
Thanx for your reply.
I have to go to bed now, but tomorrow I'll retry.

PCH A-110 2TB HDD 3.5"
Find all posts by this user
Add Thank You Quote this message in a reply
04-11-2011, 07:17 AM (This post was last modified: 04-11-2011 10:54 PM by opfeifer.)
Post: #18
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

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

Banquo, how did you start lastfm playback? I only get 'unrecognized uri' errors when I play my bookmarks or try using mpod's lastfm feature. Has the syntax changed from 0.15.9 ?

EDIT: yes it did. See here: http://www.networkedmediatank.com/showth...#pid479295
Also, you need to re-edit mpd.conf to add your lastfm username and password, as explained here: http://mpd.wikia.com/wiki/Last.fm_Radio

Thanks for any hints ...
Find all posts by this user
Add Thank You Quote this message in a reply
04-11-2011, 07:41 PM (This post was last modified: 04-11-2011 07:56 PM by BushWhacker.)
Post: #19
RE: Music Player Daemon (MPD) - v0.16.2
(04-10-2011 08:04 PM)shadowcode Wrote:  
(04-10-2011 07:57 PM)BushWhacker Wrote:  
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

Not seeing the same behavior here (except when MPD is still updating). Check the log, possibly MPD is choking on a bad file.

I've tried again. 2 times and both time this is the result.
mpd takes 100% CPU and it has hangup itself....

Code:
Apr 11 19:34 : update: added Albums/Within Temptation - Mother Earth/Within Temptation - 10 - In Perfect Harmony.mp3
Apr 11 19:34 : update: added Albums/Within Temptation - Mother Earth/Within Temptation - 01 - Mother Earth.mp3
Apr 11 19:34 : ffmpeg/mp3: Header missing
Apr 11 19:34 : ffmpeg/mp3: Header missing

The next file is strange, but with the prior version 20100405-0.15.9 works. See log down:

Code:
Apr 11 19:48 : update: added Albums/Within Temptation - Mother Earth/Within Temptation - 01 - Mother Earth.mp3
[mp3 @ 0x5b3720]mdb:511, lastbuf:0 skipping granule 0
    Last message repeated 1 times
[mp3 @ 0x5b3720]mdb:511, lastbuf:0 skipping granule 1
Apr 11 19:48 : update: added Albums/Within Temptation - Mother Earth/Within Temptation - 03 - Our Farewell.mp3

PCH A-110 2TB HDD 3.5"
Find all posts by this user
Add Thank You Quote this message in a reply
04-11-2011, 09:49 PM (This post was last modified: 04-11-2011 10:35 PM by opfeifer.)
Post: #20
RE: Music Player Daemon (MPD) - v0.16.2
Bushwhacker, I'd suggest to just move all your files / directorys out of the way that mpd chokes on for now. The offender is typically the file alphabetically following the last line of the logfile. For me, in a collection of 5000+ songs there were only 3 folders with offending files. In comparison, for the first scan with v. 0.15.9, I had to fix at least 20 malformed ID2-tags.
This time, it was one .mpga file, and one folder with arab file names.

Major disappointment! Sad

First, a thousand thanks to shadowcode and AlanH for all the work you put in! But unfortunately, the feature that made me wish for 0.16, lastfm support, isn't better than in 0.15.9, but in fact worse, Dodgy even though it in fact does support playlist info on lastfm streams.
There seems to be no documentation about it, the only thing I could find was this: mpd.wikia.com about last.fm

So here is what it does: While the 'old' lastfm-plugin in 0.15.9 lets you use the following command to add ONE entry to the playlist.
Code:
mpc clear
mpc add "lastfm://artist/<artist name>"
You could then go ahead and loop or save that playlist; whenever you call or replay it, you will hear a different song; song title info was updated only sporadically, which sucks if you use scobbler. Oh well, at least it played. Plus, the great 'mPod' client for iPhone has great support for this syntax!

The NEW 0.16.2 version uses the following code to pre-fetch FIVE songs from lastfm into the current playlist, with all correct (!) metadata - cool!
Code:
mpc load "lastfm://artist/<artist name>"
Should you, however, want to listen to more than five songs (duh!) you have to REPEAT this procedure, because you cannot SAVE and recall or LOOP this playlist - these songs simply won't play a second time .... Angry I guess anyone could go and script this ... anyone? But otherwise, you would need a client with dedicated support for that 'feature' because you simply cannot save your lastfm-stations as playlists.

Can anyone confirm if this is a problem of 0.16 in general (also on other servers) or maybe just a bug related to this port (since shadowcode indicates that there is a general problem with http-streams)?

Oh yes, and minion also seems to have problems controlling 0.16.2. Theremin (standalone mac client) works fine.

So I guess I'll revert back to 0.15.9 soon ... what a shame confused
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to opfeifer for this post
04-12-2011, 12:46 AM
Post: #21
RE: Music Player Daemon (MPD) - v0.16.2
I've been using 0.16.2 for a couple of days now and am quite liking it!Smile

I haven't yet experienced any problems using Minion (v2.1.1) myself, it has been very stable. There are a few glitches with mpdjb, but I expect this is down to the syntax changes in 0.16.2, some modification of mpdjb's php scripts should cure it.

To my ears, there seems to be an improvement in the sound quality too, music seems a little richer and with slightly better insight.

Metadata retrieval from ALAC files is tonnes better, although for some reason it seems not able to read the genre tag from ALAC files created by iTunes 10, my older ALAC files which were done with iTunes 7, genre tag is read correctly.

Thanks again to shadowcode and AlanH for their efforts.
Find all posts by this user
Add Thank You Quote this message in a reply
04-12-2011, 02:52 AM
Post: #22
RE: Music Player Daemon (MPD) - v0.16.2
So do I need myiHome server running on one of my computers, or just need the client installed on the NMT?

Plus, I've seen MPDJB (I think?)--is that a front end for this version of MPD? Or older versions?

PCH A-110 | YAMJ v2.5-SNAPSHOT | GTSpecial "Zappiti" | TOMY (Mac Scanning) | Ember Media Manager (Windows - Library Management) | unRAID (Media Server / YAMJ Jukebox Builder)
Find all posts by this user
Add Thank You Quote this message in a reply
04-12-2011, 07:38 AM
Post: #23
RE: Music Player Daemon (MPD) - v0.16.2
(04-12-2011 02:52 AM)defected07 Wrote:  So do I need myiHome server running on one of my computers, or just need the client installed on the NMT?

Plus, I've seen MPDJB (I think?)--is that a front end for this version of MPD? Or older versions?

myiHome and uPnP/DNLA is a completely different thing, you don't need it for this, but it can coexist.

MPDJB is a mpd frontend for the NMT itself and works with this Version; however, it works with the pch remote and thus is much slower to operate, so rather a supplement to frontends on mobile devices such as mPod, the firefox-plugin frontend minion, or the standalone frontend theremin (Mac OS X)
Find all posts by this user
Add Thank You Quote this message in a reply
04-12-2011, 12:54 PM (This post was last modified: 04-12-2011 02:13 PM by fsmit.)
Post: #24
RE: Music Player Daemon (MPD) - v0.16.2
Thx Shadowcode for your efforts, its greatly appreciated as an avid mpd users. The installation works fine, playback too, except for the 24-bit flac files that I've tried, the music skips or there is silence, and the log file produces the following errors:
Apr 12 12:52 : flac: bad flac header
Apr 12 12:52 : flac: flac lost sync
Sad

And the 16bit 96 Khz Flac files that used to play before are now silent/skipping (my receiver displays 44.1 khz, does it have to do with the audio plugin configuration in mpd.conf?)
Find all posts by this user
Add Thank You Quote this message in a reply
04-12-2011, 02:12 PM
Post: #25
RE: Music Player Daemon (MPD) - v0.16.2
After experimenting a little I got the 96Khz Flac files to work, by commenting out the mixer type settings:
# format "44100:16:2"

I assume it downsamples the 96Khz files, and not in a very good way.
Also I have been playing a little with the buffer settings in the mpd.conf file, and a few 24bit FLAC files play OK when the bitstream is relatively low (around 1500 kps), but above that the sounds starts skipping. Maybe it is hitting the maximum CPU capacity of the A-100, or it is not very efficient in decoding...
Find all posts by this user
Add Thank You Quote this message in a reply
04-13-2011, 10:00 AM (This post was last modified: 04-13-2011 10:38 AM by shadowcode.)
Post: #26
RE: Music Player Daemon (MPD) - v0.16.2
(04-12-2011 02:12 PM)fsmit Wrote:  After experimenting a little I got the 96Khz Flac files to work, by commenting out the mixer type settings:
# format "44100:16:2"

I assume it downsamples the 96Khz files, and not in a very good way.
Also I have been playing a little with the buffer settings in the mpd.conf file, and a few 24bit FLAC files play OK when the bitstream is relatively low (around 1500 kps), but above that the sounds starts skipping. Maybe it is hitting the maximum CPU capacity of the A-100, or it is not very efficient in decoding...

I dived into MPD's codebase to see if the "format" property was mandatory now (since it showed up in AlanH's config file). It looked like it was, but after some digging it seems that it acts as an override that the output plugin can modify if necessary, as expected. However, I can't tell if this is implemented correctly in the audio output plugin since the data travels throughout MPD and can change quite a lot between the plugin's initialization and when it's actually told to start working. Could very well be that something is broken in MPD itself, or AlanH's plugin. If it still stutters when you force the format field to "96000:24:2" (it would probably only play the 24-bit 96Khz files, but hey, it's for testing) then it'd seem that the A100 series hardware just doesn't cut it.

Finally, it could be that the decoder just can't decode fast enough. Alternatively, if MPD has to do any bit re-ordering or other magic, that as well could be the bottleneck. Personally, I can't really make an educated guess here because I'm not familiar with the limitations of MIPS or SMP's engine. I vaguely remember AlanH saying in some thread that the A110 probably wouldn't cut it. He's probably right.

When I'm playing an ALAC file (which is decoded by ffmpeg afaik), I see about 70%-80% CPU usage. What do you guys see when it's playing a 24-bit 96khz file? (make sure you check before playing as well to see if the CPU is idle'ish to begin with).

If it's all maxed out (99%) then it might mean that the software (format decoder) can't keep up. If it's lower than that, it might mean that the hardware can't keep up. Even then those numbers don't mean a lot if you can't tell what the software is doing... (profiling tools would be nice).

Either way, there's not much I can do I'm afraid. I've compiled both MPD and libflac as optimal (to my knowledge) as possible. I can dump the --configure flags for MPD here, but afaik we're still using AlanH's libflac (which gave for some reason better results than my version, probably a version difference as we compiled to the same flags).



Finally, regarding Last.fm, check the MPD forums/newsgroups. This is an MPD feature and afaik there's nothing we can do on how this behaves.
According to the Last.FM API spec:
Quote:You will need to periodically pull on this XSPF service as it will provide content in small chunks. We recommend you prefetch a new XSPF before reaching the end of the last.
.
The guys at MPD might reason that it's up to the MPD clients to provide this functionality, but I suppose you can always file a feature request.
Find all posts by this user
Add Thank You Quote this message in a reply
04-13-2011, 11:24 AM
Post: #27
RE: Music Player Daemon (MPD) - v0.16.2
(04-13-2011 10:00 AM)shadowcode Wrote:  
(04-12-2011 02:12 PM)fsmit Wrote:  After experimenting a little I got the 96Khz Flac files to work, by commenting out the mixer type settings:
# format "44100:16:2"

I assume it downsamples the 96Khz files, and not in a very good way.
Also I have been playing a little with the buffer settings in the mpd.conf file, and a few 24bit FLAC files play OK when the bitstream is relatively low (around 1500 kps), but above that the sounds starts skipping. Maybe it is hitting the maximum CPU capacity of the A-100, or it is not very efficient in decoding...

Finally, it could be that the decoder just can't decode fast enough. Alternatively, if MPD has to do any bit re-ordering or other magic, that as well could be the bottleneck. Personally, I can't really make an educated guess here because I'm not familiar with the limitations of MIPS or SMP's engine. I vaguely remember AlanH saying in some thread that the A110 probably wouldn't cut it. He's probably right.


The A-100 has no problem playing up to 192kHz/24 when using the standard mono (?) player. This is typical for mpd.

-
aleg

--------------------------------------------------------------------------------
PCH A100 (Stable firmware), 250GB 2.5"" WD Caviar-PATA,
Connected to Pioneer KRL32V at HDMI 1080p60/50/24,
Ubuntu Server NAS,
Naim DAC + XPS-2,
mpd + iPod with mPod
Find all posts by this user
Add Thank You Quote this message in a reply
04-13-2011, 12:45 PM
Post: #28
RE: Music Player Daemon (MPD) - v0.16.2
(04-13-2011 11:24 AM)avanegmond Wrote:  
(04-13-2011 10:00 AM)shadowcode Wrote:  
(04-12-2011 02:12 PM)fsmit Wrote:  After experimenting a little I got the 96Khz Flac files to work, by commenting out the mixer type settings:
# format "44100:16:2"

I assume it downsamples the 96Khz files, and not in a very good way.
Also I have been playing a little with the buffer settings in the mpd.conf file, and a few 24bit FLAC files play OK when the bitstream is relatively low (around 1500 kps), but above that the sounds starts skipping. Maybe it is hitting the maximum CPU capacity of the A-100, or it is not very efficient in decoding...

Finally, it could be that the decoder just can't decode fast enough. Alternatively, if MPD has to do any bit re-ordering or other magic, that as well could be the bottleneck. Personally, I can't really make an educated guess here because I'm not familiar with the limitations of MIPS or SMP's engine. I vaguely remember AlanH saying in some thread that the A110 probably wouldn't cut it. He's probably right.


The A-100 has no problem playing up to 192kHz/24 when using the standard mono (?) player. This is typical for mpd.

-
aleg

Okay. Good.
If someone wants to debug this, go ahead. It's open-source.
Just make sure your toolchain is functioning (can't help with that).
Find all posts by this user
Add Thank You Quote this message in a reply
04-19-2011, 08:17 AM (This post was last modified: 04-19-2011 08:44 AM by jfcus.)
Post: #29
RE: Music Player Daemon (MPD) - v0.16.2
@shadowcode
I'm back from vacation. thank you for the new version of mpd. it works without
problem with mpdjb!
thanks!!

Find all posts by this user
Add Thank You Quote this message in a reply
04-19-2011, 10:40 AM
Post: #30
RE: Music Player Daemon (MPD) - v0.16.2
(04-19-2011 08:17 AM)jfcus Wrote:  @shadowcode
I'm back from vacation. thank you for the new version of mpd. it works without
problem with mpdjb!
thanks!!

JFCus

Is this with 44.1/16 music or 24-bit HighRes music?

-
aleg

--------------------------------------------------------------------------------
PCH A100 (Stable firmware), 250GB 2.5"" WD Caviar-PATA,
Connected to Pioneer KRL32V at HDMI 1080p60/50/24,
Ubuntu Server NAS,
Naim DAC + XPS-2,
mpd + iPod with mPod
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,894 09-24-2013 12:18 AM
Last Post: glorifyday
  Music Browser for NMT - Updated August, 2nd, 2011 gkreidl 14 11,025 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,130 01-05-2013 11:11 AM
Last Post: mulderfox
  Any music jukebox that syncs with itunes? superflysocal 0 1,401 07-04-2012 02:57 PM
Last Post: superflysocal
  Music Player Daemon (MPD) 2010-04-04 v0.15.9 shadowcode 245 107,851 03-10-2012 01:05 AM
Last Post: ianny
  Stream music to the popcornhour snakeboots 1 3,143 08-30-2011 02:56 PM
Last Post: minio
  Disable amule daemon drunkendonkey 0 1,835 02-04-2011 12:33 AM
Last Post: drunkendonkey
  music player daemon MPD & PCH Remote control beatnut88 19 11,996 12-22-2010 12:31 AM
Last Post: dooly
  Music Player Daemon (MPD) 2009-10-01 Re-Release alanh 290 139,110 04-24-2010 07:20 AM
Last Post: avanegmond
  monoLite - Alternative NMT Player for TS files wizziwig 72 27,981 04-15-2010 11:08 AM
Last Post: gtdaqua

Forum Jump: