MPD - Raspberry Pi Forums
i installed mpd on raspberry pi using sudo apt-get install mpd
did , edited file follows :
know code big dont know went wrong... installed mpdroid on android , in default connection settings put host 192.168.0.98 (my rpi address) , password hackme
port 6600
, streaming port 8000
says connection failed! connetion mpd-server failed! check if server running , reachable (failed connect / 192.168.0.98 (port 6600) after 10000ms iscconnected failed: econnrefused (connection refused))
, contents of /media/pd2 :
1.mp3
2.mp3
dont have playlist (will work) becuase neither want playlist nor know make 1
wanna when play mp3 mpdroid rpi should play mp3 through audio jack..
please me
did
code: select all
sudo nano /etc/mpd.conf
code: select all
# example configuration file mpd. # read user manual documentation: http://www.musicpd.org/doc/user/ # or /usr/share/doc/mpd/user-manual.html # files , directories ####################################################### # # setting controls top directory mpd search discover # available audio files , add them daemon's online database. # setting defaults xdg directory, otherwise music directory # disabled , audio files accepted on ipc socket (using # file:// protocol) or streaming files on accepted protocol. # music_directory "/media/pd2" # # setting sets mpd internal playlist directory. purpose of # directory storage playlists created mpd. server use # playlist files not created server if in mpd # format. setting defaults playlist saving being disabled. # playlist_directory "/var/lib/mpd/playlists" # # setting sets location of mpd database. file used # load database @ server start , store database while # server not up. setting defaults disabled allow # mpd accept files on ipc socket (using file:// protocol) or streaming # files on accepted protocol. # db_file "/var/lib/mpd/tag_cache" # # these settings locations daemon log files daemon. # these logs great troubleshooting, depending on log_level # settings. # # special value "syslog" makes mpd use local syslog daemon. # setting defaults logging syslog, otherwise logging disabled. # log_file "/var/log/mpd/mpd.log" # # setting sets location of file stores process id # use of mpd --kill , init scripts. setting disabled # default , pid file not stored. # pid_file "/run/mpd/pid" # # setting sets location of file contains information # variables mpd same general shape in before # brought down. setting disabled default , server # state reset on server start up. # state_file "/var/lib/mpd/state" # # location of sticker database. database # manages dynamic information attached songs. # sticker_file "/var/lib/mpd/sticker.sql" # ############################################################################### # general music daemon options ################################################ # # setting specifies user mpd run as. mpd should never run # root , may use setting make mpd change user id after # initialization. setting disabled default , mpd run # current user. # user "mpd" # # setting specifies group mpd run as. if not specified # primary group of user specified "user" setting used (if set). # useful if mpd needs member of group such "audio" # have permission use sound card. # #group "nogroup" # # setting sets address daemon listen on. careful attention # should paid if assigned other default, any. # setting can deny access control of daemon. choose if want # have mpd listen on every address # # network bind_to_address "127.0.01" # # , unix socket #bind_to_address "/run/mpd/socket" # # setting tcp port desired daemon assigned # to. # port "6600" # # setting controls type of information logged. available # setting arguments "default", "secure" or "verbose". "verbose" setting # argument recommended troubleshooting, though can stretch # available resources on limited hardware storage. # #log_level "default" # # if have problem mp3s ending abruptly recommended # set argument "no" attempt fix problem. if solves # problem, highly recommended fix mp3 files vbrfix # (available vbrfix in debian archive), @ # point gapless mp3 playback can enabled. # #gapless_mp3_playback "yes" # # setting "restore_paused" "yes" puts mpd pause mode instead # of starting playback after startup. # #restore_paused "no" # # setting enables mpd create playlists in format usable other # music players. # #save_absolute_paths_in_playlists "no" # # setting defines list of tag types extracted during # audio file discovery process. complete list of possible values can # found in mpd.conf man page. #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc" # # setting enables automatic update of mpd's database when files in # music_directory changed. # #auto_update "yes" # # limit depth of directories being watched, 0 means watch # music directory itself. there no limit default. # #auto_update_depth "3" # ############################################################################### # symbolic link behavior ###################################################### # # if setting set "yes", mpd discover audio files following # symbolic links outside of configured music_directory. # #follow_outside_symlinks "yes" # # if setting set "yes", mpd discover audio files following # symbolic links inside of configured music_directory. # #follow_inside_symlinks "yes" # ############################################################################### # zeroconf / avahi service discovery ########################################## # # if setting set "yes", service information published # zeroconf / avahi. # #zeroconf_enabled "yes" # # argument setting zeroconf / avahi unique name # mpd server on network. # #zeroconf_name "music player" # ############################################################################### # permissions ################################################################# # # if setting set, mpd require password authorization. password # can setting can specified multiple times different password profiles. # #password "password@read,add,control,admin" # # setting specifies permissions user has has not yet logged in. # #default_permissions "read,add,control,admin" # ############################################################################### # database ####################################################################### # #database { # plugin "proxy" # host "other.mpd.host" # port "6600" #} # input ####################################################################### # input { plugin "curl" # proxy "proxy.isp.com:8080" # proxy_user "user" # proxy_password "password" } # ############################################################################### # audio output ################################################################ # # mpd supports various audio output types, playing through multiple # audio outputs @ same time, through multiple audio_output settings # blocks. setting block optional, though server attempt # autodetection 1 sound card. # # example of alsa output: # audio_output { type "alsa" name "my alsa device" # device "hw:0,0" # optional # mixer_type "hardware" # optional # mixer_device "default" # optional # mixer_control "pcm" # optional # mixer_index "0" # optional } # # example of oss output: # #audio_output { # type "oss" # name "my oss device" # device "/dev/dsp" # optional # mixer_type "hardware" # optional # mixer_device "/dev/mixer" # optional # mixer_control "pcm" # optional #} # # example of shout output (for streaming icecast): # audio_output { # type "shout" # encoding "ogg" # optional # name "my shout stream" # host "localhost" # port "8000" # mount "/mpd.ogg" # password "hackme" # quality "5.0" # bitrate "128" # format "44100:16:1" # protocol "icecast2" # optional # user "source" # optional # description "my stream description" # optional # url "http://example.com" # optional # genre "jazz" # optional # public "no" # optional # timeout "2" # optional # mixer_type "software" # optional #} # # example of recorder output: # #audio_output { # type "recorder" # name "my recorder" # encoder "vorbis" # optional, vorbis or lame # path "/var/lib/mpd/recorder/mpd.ogg" ## quality "5.0" # not define if bitrate defined # bitrate "128" # not define if quality defined # format "44100:16:1" #} # # example of httpd output (built-in http streaming server): # #audio_output { # type "httpd" # name "my http stream" # encoder "vorbis" # optional, vorbis or lame # port "8000" # bind_to_address "0.0.0.0" # optional, ipv4 or ipv6 # quality "5.0" # not define if bitrate defined # bitrate "128" # not define if quality defined # format "44100:16:1" # max_clients "0" # optional 0=no limit #} # # example of pulseaudio output (streaming remote pulseaudio server) # please see readme.debian if want mpd play through pulseaudio # daemon started part of graphical desktop session! # #audio_output { # type "pulse" # name "my pulse output" # server "remote_server" # optional # sink "remote_server_sink" # optional #} # # example of winmm output (windows multimedia api). # #audio_output { # type "winmm" # name "my winmm output" # device "digital audio (s/pdif) (high definition audio device)" # optional # or # device "0" # optional # mixer_type "hardware" # optional #} # # example of openal output. # #audio_output { # type "openal" # name "my openal output" # device "digital audio (s/pdif) (high definition audio device)" # optional #} # ## example "pipe" output: # #audio_output { # type "pipe" # name "my pipe" # command "aplay -f cd 2>/dev/null" ## or if you're want use audiocompress # command "audiocompress -m | aplay -f cd 2>/dev/null" ## or send raw pcm stream through pcm: # command "nc example.org 8765" # format "44100:16:2" #} # ## example of null output (for no audio output): # #audio_output { # type "null" # name "my null output" # mixer_type "none" # optional #} # # if mpd has been compiled libsamplerate support, setting specifies # sample rate converter use. possible values can found in # mpd.conf man page or libsamplerate documentation. default, # setting disabled. # #samplerate_converter "fastest sinc interpolator" # ############################################################################### # normalization automatic volume adjustments ################################## # # setting specifies type of replaygain use. setting can have # argument "off", "album", "track" or "auto". "auto" special mode # chooses between "track" , "album" depending on current state of # random playback. if random playback enabled "track" mode used. # see <http://www.replaygain.org> more details replaygain. # setting off default. # #replaygain "album" # # setting sets pre-amp used files have replaygain tags. # default setting disabled. # #replaygain_preamp "0" # # setting sets pre-amp used files not have replaygain tags. # default setting disabled. # #replaygain_missing_preamp "0" # # setting enables or disables replaygain limiting. # mpd calculates actual amplification based on replaygain tags # , replaygain_preamp / replaygain_missing_preamp setting. # if replaygain_limit enabled mpd never amplify audio signal # above original level. if replaygain_limit disabled such amplification # might occur. default setting enabled. # #replaygain_limit "yes" # # setting enables on-the-fly normalization volume adjustment. # result in volume of playing audio adjusted output has # equal "loudness". setting disabled default. # #volume_normalization "no" # ############################################################################### # character encoding ########################################################## # # if file or directory names not display correctly locale # may need modify setting. # filesystem_charset "utf-8" # # setting controls encoding id3v1 tags should converted from. # id3v1_encoding "utf-8" # ############################################################################### # sidplay decoder ############################################################# # # songlength_database: # location of songlengths file, distributed hvsc. # sidplay plugin checks matching md5 fingerprints. # see http://www.c64.org/hvsc/documents/songlengths.faq # # default_songlength: # default playing time in seconds songs not in # songlength database, or in case you're not using database. # value of 0 means play indefinitely. # # filter: # turns sid filter emulation on or off. # #decoder { # plugin "sidplay" # songlength_database "/media/c64music/documents/songlengths.txt" # default_songlength "120" # filter "true" #} # ###############################################################################
port 6600
, streaming port 8000
says connection failed! connetion mpd-server failed! check if server running , reachable (failed connect / 192.168.0.98 (port 6600) after 10000ms iscconnected failed: econnrefused (connection refused))
, contents of /media/pd2 :
1.mp3
2.mp3
dont have playlist (will work) becuase neither want playlist nor know make 1
wanna when play mp3 mpdroid rpi should play mp3 through audio jack..
please me
there line aiui allow access local host (your pi). seems confirmed error message
code: select all
bind_to_address "127.0.01"
think default allow connections addresses, try commenting out line , see if works.failed: econnrefused (connection refused))
raspberrypi
Comments
Post a Comment