mpd music player

mpd music player

Postby bidule » Thu Jun 01, 2023 9:24 pm

In the fvdw-sl-18-0 release notes post there is:
- support for mpd music player version 0.20.16 (addon package)

How do I enable this?

Actually I run an MPD server on an android TVbox (in-house compilation), connected to my Lacie Coudbox via smb. I would rather run MPD directly on the Cloudbox!
bidule
Donator VIP
Donator VIP
 
Posts: 13
Joined: Wed Jul 04, 2018 6:52 pm

Re: mpd music player

Postby Jocko » Fri Jun 02, 2023 12:13 pm

Hi

it is quiet easy to use. Just run this command to manage the server from a shell window (SSH)
Code: Select all
mpdserver


Usage mpdserver [ start [nodaemon]| stop | status | install | reset | installed | update | boot_status | isupdate | help ]

      mpdserver [music_dir [folder_path]]

Options:
        install         install MPD server from plugout.net

        reset           re-install MPD server from plugout.net

        update          upgrade MPD server with the lastest version available from plugout.net

        installed       check if MPD is installed

        start           start MPD server. If you use it with the option 'nodaemon', MPD is not detached from the console (useful for debugging)

        stop            stop MPD server

        status          display if MPD server is running or not

        boot_status     enable/disable MPD server at the next nas booting

        music_dir       display the current music folder if [folder_path] is missing
                        set [folder_path] as new music folder if it is set

        help    display this short usage help
Other points:
- mpd is quietly installed when you install minidlna because they uses some common libraries.
- to set music folder, use the command
Code: Select all
mpdserver music_dir /direct-usb/myMusicShare/myMp3
For example if myMp3 is a folder of a share 'myMusicShare' where are the sound files,
Jocko
Site Admin - expert
 
Posts: 11558
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: mpd music player

Postby bidule » Tue Jun 06, 2023 8:11 pm

Thanks!
I'v been able to configure and run mpd :)
As my cloud box has no usb port :/ I configured it with httpd

I'll try to see what's the best solution between minidlna, mpd through http, mpd on androidtv with files on cloudbox.
bidule
Donator VIP
Donator VIP
 
Posts: 13
Joined: Wed Jul 04, 2018 6:52 pm

Re: mpd music player

Postby Jocko » Wed Jun 07, 2023 9:20 am

Hi

:thumbup
Indeed it may be used as this way.

So I assume you set your mpd server like this :
- open the file /direct-usb/mpd/mpd.conf
- comment all the following lines (by adding a #)
Code: Select all
audio_output {
  type "alsa"
  name "USB audio card"
  device "hw:0"
  mixer_control "Speaker" 
}
so
Code: Select all
# audio_output {
#  type "alsa"
#  name "USB audio card"
# device "hw:0"
#  mixer_control "Speaker" 
#}

- add these new settings
Code: Select all
# optional output to stream music to local device (phone, tablet, pc,...)
audio_output {
type            "httpd"
name            "Local Stream"
encoder         "vorbis"
#encoder        "lame"         # comment vorbis and use lame for iOS support
port            "7000"
quality         "5.0"           # do not define if bitrate is defined
#bitrate        "128"           # do not define if quality is defined
#format          "44100:16:1"
always_on       "yes"           # prevent MPD from disconnecting all listeners when playback
tags            "yes"           # httpd supports sending tags to listening streams.
}

Notes :
- set an unused port by the firmware, port 7000 should not be used by the firmware. You can check it by using this command
Code: Select all
netstat -apn

- if you have a too cpu usage high level you may decrease the quality or birate value
Jocko
Site Admin - expert
 
Posts: 11558
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: mpd music player

Postby bidule » Fri Jun 09, 2023 5:26 am

Indeed!
Thanks again.
bidule
Donator VIP
Donator VIP
 
Posts: 13
Joined: Wed Jul 04, 2018 6:52 pm


Return to Lacie cloudbox (white casing)

Who is online

Users browsing this forum: No registered users and 7 guests