[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: 3 Guest(s)
Poll: Would you like to have MPD for C200/A200/A210?
Yes I would like to have
No I don't
[Show Results]
Note: This is a public poll, other users will be able to see what you voted for.
Post Reply 
[200] Music Player Daemon (MPD)
01-27-2012, 07:22 AM (This post was last modified: 02-03-2012 07:37 AM by vventuree.)
Post: #331
RE: [Apps] Music Player Daemon (MPD) C200/A200
I have been studing this topic for quite a long time. I summarized as below steps. Here is my status:

1. install CSI (done)
2. install opkg (done)
3. telnet myC200_IP_address
4. telnet# cd /
5. telnet# opkg update (done)
6. telnet# opkg install busybox (done)
7. telnet# opkg install mpd (done)

But I tried manually stop and start again, I got the following messages:
telnet# /share/Apps/local/etc/init.d/99mpd.sh stop
telnet# /share/Apps/local/etc/init.d/99mpd.sh start
>> Failed to bind to '0.0.0.0:6600' address already in use

I supposed the correct C200 IP address is not taken.

check if MPD is running:
telnet# ps -ef | grep mpd

Does anyone know why and how to solve it?

By the way, how can I uninstall busybox and mpd?

PCH-C200, 2.5" 500G Segate internal HD, Denon AV Amp, Panasonic AE-500 Projector.
Find all posts by this user
Add Thank You Quote this message in a reply
02-01-2012, 03:04 PM (This post was last modified: 02-02-2012 04:29 AM by vventuree.)
Post: #332
RE: [Apps] Music Player Daemon (MPD) C200/A200
(01-27-2012 07:22 AM)vventuree Wrote:  I have been studing this topic for quite a long time. I summarized as below steps. Here is my status:

1. install CSI (done)
2. install opkg (done)
3. telnet myC200_IP_address
4. telnet# cd /
5. telnet# opkg update (done)
6. telnet# opkg install busybox (done)
7. telnet# opkg install mpd (done)

But I tried manually stop and start again, I got the following messages:
telnet# /share/Apps/local/etc/init.d/99mpd.sh stop
telnet# /share/Apps/local/etc/init.d/99mpd.sh start
>> Failed to bind to '0.0.0.0:6600' address already in use

I supposed the correct C200 IP address is not taken.

check if MPD is running:
telnet# ps -ef | grep mpd

Does anyone know why and how to solve it?

By the way, how can I uninstall busybox and mpd?

After some works and very long time effort, I FINALLY MADE IT WORK!!C200+MPoD!! Thank all the developers! This is really awesome!!
The reminding questions are:

1. How to uninstall? Just delete the folders?
2. How to update music database if make some changes?
3. How the album cover be shown on MPoD? Some of the album does not show cover picture correctly.

Thank you!!

PCH-C200, 2.5" 500G Segate internal HD, Denon AV Amp, Panasonic AE-500 Projector.
Find all posts by this user
Add Thank You Quote this message in a reply
02-01-2012, 03:43 PM
Post: #333
RE: [Apps] Music Player Daemon (MPD) C200/A200
(02-01-2012 03:04 PM)vventuree Wrote:  
(01-27-2012 07:22 AM)vventuree Wrote:  I have been studing this topic for quite a long time. I summarized as below steps. Here is my status:

1. install CSI (done)
2. install opkg (done)
3. telnet# opkg update (done)
4. telnet# opkg install busybox (done)
5. telnet# opkg install mpd (done)

But I tried manually stop and start again, I got the following messages:
telnet# /share/Apps/local/etc/init.d/99mpd.sh stop
telnet# /share/Apps/local/etc/init.d/99mpd.sh start
>> Failed to bind to '0.0.0.0:6600' address already in use

I supposed the correct C200 IP address is not taken.

check if MPD is running:
telnet# ps -ef | grep mpd

Does anyone know why and how to solve it?

By the way, how can I uninstall busybox and mpd?

After some works and very long time effort, I FINALLY MADE IT WORK!!
C200+MPoD!! Thank all the developers! This is really awesome!!
The reminding questions are:

1. How to uninstall? Just delete the folders?
2. How to update music database if make some changes?
3. How the album cover be shown on MPoD? Some of the album does not show cover picture correctly.

Thank you!!


1. Don't know maybe some one else
I use Mpad, but I think the settings are compareble.
2. With MPod, there should be a setting/button to update the mpd db
3. I'm still trying this myself. With the connection settings you can select, where to fetch the album art. Also Mpad has a button to reload the Album art. I'm doing some test to add album art to the PCH album dir and display this. (have to fight over the Ipad with the Kids, so it takes a while)
I think, local album art is the best option, you can decide yourself what picture it is.

How did you solve "Failed to bind to '0.0.0.0:6600' address already in use"

Media Player: Popcorn Hour C-200, Lite-On iHOS104, WD Scorpio Blue 750GB
Find all posts by this user
Add Thank You Quote this message in a reply
02-02-2012, 04:42 AM (This post was last modified: 02-02-2012 05:07 AM by vventuree.)
Post: #334
RE: [Apps] Music Player Daemon (MPD) C200/A200
(02-01-2012 03:43 PM)Onraed Wrote:  
(02-01-2012 03:04 PM)vventuree Wrote:  After some works and very long time effort, I FINALLY MADE IT WORK!!
C200+MPoD!! Thank all the developers! This is really awesome!!
The reminding questions are:

1. How to uninstall? Just delete the folders?
2. How to update music database if make some changes?
3. How the album cover be shown on MPoD? Some of the album does not show cover picture correctly.

Thank you!!


1. Don't know maybe some one else
I use Mpad, but I think the settings are compareble.
2. With MPod, there should be a setting/button to update the mpd db
3. I'm still trying this myself. With the connection settings you can select, where to fetch the album art. Also Mpad has a button to reload the Album art. I'm doing some test to add album art to the PCH album dir and display this. (have to fight over the Ipad with the Kids, so it takes a while)
I think, local album art is the best option, you can decide yourself what picture it is.

How did you solve "Failed to bind to '0.0.0.0:6600' address already in use"
I have currently 572 album folders with ~4000 music files in database. I did use local album art (always name: folder.jpg at the same folder as album music files) for most of my collections. However, I found MPoD did not refer to my local album art and always get it thru internet, so some of them are blank even I have local album art. What's the correct file structure and naming for MPoD album art serach? MPoD is free app, but Mpad is charged. So I used MPoD. Smile
I just reboot the system to fix that "0.0.0.0" issue. Smile

PCH-C200, 2.5" 500G Segate internal HD, Denon AV Amp, Panasonic AE-500 Projector.
Find all posts by this user
Add Thank You Quote this message in a reply
02-02-2012, 11:00 AM (This post was last modified: 02-02-2012 11:35 AM by Onraed.)
Post: #335
RE: [Apps] Music Player Daemon (MPD) C200/A200
Hi,

I was experimenting a bit, but I can't get it to work (yet). After reading this I'm not sure if it's implemented.

http://www.katoemba.net/makesnosenseatal...-and-mpad/

Maybe the developers can help, got some local music on my system that's unknown to the album art profiders.
edit:
As I understand it there is need of an webserver
edit 2:
does any body know or is any body able to test this.
this goes beyond my knowledge of Linux
http://www.symphonic-net.com/kubotayo/ar...empd.html#

Media Player: Popcorn Hour C-200, Lite-On iHOS104, WD Scorpio Blue 750GB
Find all posts by this user
Add Thank You Quote this message in a reply
02-02-2012, 11:55 AM
Post: #336
RE: [Apps] Music Player Daemon (MPD) C200/A200
Hey,

The album art can be provided from the PCH.
However, you need a webserver for this.
On my A-300 I ended up adding it to one of the webservers already running (don't know by heart which one that is).

On the mpad/mpod, you need to add the URL to that webserver with the path (http://PCH:1234/Music - PCH is hostname / IP address - 1234 is the port the webserver is listening on - /Music is the alias configured in the webserver to point to the music directory)

And I noticed that you also need to set the filename to Folder.jpg (CaPiTaLiZaTiOn IS important - Setting this to folder.jpg will not find Folder.jpg).
Mpad / mpod state that it defaults to Folder.jpg, but my impression is that it doesn't. Anyway it is safer to set it explicitely.

How to add the correct configuration to the webserver is explained indeed at the official site (and already linked above), but here goes:http://www.katoemba.net/makesnosenseatal...-and-mpad/
You can always easily test the webserver connection.
If you try to browse to the webserver yourself (any browser will do):
http://PCH:1234/Music/Tool/Opiate/Folder.jpg
--> If this does not work, mpad /mpod will not find it either.
(Again capitalization is important)

Hope this helps.

H.
Find all posts by this user
Add Thank You Quote this message in a reply
02-03-2012, 03:35 AM
Post: #337
RE: [Apps] Music Player Daemon (MPD) C200/A200
(02-02-2012 11:55 AM)Hendershot Wrote:  Hey,

The album art can be provided from the PCH.
However, you need a webserver for this.
On my A-300 I ended up adding it to one of the webservers already running (don't know by heart which one that is).

On the mpad/mpod, you need to add the URL to that webserver with the path (http://PCH:1234/Music - PCH is hostname / IP address - 1234 is the port the webserver is listening on - /Music is the alias configured in the webserver to point to the music directory)

And I noticed that you also need to set the filename to Folder.jpg (CaPiTaLiZaTiOn IS important - Setting this to folder.jpg will not find Folder.jpg).
Mpad / mpod state that it defaults to Folder.jpg, but my impression is that it doesn't. Anyway it is safer to set it explicitely.

How to add the correct configuration to the webserver is explained indeed at the official site (and already linked above), but here goes:http://www.katoemba.net/makesnosenseatal...-and-mpad/
You can always easily test the webserver connection.
If you try to browse to the webserver yourself (any browser will do):
http://PCH:1234/Music/Tool/Opiate/Folder.jpg
--> If this does not work, mpad /mpod will not find it either.
(Again capitalization is important)

Hope this helps.

H.

Thank you Hendershot!
Because I had local cover art, so I tried to figure out to get it from local. In MPoD, there is a "Local Cover Art" section.
It required below info as you mentioned:
URL: myC200IP_address:1234/music
Cover Filename: my case is => folder.jpg (default is Folder.jpg)


If my music database in C200 is like: /share/music/CD MUSIC/(artists)/(album)/***.flac, what should I put in my URL to replace "music" at above?

Is "1234" at above URL example true? or how should I know which port I should use?

thank you

PCH-C200, 2.5" 500G Segate internal HD, Denon AV Amp, Panasonic AE-500 Projector.
Find all posts by this user
Add Thank You Quote this message in a reply
02-03-2012, 08:34 AM (This post was last modified: 02-03-2012 08:36 AM by Hendershot.)
Post: #338
RE: [Apps] Music Player Daemon (MPD) C200/A200
Hey,

All that depends on the settings you do in your webserver.

The alias you create in the webserver should match the directory you configured for mpd.
If this is /share/music/CD MUSIC should add an alias to that location.
If it is /share/music, you should set the alias to that location.
So in the httpd.conf either:
Alias /music/ "/share/music/"
or:
Alias /music/ "/share/music/CD MUSIC"

--> This alias will then be made available by your webserver (after restart).
Take a look at the link provided in the previous post to set other settings in the httpd.conf to get permissions correct.

Also in the httpd.conf, you should search for the correct port (1234 was just an example), probably something like:
Listen 2080 --> in this case the port would be 2080

To construct the correct URL:
http://IP:PORT/ALIAS
Example if IP would be 192.168.1.100;
http://192.168.1.100:2080/music

The way it works is as follows:
mpad knows the location of the mp3 files (relative to the path set in the mpd configuration).
mpad will then browse to the URL provided and add the same directory as the location of the mp3 file and add the cover filename.

Again in the example this would lead to (assuming mpd configured to be inside CD MUSIC):
Code:
http://192.168.1.100:2080/music/(artist)/(album)/folder.jpg
or if it is not inside CD MUSIC:
Code:
http://192.168.1.100:2080/music/CD MUSIC/(artist)/(album)/folder.jpg

That should do the trick.
Again try the URL in a browser. If that is not working, you need to make sure that the webserver is configured correctly AND the URL is correct.

Hope this helps.

H.
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to Hendershot for this post
02-03-2012, 08:50 AM
Post: #339
RE: [Apps] Music Player Daemon (MPD) C200/A200
Ah, thank you Hendershot,

so the question know is, is there a web-server available in the PCH-c200 which can do this.
and is this available from CSI, OPkg, or pre installed. and where to find the config file and how to edit.

Is there someone who can help ?

Media Player: Popcorn Hour C-200, Lite-On iHOS104, WD Scorpio Blue 750GB
Find all posts by this user
Add Thank You Quote this message in a reply
02-04-2012, 10:03 AM
Post: #340
RE: [Apps] Music Player Daemon (MPD) C200/A200
Hey,

Not sure about the 200 series as I have a A-300.
I instaled a lighttpd through opkg.
The httpd.conf is located at:
/share/Apps/AppInit/httpd.conf
And is quite easy:
Code:
Port 9999
Listen 9999
<VirtualHost *:9999>
    ScriptAlias /php/ /nmt/apps/server/
    AddType application/x-httpd-php5 .php
    Action application/x-httpd-php5 /php/php5-cgi
    DocumentRoot /share/Apps/AppInit/websites
    DirectoryIndex index.php index.cgi index.html
    ServerName 192.168.101.150
</VirtualHost>

<Directory /share/Apps/AppInit/websites>
    Options +ExecCGI
    AllowOverride All
    AddHandler cgi-script .cgi
</Directory>

This means the following directory is available for browsing:
/share/Apps/AppInit/websites
Luckily it allows to follow links.
So what I did is the following:
go to that directory and link the directory:
Code:
cd /share/Apps/AppInit/websites
ln -s music /share/music

P.S. I do not know if installation will result in the same structure on the A-200.
After installation, you can always search for the httpd.conf file by looking at the process:
Code:
ps -ef | grep httpd
This would result in something like:
Code:
1724 nobody     0:00 /share/Apps/local/sbin/lighttpd -f /share/Apps/local/etc/lighttpd/lighttpd.conf -m /share/Apps/local/lib/lighttpd/
There might be others listed as well, but we're interested in this one.
The -f shows the location of the httpd.conf.

So all I did was install lighttpd & create a link to get my music directory available through http.

Hope this helps.

H.
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 3 users say Thank You to Hendershot for this post
02-04-2012, 02:41 PM
Post: #341
RE: [Apps] Music Player Daemon (MPD) C200/A200
(02-04-2012 10:03 AM)Hendershot Wrote:  Hey,

Not sure about the 200 series as I have a A-300.
I instaled a lighttpd through opkg.
The httpd.conf is located at:
/share/Apps/AppInit/httpd.conf
And is quite easy:
Code:
Port 9999
Listen 9999
<VirtualHost *:9999>
    ScriptAlias /php/ /nmt/apps/server/
    AddType application/x-httpd-php5 .php
    Action application/x-httpd-php5 /php/php5-cgi
    DocumentRoot /share/Apps/AppInit/websites
    DirectoryIndex index.php index.cgi index.html
    ServerName 192.168.101.150
</VirtualHost>

<Directory /share/Apps/AppInit/websites>
    Options +ExecCGI
    AllowOverride All
    AddHandler cgi-script .cgi
</Directory>

This means the following directory is available for browsing:
/share/Apps/AppInit/websites
Luckily it allows to follow links.
So what I did is the following:
go to that directory and link the directory:
Code:
cd /share/Apps/AppInit/websites
ln -s music /share/music

P.S. I do not know if installation will result in the same structure on the A-200.
After installation, you can always search for the httpd.conf file by looking at the process:
Code:
ps -ef | grep httpd
This would result in something like:
Code:
1724 nobody     0:00 /share/Apps/local/sbin/lighttpd -f /share/Apps/local/etc/lighttpd/lighttpd.conf -m /share/Apps/local/lib/lighttpd/
There might be others listed as well, but we're interested in this one.
The -f shows the location of the httpd.conf.

So all I did was install lighttpd & create a link to get my music directory available through http.

Hope this helps.

H.

Hi H.
Thank you again for the info. I made it work!!
What I did at C200 are:
- Install lighttpd thru CSI (it's already done before)
- telnet to PCH-C200
# cd /share/Apps/AppInit/websites
# ln -s /share/Music music (be carefule about CaPiTiLiZaTiOn)

What I did in MPoD are:
URL: http://myC200IP:9999/music
cover filename: folder.jpg

Then it WORKS!!!!
Great and appreciate!! Last question is will the "ln -s" info still exist after reboot? how to keep it after reboot?
Write into http.conf?

PCH-C200, 2.5" 500G Segate internal HD, Denon AV Amp, Panasonic AE-500 Projector.
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to vventuree for this post
02-04-2012, 03:20 PM
Post: #342
RE: [Apps] Music Player Daemon (MPD) C200/A200
(02-04-2012 02:41 PM)vventuree Wrote:  Then it WORKS!!!!
Great and appreciate!! Last question is will the "ln -s" info still exist after reboot? how to keep it after reboot?
Write into http.conf?

ln -s will exist after reboot, because you are doing in the internal SATA_DISK/USB_DISK and not the system partition which will lost after reboot.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 2 users say Thank You to vaidyasr for this post
02-05-2012, 03:21 AM
Post: #343
RE: [Apps] Music Player Daemon (MPD) C200/A200
(02-04-2012 03:20 PM)vaidyasr Wrote:  
(02-04-2012 02:41 PM)vventuree Wrote:  Then it WORKS!!!!
Great and appreciate!! Last question is will the "ln -s" info still exist after reboot? how to keep it after reboot?
Write into http.conf?

ln -s will exist after reboot, because you are doing in the internal SATA_DISK/USB_DISK and not the system partition which will lost after reboot.

Great! Glad to hear that! Thank you, Vaidyasr to make all the S/W developped. After almost 2 years waiting, I finally made it happen to my C200 and iPHone. Wonderful!

PCH-C200, 2.5" 500G Segate internal HD, Denon AV Amp, Panasonic AE-500 Projector.
Find all posts by this user
Add Thank You Quote this message in a reply
02-05-2012, 11:23 AM
Post: #344
RE: [Apps] Music Player Daemon (MPD) C200/A200
After a struggle of several hours, I made it work.
I thought, I had to made some change to the .conf file.
so after reinstalling opkg, mpd and lighthttp. and giving the shell commands it's working.

thank you Vaidyasr, Hendershot and vventuree.

I now know it for sure, I have to find a way to boost my linux knowledge.

Media Player: Popcorn Hour C-200, Lite-On iHOS104, WD Scorpio Blue 750GB
Find all posts by this user
Add Thank You Quote this message in a reply
02-06-2012, 10:55 AM
Post: #345
RE: [Apps] Music Player Daemon (MPD) C200/A200
(02-05-2012 11:23 AM)Onraed Wrote:  After a struggle of several hours, I made it work.
I thought, I had to made some change to the .conf file.
so after reinstalling opkg, mpd and lighthttp. and giving the shell commands it's working.

thank you Vaidyasr, Hendershot and vventuree.

I now know it for sure, I have to find a way to boost my linux knowledge.

Actually, I think it works for 95%. I found some of my local folder contains cover art, but MPoD did not catch them. However, it works at least 95%.

PCH-C200, 2.5" 500G Segate internal HD, Denon AV Amp, Panasonic AE-500 Projector.
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
  [400] Music Player Daemon (MPD) v0.17.3 vaidyasr 7 1,137 03-31-2013 12:23 AM
Last Post: markmyers
  [300] Music Player Daemon (MPD) vaidyasr 110 25,342 03-28-2013 08:57 AM
Last Post: Ribbel
Video [200] [Apps] multicast IPTV Player (FlashLite) ikovrigin 38 16,582 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 777 02-17-2013 12:12 AM
Last Post: sunny1081
  [200] [Apps] NMT CSI IPTV Player romanr 34 12,092 12-31-2012 07:57 PM
Last Post: romanr
  [200] Setting up RSync daemon vanluijk 7 6,279 10-31-2012 12:24 PM
Last Post: compiler
  [300] Question on music player daemon PRS 0 955 02-05-2012 01:15 AM
Last Post: PRS
  [300] A300: Is there an ipad app for my music library ? Hendershot 6 3,410 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: