[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)
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-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
Post Reply 


Messages In This Thread
RE: Music Player Daemon (MPD) - v0.16.2 - shadowcode - 04-13-2011 10:00 AM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Music Browser for NMT - Updated August, 2nd, 2011 gkreidl 14 7,977 01-19-2013 04:07 PM
Last Post: winfried_laane
  Is it possible to code a HULU player for the A-110? mulderfox 0 362 01-05-2013 11:11 AM
Last Post: mulderfox
Music MPD installation howto (updated 4 May 2009) gwillem 494 284,417 07-20-2012 09:43 PM
Last Post: krimpenrik
  Any music jukebox that syncs with itunes? superflysocal 0 849 07-04-2012 02:57 PM
Last Post: superflysocal
  Music Player Daemon (MPD) 2010-04-04 v0.15.9 shadowcode 245 84,099 03-10-2012 01:05 AM
Last Post: ianny
  Stream music to the popcornhour snakeboots 1 2,320 08-30-2011 02:56 PM
Last Post: minio
  Music player minion connection problems webkocken 5 3,655 07-04-2011 09:08 AM
Last Post: shadowcode
  Disable amule daemon drunkendonkey 0 1,437 02-04-2011 12:33 AM
Last Post: drunkendonkey
  music player daemon MPD & PCH Remote control beatnut88 19 9,947 12-22-2010 12:31 AM
Last Post: dooly
  New Free MPD Client for Android TheMory 18 12,112 08-06-2010 12:00 AM
Last Post: mhut

Forum Jump: