[19. June 2013] Soundcloud® available now | [7. June 2013] Youporn available now | [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 RC1 [13 June 2013] | A-200/A-210 RC1 [13 June 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
03-23-2012, 10:14 PM (This post was last modified: 03-24-2012 09:16 AM by doz.)
Post: #91
RE: Music Player Daemon (MPD) - v0.16.2
Ok I telenetd in and ran the top command (big thanks for that).

The file mpd in bin folder and file mpd.config was constantly at the top of the list both using the highest mem and cpu usage!!! highest it said was 97.9% cpu and 56% mem!! it didnt go below 85% cpu usage.

I also tried a reboot, turned power off. Didnt work Sad

So any ideas on what can cause this in the files???

EDIT 1: Just an update ive read through a lot of the posts for 0.15 and 0.16 and it could be a file in my music causing mpd to run at high cpu??
Going reinstall 0.16 and use 1 album and see what happens. Cheers for the help.


EDIT 2: Looks like it could be a .m4a file causing the problems!! In the log file it was hanging on a couple files with .m4a extension (should of looked there first..doh!).
Using top command mpd is not hogging cpu and mem just synmusic.php which is a resource to do with myihome and upnp or something!? Hope it stops.
Find all posts by this user
Add Thank You Quote this message in a reply
03-24-2012, 12:29 PM (This post was last modified: 03-24-2012 12:31 PM by opfeifer.)
Post: #92
RE: Music Player Daemon (MPD) - v0.16.2
mpd using lots of cpu means it is in the process of indexing your files. For my 670-Album collection that took about 15-30 minutes; additional scans after adding a few albums usually take less then half a minute. But when you run it for the first time, it often gets stuck, which you can tell from the huge memory portion that mpd uses, before it crashes. The problem is usually the file AFTER the last one that is named in the log file. Obviously it is not always easy to guess which one that is, so I removed complete albums from the folder, re-ran the scan, re-added folder by folder or even song by song. The culprit is usually a malformatted mp3-tag, which is why I regularly re-tag all my mp3s using iTunes (for example by changing the Album name twice, or by adding album art, so they get re-written) before I import them.

synmusic.php is basically the same indexing process for the UPNP interface (myIhome). Interestingly enough, after I fixed the mp3-tags that kill mpod, the synmusic.php was able to index the complete collection for the first time as well (but the interface is still rubbish and crashes all the time, so I love mpd.)
Find all posts by this user
Add Thank You Quote this message in a reply
03-24-2012, 10:55 PM (This post was last modified: 03-24-2012 10:56 PM by doz.)
Post: #93
RE: Music Player Daemon (MPD) - v0.16.2
(03-24-2012 12:29 PM)opfeifer Wrote:  mpd using lots of cpu means it is in the process of indexing your files. For my 670-Album collection that took about 15-30 minutes; additional scans after adding a few albums usually take less then half a minute. But when you run it for the first time, it often gets stuck, which you can tell from the huge memory portion that mpd uses, before it crashes. The problem is usually the file AFTER the last one that is named in the log file. Obviously it is not always easy to guess which one that is, so I removed complete albums from the folder, re-ran the scan, re-added folder by folder or even song by song. The culprit is usually a malformatted mp3-tag, which is why I regularly re-tag all my mp3s using iTunes (for example by changing the Album name twice, or by adding album art, so they get re-written) before I import them.

synmusic.php is basically the same indexing process for the UPNP interface (myIhome). Interestingly enough, after I fixed the mp3-tags that kill mpod, the synmusic.php was able to index the complete collection for the first time as well (but the interface is still rubbish and crashes all the time, so I love mpd.)

Problem solved. Deleted the files!!!

I read some posts on synmusic.php and disabled the process not sure if this is a bad thing or not but it seemed to be constantly be running!

Cheers for helping solve this Big Grin
Find all posts by this user
Add Thank You Quote this message in a reply
03-28-2012, 02:35 PM (This post was last modified: 03-28-2012 02:36 PM by rgolubev.)
Post: #94
RE: Music Player Daemon (MPD) - v0.16.2
It installed OK (I had to repackage the tar files with IZArc as someone suggested, as EGREAT-M34A couldn't untar them) but I can't connect to it from my Windows MPC client. I'm using GMPC. Tried ports 6600 (as shown in mpd.conf file) and it fails. Is there a username and password or what is the port number? Do I need to have myiHime running for it to work (it is running, anyway and I can connect to it using IP:8088 in the browser). I do not run Windows firewall. So I don't understand why GMPC (I've also tried another client on my Windows 7 mobile) can't connect to MPD. Please help.

Cheers,
Find all posts by this user
Add Thank You Quote this message in a reply
03-28-2012, 02:55 PM
Post: #95
RE: Music Player Daemon (MPD) - v0.16.2
(03-28-2012 02:35 PM)rgolubev Wrote:  It installed OK (I had to repackage the tar files with IZArc as someone suggested, as EGREAT-M34A couldn't untar them) but I can't connect to it from my Windows MPC client. I'm using GMPC. Tried ports 6600 (as shown in mpd.conf file) and it fails. Is there a username and password or what is the port number? Do I need to have myiHime running for it to work (it is running, anyway and I can connect to it using IP:8088 in the browser). I do not run Windows firewall. So I don't understand why GMPC (I've also tried another client on my Windows 7 mobile) can't connect to MPD. Please help.

Cheers,

1. Did you verify if mpd is running? (telnet in and use 'top' command; you should see ~4 processes running.
2. Did you try minion (firefox plugin) as a client?
Find all posts by this user
Add Thank You Quote this message in a reply
03-28-2012, 03:21 PM (This post was last modified: 03-28-2012 03:38 PM by rgolubev.)
Post: #96
RE: Music Player Daemon (MPD) - v0.16.2
With telnet and then try to connect I get 'not open connection to the host on port 23'.Minion is not compatible with the current Firefox version, afaik.
in NMT SCI it says it is installed and started, same for the plugin. Not sure if I can trust it tho.
Find all posts by this user
Add Thank You Quote this message in a reply
03-28-2012, 06:49 PM
Post: #97
RE: Music Player Daemon (MPD) - v0.16.2
Sounds like telnetd isn't installed. AFAIK mpc uses telnet to transfer it's commands. Use NMT CSI to install telnetd!
Find all posts by this user
Add Thank You Quote this message in a reply
03-29-2012, 03:51 AM
Post: #98
RE: Music Player Daemon (MPD) - v0.16.2
OK, I installed telnet, the list of processes looks like this:
Mem: 78096K used, 11640K free, 0K shrd, 2596K buff, 48
Load average: 0.15 0.13 0.15
PID USER STATUS VSZ PPID %CPU %MEM COMMAND
8401 root R 2292 8378 1.3 2.5 top
1131 root S 2860 1 0.3 3.1 upnpapp
1164 root S 12984 1 0.1 14.4 gaya
7919 root S 1692 1 0.1 1.8 busybox26
1135 root S 1396 1133 0.1 1.5 mDNSNetMon
1028 root S 1124 1 0.1 1.2 fipd
1333 nobody S 39344 1318 0.0 43.8 httpd
1330 nobody S 39344 1318 0.0 43.8 httpd
1332 nobody S 39344 1318 0.0 43.8 httpd
1329 nobody S 39344 1318 0.0 43.8 httpd
1331 nobody S 39344 1318 0.0 43.8 httpd
2595 nobody S 39336 2577 0.0 43.8 httpd
2593 nobody S 39336 2577 0.0 43.8 httpd
2594 nobody S 39336 2577 0.0 43.8 httpd
2592 nobody S 39336 2577 0.0 43.8 httpd
2591 nobody S 39336 2577 0.0 43.8 httpd
1318 nobody S 39320 1 0.0 43.7 httpd
2577 nobody S 39312 1 0.0 43.7 httpd
2619 root S 6736 1 0.0 7.5 smbd
2627 root S 6736 2619 0.0 7.5 smbd
773 root S 4080 1 0.0 4.5 wpa_supplicant
1826 root S 3996 1 0.0 4.4 lundftpd
Doesn't look like there is MPD running but community installer seemingly installed it OK and shows the status as running. I can see the MPD and plugin folders in HDD\Apps
What should I check next?
Find all posts by this user
Add Thank You Quote this message in a reply
06-13-2012, 04:19 PM
Post: #99
RE: Music Player Daemon (MPD) - v0.16.2
So is the synmusic.php necessary for mpd or not? Because in order use MPDJB (the html jukebox) I need myhome.

Can I stop the synmusic.php or no? As described here: KLICK

thanks

Living room: C200 on Philipps AmbiLight TV
Balcony: A110 with small screen as MusicJukebox
Find all posts by this user
Add Thank You Quote this message in a reply
06-13-2012, 07:08 PM
Post: #100
RE: Music Player Daemon (MPD) - v0.16.2
(03-29-2012 03:51 AM)rgolubev Wrote:  OK, I installed telnet, the list of processes looks like this:
...
Doesn't look like there is MPD running but community installer seemingly installed it OK and shows the status as running. I can see the MPD and plugin folders in HDD\Apps
What should I check next?

Sorry, don't know if you've solved your problem meanwhile, but if not:
- did you reboot?
- try to monitor running processes (using telnet and top) right after rebooting. It could be that mpd starts but crashes quickly (because it chokes on invalid files in your music database for example).
- verify if it creates / writes logfiles or database files
- have you edited the config file in order to supply the correct music directory?
- try to restart mpd manually from the CSI interface (it has stop/start buttons!) while you monitor processes.
- If you discover that mpd crashes, try to determine from the logfiles what happens before (usually while scanning your music files).
- You can sort this out by temporarily renaming your music directory, creating a new one, and move only a few files or folders in there. Restart, then start moving files back, rescan, and see what happens, etc.
Good Luck!
Find all posts by this user
Add Thank You Quote this message in a reply
07-02-2012, 02:27 PM (This post was last modified: 07-02-2012 04:07 PM by rgolubev.)
Post: #101
RE: Music Player Daemon (MPD) - v0.16.2
I've managed to fix it Smile The problem was caused by missing \mpd\var\run and \mpd\var\log folders. I don't know why the installation process failed to create them. After I added them and restarted the MPD, it created the dbfile, the log and PID file. However, now I have 3 new problems:

1. No sound comes out when I play any track (I installed the AudioPlugIn and it seems to be running). - this is fixed. My MPD client had sound volume defaulted to zero.

2. The database only has one folder contents, i.e. on Share called Music (defined in mpd.config) it only indexes one subfolder.

3. It rebuilds the database every time I start it.

log file has some errors:
Jul 02 21:24 : update: added POPULAR/Audioslave/14-The Last Remaining Light.mp3
joe1
joe2
joe3
joe4
joe5
joe6
joe7
Jul 02 22:10 : GLib: g_main_loop_quit: assertion `g_atomic_int_get (&loop->ref_count) > 0' failed
Jul 02 22:10 : GLib: g_main_loop_quit: assertion `g_atomic_int_get (&loop->ref_count) > 0' failed
Jul 02 22:10 : GLib: g_main_loop_quit: assertion `g_atomic_int_get (&loop->ref_count) > 0' failed
Jul 02 22:10 : GLib: g_main_loop_quit: assertion `g_atomic_int_get (&loop->ref_count) > 0' failed
Jul 02 22:11 : update: added POPULAR/Russian/Smyslovye Gallucinations/2008_Serdca i motory/01_Moi fotografii.mp3
Jan 01 09:33 : update: added POPULAR/Audioslave/14-The Last Remaining Light.mp3
Jan 01 09:41 : flac: unknown flac error
Jan 01 09:41 : flac: flac lost sync
Jan 01 09:41 : flac: unknown flac error
Jan 01 09:41 : flac: flac lost sync

and it keeps repeating the last 2 lines of errors shown

Any clues please how to fix this?
Find all posts by this user
Add Thank You Quote this message in a reply
08-27-2012, 06:27 PM (This post was last modified: 08-27-2012 06:37 PM by rapid2k.)
Post: #102
RE: Music Player Daemon (MPD) - v0.16.2
(04-09-2011 08:04 PM)shadowcode Wrote:  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.

Thanks for this build! I've been using mpd 0.16.2 for a while now with MPoD from my iPhone, working great.

I would like to make a suggestion. Since ffmpeg is causing so many problems with video files... is it possible to disable it? All the audio formats are doubly supported (ie, mad supports mp3, vorbis supports ogg). Or at least try to compile mpd 0.17. Reading the changelog for the new version:

Quote:August 03, 2011 - Latest mpd/ffmpeg issues

Lately a change in ffmpeg introduced crashing issues in mpd. This issue has been fixed in ffmpeg and also mpd now has a fix to handle broken ffmpeg installations, so please update both. If you cannot update for any reason, you can disable ffmpeg in mpd.conf by adding "decoder { plugin "ffmpeg" enabled "no" }".

Has anyone streamed succesfully to an icecast2 server? From the top output, seems that A110 cpu is not able to transcode "in-time". It would be great to be able to listen audio files from iPhone!

Is it very difficult to setup a cross-compilation plataform? Could you post your build options for me to try?
Find all posts by this user
Add Thank You Quote this message in a reply
10-01-2012, 09:16 PM (This post was last modified: 10-01-2012 09:18 PM by ldegheest.)
Post: #103
RE: Music Player Daemon (MPD) - v0.16.2
I would also like to request some fix for the ffmpeg crashes when there are movie or m4a files in my music library.

But it is a great tool. I use gnome on pc and MPaD on the iPad.
It is so much better than browsing on the TV.
Being able to create playlists and browse the music collection while music is being played on the background.

Had some trouble to setup it tough.
Using the last version of CSI, I first had to rebuild the tars that where located in the zip files. (solution as described in a previous post)
Also some of the logging directories aren't created by default, wich causes mpd not te start up.
Finally, some problems with building the library, but I got it all working now.

And I love the gapless playback. That was really annoying with the standard PCH playback method.
Find all posts by this user
Add Thank You Quote this message in a reply
10-01-2012, 11:42 PM
Post: #104
RE: Music Player Daemon (MPD) - v0.16.2
Pch-a110 with MPD is now my primary music source. It is a very good software.
However, there are two problems:
- the audio plugin does not support 24 bit output,
- the project is neglected for the 1xx Popcorns (while maintained for newer devices).
Could we please ask for supporting our devices? They still do work very good.
Find all posts by this user
Add Thank You Quote this message in a reply
10-12-2012, 08:54 PM (This post was last modified: 10-12-2012 11:01 PM by robertazimmerman.)
Post: #105
RE: Music Player Daemon (MPD) - v0.16.2
REAL A-110 newbie here!

I installed MPD.zip, followed by MPDAudioPlugin.zip and both installed properly. I then loaded Auremo MPD client and selected "Update Collection" and got a "Connecting to localhost:6600 failed". I obviously need to change the configuration in the Settings tab, but am not sure what to input. Can a merciful soul please help out this frustrated user?

I used 192.168.2.11:6357 and 192.168.2.11:6600 with and without a password with no success.

Heart

Roberta
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 Browser for NMT - Updated August, 2nd, 2011 gkreidl 14 8,395 01-19-2013 04:07 PM
Last Post: winfried_laane
  Is it possible to code a HULU player for the A-110? mulderfox 0 444 01-05-2013 11:11 AM
Last Post: mulderfox
Music MPD installation howto (updated 4 May 2009) gwillem 494 295,016 07-20-2012 09:43 PM
Last Post: krimpenrik
  Any music jukebox that syncs with itunes? superflysocal 0 925 07-04-2012 02:57 PM
Last Post: superflysocal
  Music Player Daemon (MPD) 2010-04-04 v0.15.9 shadowcode 245 88,433 03-10-2012 01:05 AM
Last Post: ianny
  Stream music to the popcornhour snakeboots 1 2,427 08-30-2011 02:56 PM
Last Post: minio
  Music player minion connection problems webkocken 5 3,763 07-04-2011 09:08 AM
Last Post: shadowcode
  Disable amule daemon drunkendonkey 0 1,499 02-04-2011 12:33 AM
Last Post: drunkendonkey
  music player daemon MPD & PCH Remote control beatnut88 19 10,207 12-22-2010 12:31 AM
Last Post: dooly
  New Free MPD Client for Android TheMory 18 12,328 08-06-2010 12:00 AM
Last Post: mhut

Forum Jump: