Mpd dependancy breakage

Upon installing mpd to my headless server, starting mpd caused mpd to fail based on required dependencies:
mpd: error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: no such file or directory
According to shaman, mpd currently depends on:
libid3tag
libmad
flac
audiofile
faad2
libmikmod
alsa-lib
libshout
linmpcdec
libsamplerate
libao
ffmpeg
wavpack
libgthread is part of the glib2 package, on which mpd currently does not depend.
Am I horridly mistaken or are things broken?

glib2 is in mpd's dep list.  You must have installed something using the "-d" flag at some stage.
> pactree -u mpd | sort
acl
alsa-lib
attr
audiofile
bash
bzip2
ca-certificates
coreutils
cracklib
curl
db
e2fsprogs
faac
faad2
ffmpeg
findutils
flac
freetype2
gcc-libs
gdbm
giflib
glib2
glibc
gmp
gzip
imlib2
inputproto
kbproto
kernel-headers
lame
libao
libice
libid3tag
libjpeg
libmad
libmikmod
libmp4v2
libmpcdec
libogg
libpng
libsamplerate
libshout
libsm
libsndfile
libtheora
libtiff
libvorbis
libx11
libxau
libxcb
libxdmcp
libxext
libxrender
mpd
ncurses
openssl
pam
pcre
perl
readline
renderproto
run-parts
sdl
sed
shadow
speex
texinfo
tzdata
wavpack
x264
xcb-proto
xextproto
xproto
xvidcore
zlib

Similar Messages

  • Dependency breakage?

    on pacman -Syu:
    resolving dependencies...
    error: cannot resolve "compiz-core>=0.8.0:, a dependency of "libcompizconfig"
    error: failed to prepare transaction (could not satisfy dependencies)
    :: libcompizconfig: requires compiz-core>=0.8.0
    Seems to be related to the libcompizconfig package that was updated:
    libcompizconfig (0.7.8-2)
    Compiz configuration system library
    Status: Installed
    Local Version: 0.7.8-1
    Version in the Repository: 0.7.8-2

    Just noticed this:
    http://bbs.archlinux.org/viewtopic.php? … 29#p504829
    /slaps self. Apparantly the dev has an upload fail on the compiz-core package which he recentl solved, so yes I will wait for a mirror sync.
    thanks
    Last edited by stefanwilkens (2009-02-25 08:39:44)

  • Strange dependency chain mpd - wayland/mesa

    Recently I've made a fresh install of Arch intended to be used as headless server.
    Installing mpd (only the server) pacman requires:
    Objectius (53): audiofile-0.3.6-1 avahi-0.6.31-6 damageproto-1.2.1-2
    enca-1.14-1 faad2-2.7-3 ffmpeg-1:1.1.3-1 fixesproto-5.0-2
    fontconfig-2.10.2-1 freetype2-2.4.11-2 fribidi-0.19.5-1
    gsm-1.0.13-7 jack-0.121.3-7 lame-3.99.5-1 libao-1.1.0-3
    libass-0.10.1-1 libbluray-0.2.3-1 libdaemon-0.14-2
    libdrm-2.4.42-1 libid3tag-0.15.1b-7 libjpeg-turbo-1.2.1-1
    libmad-0.15.1b-6 libmms-0.6.2-1 libmodplug-0.8.8.4-1
    libpciaccess-0.13.1-1 libshout-1:2.3.1-1 libtheora-1.1.1-2
    libva-1.1.0-2 libvdpau-0.6-1 libvpx-1.1.0-1
    libxdamage-1.1.4-1 libxfixes-5.0-2 libxml2-2.8.0-1
    libxrender-0.9.7-1 libxxf86vm-1.1.2-1 mesa-9.1.1-1
    mesa-libgl-9.1.1-1 opencore-amr-0.1.3-1 openjpeg-1.5.0-1
    opus-1.0.2-1 recode-3.6-7 renderproto-0.11.1-2
    rtmpdump-20121203-1 schroedinger-1.0.11-1 sdl-1.2.15-3
    sqlite-3.7.16-1 v4l-utils-0.9.3-2 wavpack-4.60.1-2
    wayland-1.0.6-1 x264-20130206-1 xf86vidmodeproto-2.3.1-2
    xvidcore-1.3.2-1 yajl-2.0.4-1 mpd-0.17.3-3
    It seems to me a non logical chain of dependencies for a daemon. It's only my impression?

    mpd depends on ffmpeg -> libva -> libegl / libgl ( = mesa ) -> wayland.
    The wayland package contains the wayland client libraries just like libx11, libxxf86vm, and libxdamage contain bindings for x-server code. If you compare that, wayland brings less overhead. libva requires bindings to graphics libraries since it uses the video hardware for acceleration. ffmpeg has many dependencies you don't need since it is a versatile audio and video library and tool collection.

  • MPD won't load after compiling x264 [Solved]

    I had to compile a recent version of x264 so I could install mplayer-mt-git, but now I noticed MPD is not working.
    After some fiddling around, I figured out MPD wants to load libx264.so.67 although I have libx264.so.80. How do I fix this?
    Last edited by anonymous_user (2010-01-10 17:39:53)

    tekknokrat wrote:
    I still have this issue with current mpd.
    mpd: error while loading shared libraries: libx264.so.80: cannot open shared object file: No such file or directory
    When will the update be in main repo?
    define current mpd. note that mpd doesn't link directly to x264 and looking at mpd dependency i guess you don't use ffmpeg from our repo.
    so pacman -Qs ffmpeg

  • Mpd update error

    just updated mpd and i keep getting a connection refused message when trying to start ncmpcpp.
    anyone else see this?

    I noticed earlier this morning faad2 or faac quit being an MPD dependency on my server, despite still being needed by MPD. Do an
    ldd /usr/bin/mpd|grep found
    If you see libfaa{c,d} or any other lib, please open a bug on flyspray. Strangely enough on my laptop all MPD dependencies are met (faac and faad2 are both listed as dependencies):
    [stijn@hermes ~]$ ldd /usr/bin/mpd|grep -E "not|faa"
    libfaad.so.2 => /usr/lib/libfaad.so.2 (0xb76ab000)
    libfaac.so.0 => /usr/lib/libfaac.so.0 (0xb5af2000)
    I have a 0.15.10-2 package btw, not -1.

  • [SOLVED]What are provider packages??

    Hello! Well, sometimes, when I am installing software on my Linux I am greeted with a message such as the following:
    warning: provider package was selected (foo provides bar)
    Well, my doubt is as simple as the topic states: what are these 'provider packages' and why is a warning issued for them? Is it telling me that I am actually installing another package rather than the one being shown to me? In the example above, package 'foo' would not be installed, as it would instead serve only as a provider of package 'bar', which would be the one actually being installed on my system. Is it anything like that at all? Can't seem to find any info about provider packages on the net...
    Thanks for the consideration...

    A "provider package" is just a package which satisfies the dependencies of another package.
    Examples:
    Java packages require something that can run Java code and thus depend on "java-runtime", which is not an actual package. The package "jre", which is Sun's Java Runtime Environment, provides "java-runtime" and thus satisfies the "java-runtime" dependency. "openjdk6" also provides "java-runtime" and thus satisfies the dependency because it can be used instead of Sun's JRE to run Java code.
    The package "gnu-netcat" provides "netcat" to satisfy dependencies on "netcat". This was probably to avoid breaking dependencies due to a package name change (netcat -> gnu-netcat) but it might also be to enable other implementations of netcat (e.g. foo-netcat).
    The general purpose is to allow different (competing) packages to satisfy the same dependencies or to avoid dependency breakage when a package name is changed.
    In your case, "foo" satisfies the dependencies that another package expected to find in "bar", which may or may not exist as a package. Which package is actually chosen depends on repo order. In the case of "java-runtime", openjdk6 is in [extra] and jre is in [community], which usually means that openjdk6 is installed.
    Last edited by Xyne (2010-05-18 21:19:13)

  • Installing/upgrading packages on live cd - broken?

    I've been trying to install perl in the live cd environment, as it is a dependency for many other things such as git and emacs, but this has led me down a rabbit hole of problems which I'm guessing stem from the recent dropping of aufs from the kernel.
    Reproducing my problem is easy. Simply boot into the latest live cd, and type:
    [root@archiso]$ dhcpcd eth0
    [root@archiso]$ pacman -Syu
    You will get errors about conflicts with aufs2, kernel26, ndiswrapper and tiacx depending on kernel26<2.6.39. To me the reasonable way around this would be:
    [root@archiso]$ pacman -Syu --ignore kernel26
    This will appear to work but the entire system will crash during the "checking for file conflicts" stage, such that a hard reboot is necessary.
    Trying to bypass this problem and simply type
    [root@archiso]$ pacman -Sy perl
    will not work either - it will crash exactly the same way.
    Any ideas or suggestions you all have are appreciated.
    NOTE: I did check the feedback form but it seems to focus on AIF issues...

    Getting perl from the core CD did work, but it proved to be redundant since the latest git package depends on >=5.14.0. I solved my problem by wgetting both git-1.7.5.2-1 and perl-5.12.3-1 from the schlunix repo, which can work on all live cds (i'm writing a script that will do this and other things). Installing those resolved all dependency problems for my purposes.
    This of course does not solve either the long term dependency breakage from dropping aufs or whatever pacman bug caused the hard-crash, but at least solves my immediate problem.
    Thanks for your help karol!

  • Conky if_mpd_playing hides status but not console output

    conky has an if_mpd_playing function these days, which is nice to not display unecessary "null" playing messages. in my case however, the availability of mpd depends on the wireless network i'm connected to. so when i'm at work where i don't have mpd, if_mpd_playing nicely hides the now playing status but the console starts spitting out:
    Conky: MPD error: timeout in attempting to get a response from "myserver" on port 6600
    every couple of seconds. does anyone have an idea how to avoid this? can conky check for the presence of a host instead of a running mpd? i already have set out_to_stderr to 'no', which doesn't seem to help. out_to_console is set to 'yes', since i am piping through to dzen2.

    litemotiv wrote:
    conky has an if_mpd_playing function these days, which is nice to not display unecessary "null" playing messages. in my case however, the availability of mpd depends on the wireless network i'm connected to. so when i'm at work where i don't have mpd, if_mpd_playing nicely hides the now playing status but the console starts spitting out:
    Conky: MPD error: timeout in attempting to get a response from "myserver" on port 6600
    every couple of seconds. does anyone have an idea how to avoid this? can conky check for the presence of a host instead of a running mpd? i already have set out_to_stderr to 'no', which doesn't seem to help. out_to_console is set to 'yes', since i am piping through to dzn2.
    Hi sorry to drag this thread up... did you solve this?
    My conky script with mpd stuff works ..and quite well I might add but only if i'm connected to a wireless network otherwise I get Conky: MPD error: unknown server 'localhost' blah blah
    I tried disabling IPv6 and still doesn't connect and wicd refuses to play so I re-enabled it
    should add both mpc and sonata can see/connect to it fine without the wireless!?
    Any other suggestions?
    Update:
    After a lot of dead ends i managed to solve this.
    For reasons I don't understand an ip address has to be assigned to either wlan0 or eth0 for conky to connect to mpd? so I added this to my rc.conf
    eth0_0="eth0:0 127.0.1.1 netmask 255.0.0.0 broadcast 127.0.1.255"
    INTERFACES(eth0 eth0_0)
    my conky script is now up and running without have to connect to the tinterweb yay
    Last edited by RockAardvark (2010-03-24 23:29:07)

  • Long time Gentoo user on the fence...

    So, Gentoo's kind of fallen off the wagon. I don't have any problems with the compile times -- but I do have issues with compiling. I love portage, I love ebuilds, I love useflags. But it's all gotten so horribly broken lately that I'm strongly considering switching to a binary distro next time I reformat. I'm sick of dealing with arcane gcc errors that I can't trace back to anything or bizarre blocks and dependency breakage.
    I keep hearing, "well, if you like Gentoo's customability but you're sick of screwing with compiles, then switch to Arch."
    I want to know if they're right. I would like to give Arch a shot.
    But binary distros and me tend to not agree much of the time. It's not so much that their binary based -- I have no issues with binaries. I just don't like their methodology of "since you're using a binary distro, you must be a recent Windows convert and want the computer to hold your hand.". So I need to know some things from some users with first-hand experience.
    - Pacman & package selection: better than apt (please god say yes)? No dependency hell? Is it easy to switch to testing/unstable versions and back? Can I compile select things if I so choose? Is package selection as good as with Portage? Can I find smaller apps and libraries that are useful in a niche in the Pacman reps easily? (like Nitrogen, tint2, pypanel, etc.). It'd be REALLY annoying to have to hunt down 500 tar.gz and compile stuff -- it'd be like using Gentoo without Portage.
    - Kernel selection: Good selections for laptops or certain builds of computers (i.e AMD or Intel?), as opposed to a huge 120 MB kernel with every option enabled? Possibility of easily foregoing Pacman and letting people compile their own (i.e zen-sources, mm-patchset based kernels, etc.)?
    - Sensible defaults: None of this "you're forced to use Gnome with an ugly default themeset and you can't uninstall it" Ubuntu crap, I do hope. If I wanna use Openbox and KDM, I use Openbox and KDM.
    - Sensible core config file locations: This one is a big one for me. For Gentoo, all of the system config files/init scripts were easy to find (/etc/conf.d and /etc/init.d). I used Ubuntu for a while and the damn things were strewn all over the place (stuff like /etc/local/user/net/config/heresanotherdirforsomereason/symlinktohell/config makes me cry).
    - Hands-on-edness: I want to use bash. I want to get in and get a little bit dirty. I don't want GUI-based Windows-esque nonsense ALL of the time. This is my primary complaint for Ubuntu: it shields you for everything, so that you spend more time undoing it's "ease of use" automatic crap than you do actually using the system. I can forgo all of this if it's in Arch at all, right?
    I realize I'm being a bit preening and overbearing, but I just want something that doesn't break every 3rd package due to compile errors, but still offers a bit of leeway for experienced Linux users instead of this "let's make Linux more like Windows" idea that seems to be ever-so-pervasive in distros today. I really hope Arch can do this.

    mm23 wrote:.- Pacman & package selection: better than apt (please god say yes)? No dependency hell? Is it easy to switch to testing/unstable versions and back? Can I compile select things if I so choose? Is package selection as good as with Portage? Can I find smaller apps and libraries that are useful in a niche in the Pacman reps easily? (like Nitrogen, tint2, pypanel, etc.). It'd be REALLY annoying to have to hunt down 500 tar.gz and compile stuff -- it'd be like using Gentoo without Portage.
    It is better than apt. Dependency hell is a lot less painful then apt.
    You can't easily switch to testing and back, but Arch Testing and Gentoo/Debian Testing are very different. Currently all that's in Arch's Testing (besides all the Xorg 7.4 packages) is like really new versions of stuff that's a bit too unstable to go into Core/Extra so unless you want to help test stuff, or really want Xorg 7.4, there's no real reason to run Arch's Testing branch.
    You can easily compile stuff if you choose with the abs (think of it like FreeBSD's ports tree).
    I'd say with the AUR, package selection is better than in Portage, without the AUR, not so much...and yes, all those small things you mentioned...I know for a fact they're either in the AUR, Extra or Community.
    mm23 wrote:- Kernel selection: Good selections for laptops or certain builds of computers (i.e AMD or Intel?), as opposed to a huge 120 MB kernel with every option enabled? Possibility of easily foregoing Pacman and letting people compile their own (i.e zen-sources, mm-patchset based kernels, etc.)?
    The default kernel is VERY small, but it has most of the stuff you'd want enabled, however, there are plenty of extra kernels in the AUR. I believe Zen is in there, the latest 2.6.28 RC is in there and i think mm is in there among others.
    mm23 wrote:- Sensible defaults: None of this "you're forced to use Gnome with an ugly default themeset and you can't uninstall it" Ubuntu crap, I do hope. If I wanna use Openbox and KDM, I use Openbox and KDM.
    Everything is configurable and nothing is set unless you explicitly set it for the most part.
    mm23 wrote:- Sensible core config file locations: This one is a big one for me. For Gentoo, all of the system config files/init scripts were easy to find (/etc/conf.d and /etc/init.d). I used Ubuntu for a while and the damn things were strewn all over the place (stuff like /etc/local/user/net/config/heresanotherdirforsomereason/symlinktohell/config makes me cry).
    Most config files are in /etc or a subdirectory of /etc (usually only one layer down) and all init scripts are in /etc/rc.d
    mm23 wrote:- Hands-on-edness: I want to use bash. I want to get in and get a little bit dirty. I don't want GUI-based Windows-esque nonsense ALL of the time. This is my primary complaint for Ubuntu: it shields you for everything, so that you spend more time undoing it's "ease of use" automatic crap than you do actually using the system. I can forgo all of this if it's in Arch at all, right?
    Everything is manual. I'd consider Arch (in this case) a cross between Gentoo and Debian
    mm23 wrote:I realize I'm being a bit preening and overbearing, but I just want something that doesn't break every 3rd package due to compile errors, but still offers a bit of leeway for experienced Linux users instead of this "let's make Linux more like Windows" idea that seems to be ever-so-pervasive in distros today. I really hope Arch can do this.
    Just a suggestion, you should really Just Try Arch and browse the AUR and do some package searches. You'd probably have found all the answers to these questions yourself if you did that (mind you, i'm not complaining).

  • Dependency objects not updated in MPD structure browser

    Dear All,
    In the structure browser, the dependency objects are not getting displayed in MPD transaction.
    What could be the reason?
    Please let me know
    Regards
    Ravi

    Hi Ravi,
    Please check the settings in TA DC10.
    Regards,
    Vandana Rao

  • Mpd missing dependency (jack)

    I tried to report this, but the bugtracker was too intimidating for a newb like me.
    Anyways, after a clean mpd installation,
    [root@powerhouse ~]$ /etc/rc.d/mpd create-db
    fails with:
    /usr/bin/mpd:error while loading shared libraries: libjack.so.0: cannot open shared object file: No such file or directory
    But after installing jack-audio-connection-kit, the operation finishes successfully.

    If you guys really want to help, then *do* register on the bugtracker and report it. Be a part of this community. Contribute.
    There isn't a single dev that will check the forums looking for bugs; that's not how they get solved.

  • [SOLVED] unable to play mp3 or flac files in mpd, .dts files play fine

    I had a perfect running mpd setup before I tried to fiddle around with some dependancies to get xbmc-svn to compile without errors. I installed some AUR packages (ffmpeg-svn, x264-git, libva-sds, libvpx, libid3tag).
    After that I started to experience trouble with mpd, it start fine and says it plays audio files just fine but whenever i play a mp3 or flac file the progress bar just looks like it's playing the file but I hear no sound. Whenever I play a .dts file i hear the sound correct.
    I'm very curious to why this happends.
    I rolled back the packages mentioned above but the issue remains unsolved.
    My setup: pc is connected to receiver by hdmi cable using the latest alsa version with digital passthrough over hdmi, currently using mpd-git from AUR
    mpd -v --no-daemon shows the following:
    # mpd -v --no-daemon /etc/mpd.conf
    config: loading file /etc/mpd.conf
    listen: binding to address for 192.168.1.3
    listen: binding to socket address 192.168.1.3:6600
    path: path_set_fs_charset: fs charset is: UTF-8
    database: reading DB
    disabling the last.fm playlist plugin because account is not configured
    daemon: opening pid file
    daemon: writing pid file
    snippet from mpd.log:
    Jun 28 00:54 : client: [0] process command "playlistfind filename "Lossy - Tagged and Sorted/Wild Oats/WO-0001 - Kyle Hall - Worx Of Art EP 1 - 2008/Kyle Hall - 01 - Fuse N Me .mp3""
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : client: [0] process command "addid "Lossy - Tagged and Sorted/Wild Oats/WO-0001 - Kyle Hall - Worx Of Art EP 1 - 2008/Kyle Hall - 01 - Fuse N Me .mp3""
    Jun 28 00:54 : add to playlist: Lossy - Tagged and Sorted/Wild Oats/WO-0001 - Kyle Hall - Worx Of Art EP 1 - 2008/Kyle Hall - 01 - Fuse N Me .mp3
    Jun 28 00:54 : database: get song: Lossy - Tagged and Sorted/Wild Oats/WO-0001 - Kyle Hall - Worx Of Art EP 1 - 2008/Kyle Hall - 01 - Fuse N Me .mp3
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : client: [0] process command "playid "7""
    Jun 28 00:54 : playlist: play 7:"Lossy - Tagged and Sorted/Wild Oats/WO-0001 - Kyle Hall - Worx Of Art EP 1 - 2008/Kyle Hall - 01 - Fuse N Me .mp3"
    Jun 28 00:54 : decoder_thread: clearing mixramp tags
    Jun 28 00:54 : decoder_control: mixramp_start = NULL
    Jun 28 00:54 : decoder_control: mixramp_prev_end = NULL
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : client: [0] process command "status"
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : client: [0] process command "idle"
    Jun 28 00:54 : client: [0] command returned 1
    Jun 28 00:54 : client: [0] process command "playlistid "7""
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : mad: detected LAME version 3.97 ("LAME3.97 ")
    Jun 28 00:54 : mad: LAME peak found: 0.000000
    Jun 28 00:54 : mad: LAME track gain found: -5.000000
    Jun 28 00:54 : mad: encoder delay is 576, encoder padding is 1818
    Jun 28 00:54 : decoder: audio_format=44100:24:2, seekable=true
    Jun 28 00:54 : alsa: default period_time = buffer_time/4 = 185759/4 = 46439
    Jun 28 00:54 : client: [0] process command "plchangesposid "2""
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : alsa: buffer_size=8192 period_size=2048
    Jun 28 00:54 : output: opened plugin=alsa name="My ALSA Device" audio_format=44100:32:2
    Jun 28 00:54 : output: converting from 44100:24:2
    Jun 28 00:54 : Failed to open mixer for 'My ALSA Device': no such mixer control: PCM
    mpd.conf:
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    # Files and directories #######################################################
    # This setting controls the top directory which MPD will search to discover the
    # available audio files and add them to the daemon's online database. This
    # setting defaults to the XDG directory, otherwise the music directory will be
    # be disabled and audio files will only be accepted over ipc socket (using
    # file:// protocol) or streaming files over an accepted protocol.
    music_directory "/media/media9/Muziek/"
    # This setting sets the MPD internal playlist directory. The purpose of this
    # directory is storage for playlists created by MPD. The server will use
    # playlist files not created by the server but only if they are in the MPD
    # format. This setting defaults to playlist saving being disabled.
    playlist_directory "/var/lib/mpd/playlists"
    # This setting sets the location of the MPD database. This file is used to
    # load the database at server start up and store the database while the
    # server is not up. This setting defaults to disabled which will allow
    # MPD to accept files over ipc socket (using file:// protocol) or streaming
    # files over an accepted protocol.
    db_file "/var/lib/mpd/mpd.db"
    # These settings are the locations for the daemon log files for the daemon.
    # These logs are great for troubleshooting, depending on your log_level
    # settings.
    # The special value "syslog" makes MPD use the local syslog daemon. This
    # setting defaults to logging to syslog, otherwise logging is disabled.
    log_file "/var/log/mpd/mpd.log"
    # This setting sets the location of the file which stores the process ID
    # for use of mpd --kill and some init scripts. This setting is disabled by
    # default and the pid file will not be stored.
    pid_file "/var/run/mpd/mpd.pid"
    # This setting sets the location of the file which contains information about
    # most variables to get MPD back into the same general shape it was in before
    # it was brought down. This setting is disabled by default and the server
    # state will be reset on server start up.
    state_file "/var/lib/mpd/mpdstate"
    # The location of the sticker database. This is a database which
    # manages dynamic information attached to songs.
    #sticker_file "~/.mpd/sticker.sql"
    # General music daemon options ################################################
    # This setting specifies the user that MPD will run as. MPD should never run as
    # root and you may use this setting to make MPD change its user ID after
    # initialization. This setting is disabled by default and MPD is run as the
    # current user.
    user "mpd"
    # This setting specifies the group that MPD will run as. If not specified
    # primary group of user specified with "user" setting will be used (if set).
    # This is useful if MPD needs to be a member of group such as "audio" to
    # have permission to use sound card.
    #group "nogroup"
    # This setting sets the address for the daemon to listen on. Careful attention
    # should be paid if this is assigned to anything other then the default, any.
    # This setting can deny access to control of the daemon.
    # For network
    bind_to_address "192.168.1.3"
    # And for Unix Socket
    #bind_to_address "~/.mpd/socket"
    # This setting is the TCP port that is desired for the daemon to get assigned
    # to.
    port "6600"
    # This setting controls the type of information which is logged. Available
    # setting arguments are "default", "secure" or "verbose". The "verbose" setting
    # argument is recommended for troubleshooting, though can quickly stretch
    # available resources on limited hardware storage.
    log_level "verbose"
    # If you have a problem with your MP3s ending abruptly it is recommended that
    # you set this argument to "no" to attempt to fix the problem. If this solves
    # the problem, it is highly recommended to fix the MP3 files with vbrfix
    # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point gapless MP3 playback can be enabled.
    #gapless_mp3_playback "yes"
    # This setting enables MPD to create playlists in a format usable by other
    # music players.
    #save_absolute_paths_in_playlists "no"
    # This setting defines a list of tag types that will be extracted during the
    # audio file discovery process. Optionally, 'comment' can be added to this
    # list.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # This setting enables automatic update of MPD's database when files in
    # #music_directory "path_to_your_music_collection"
    auto_update "yes"
    # Limit the depth of the directories being watched, 0 means only watch
    # the music directory itself. There is no limit by default.
    #auto_update_depth "3"
    # Symbolic link behavior ######################################################
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links outside of the configured #music_directory "path_to_your_music_collection"
    #follow_outside_symlinks "yes"
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links inside of the configured #music_directory "path_to_your_music_collection"
    #follow_inside_symlinks "yes"
    # Zeroconf / Avahi Service Discovery ##########################################
    # If this setting is set to "yes", service information will be published with
    # Zeroconf / Avahi.
    #zeroconf_enabled "yes"
    # The argument to this setting will be the Zeroconf / Avahi unique name for
    # this MPD server on the network.
    #zeroconf_name "Music Player"
    # Permissions #################################################################
    # If this setting is set, MPD will require password authorization. The password
    # can setting can be specified multiple times for different password profiles.
    #password "password@read,add,control,admin"
    # This setting specifies the permissions a user has who has not yet logged in.
    #default_permissions "read,add,control,admin"
    # Input #######################################################################
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    # Audio Output ################################################################
    # MPD supports various audio output types, as well as playing through multiple
    # audio outputs at the same time, through multiple audio_output settings
    # blocks. Setting this block is optional, though the server will only attempt
    # autodetection for one sound card.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
    # other audio outputs.
    # An example of an ALSA output:
    audio_output {
    type "alsa"
    name "My ALSA Device"
    device "hw:0,3" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "default" # optional
    ## mixer_control "Master" # optional
    ## mixer_index "0" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "/dev/mixer" # optional
    ## mixer_control "PCM" # optional
    # An example of a shout output (for streaming to 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
    ## genre "jazz" # optional
    ## public "no" # optional
    ## timeout "2" # optional
    ## mixer_type "software" # optional
    # An example of a 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" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # An example of a httpd output (built-in HTTP streaming server):
    #audio_output {
    # type "httpd"
    # name "My HTTP Stream"
    # encoder "vorbis" # optional, vorbis or lame
    # port "8000"
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # max_clients "0" # optional 0=no limit
    # An example of a pulseaudio output (streaming to a remote pulseaudio server)
    #audio_output {
    # type "pulse"
    # name "My Pulse Output"
    ## server "remote_server" # optional
    ## sink "remote_server_sink" # optional
    ## Example "pipe" output:
    #audio_output {
    # type "pipe"
    # name "my pipe"
    # command "aplay -f cd 2>/dev/null"
    ## Or if you're want to use AudioCompress
    # command "AudioCompress -m | aplay -f cd 2>/dev/null"
    ## Or to send raw PCM stream through PCM:
    # command "nc example.org 8765"
    # format "44100:16:2"
    ## An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # mixer_type "none" # optional
    # This setting will change all decoded audio to be converted to the specified
    # format before being passed to the audio outputs. By default, this setting is
    # disabled.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this setting specifies
    # the sample rate converter to use. Possible values can be found in the
    # mpd.conf man page or the libsamplerate documentation. By default, this is
    # setting is disabled.
    #samplerate_converter "Fastest Sinc Interpolator"
    # Normalization automatic volume adjustments ##################################
    # This setting specifies the type of ReplayGain to use. This setting can have
    # the argument "off", "album" or "track". See <http://www.replaygain.org>
    # for more details. This setting is off by default.
    #replaygain "album"
    # This setting sets the pre-amp used for files that have ReplayGain tags. By
    # default this setting is disabled.
    #replaygain_preamp "0"
    # This setting enables on-the-fly normalization volume adjustment. This will
    # result in the volume of all playing audio to be adjusted so the output has
    # equal "loudness". This setting is disabled by default.
    #volume_normalization "no"
    # MPD Internal Buffering ######################################################
    # This setting adjusts the size of internal decoded audio buffering. Changing
    # this may have undesired effects. Don't change this if you don't know what you
    # are doing.
    #audio_buffer_size "2048"
    # This setting controls the percentage of the buffer which is filled before
    # beginning to play. Increasing this reduces the chance of audio file skipping,
    # at the cost of increased time prior to audio playback.
    #buffer_before_play "10%"
    # Resource Limitations ########################################################
    # These settings are various limitations to prevent MPD from using too many
    # resources. Generally, these settings should be minimized to prevent security
    # risks, depending on the operating resources.
    #connection_timeout "60"
    #max_connections "10"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    # Character Encoding ##########################################################
    # If file or directory names do not display correctly for your locale then you
    # may need to modify this setting.
    #filesystem_charset "UTF-8"
    # This setting controls the encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    # SIDPlay decoder #############################################################
    # songlength_database:
    # Location of your songlengths file, as distributed with the HVSC.
    # The sidplay plugin checks this for matching MD5 fingerprints.
    # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
    # default_songlength:
    # This is the default playing time in seconds for songs not in the
    # songlength database, or in case you're not using a database.
    # A value of 0 means play indefinitely.
    # filter:
    # Turns the SID filter emulation on or off.
    #decoder {
    # plugin "sidplay"
    # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
    # default_songlength "120"
    # filter "true"
    Whenever I run xbmc using the hdmi digital output it just plays mp3 and flac files without problems.
    Anyone any clues on how to solve this issue?
    TIA, dafart
    Since
    Last edited by dafart (2010-07-01 00:38:09)

    aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    Which correspondents fine with the
    device "hw:0,3"
    in my mpd.conf alsa section.
    Also sound worked fine withh this config before I started installing ffmpeg-svn and alikes
    hokasch:
    I tried changing the mixer to "Master" but that did not change much.

  • Mpd - Failed to open mixer for 'My ALSA Device': no such mixer control

    this message is always on start mpd in mpd.log ... after several hours playing mpd crashes (sound is scratching, after stop/pausing or next/previous track is sound again ok)
    I have Xonar D1 music card
    my mpd.conf
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    # Files and directories #######################################################
    # This setting controls the top directory which MPD will search to discover the
    # available audio files and add them to the daemon's online database. This
    # setting defaults to the XDG directory, otherwise the music directory will be
    # be disabled and audio files will only be accepted over ipc socket (using
    # file:// protocol) or streaming files over an accepted protocol.
    music_directory "/mnt/hc/music"
    # This setting sets the MPD internal playlist directory. The purpose of this
    # directory is storage for playlists created by MPD. The server will use
    # playlist files not created by the server but only if they are in the MPD
    # format. This setting defaults to playlist saving being disabled.
    playlist_directory "/home/hc/.mpd/playlists"
    # This setting sets the location of the MPD database. This file is used to
    # load the database at server start up and store the database while the
    # server is not up. This setting defaults to disabled which will allow
    # MPD to accept files over ipc socket (using file:// protocol) or streaming
    # files over an accepted protocol.
    db_file "/home/hc/.mpd/mpd.db"
    # These settings are the locations for the daemon log files for the daemon.
    # These logs are great for troubleshooting, depending on your log_level
    # settings.
    # The special value "syslog" makes MPD use the local syslog daemon. This
    # setting defaults to logging to syslog, otherwise logging is disabled.
    log_file "/home/hc/.mpd/mpd.log"
    # This setting sets the location of the file which stores the process ID
    # for use of mpd --kill and some init scripts. This setting is disabled by
    # default and the pid file will not be stored.
    pid_file "/home/hc/.mpd/mpd.pid"
    # This setting sets the location of the file which contains information about
    # most variables to get MPD back into the same general shape it was in before
    # it was brought down. This setting is disabled by default and the server
    # state will be reset on server start up.
    state_file "/home/hc/.mpd/mpdstate"
    # The location of the sticker database. This is a database which
    # manages dynamic information attached to songs.
    #sticker_file "~/.mpd/sticker.sql"
    # General music daemon options ################################################
    # This setting specifies the user that MPD will run as. MPD should never run as
    # root and you may use this setting to make MPD change its user ID after
    # initialization. This setting is disabled by default and MPD is run as the
    # current user.
    #user "hc"
    # This setting specifies the group that MPD will run as. If not specified
    # primary group of user specified with "user" setting will be used (if set).
    # This is useful if MPD needs to be a member of group such as "audio" to
    # have permission to use sound card.
    #group "audio"
    # This setting sets the address for the daemon to listen on. Careful attention
    # should be paid if this is assigned to anything other then the default, any.
    # This setting can deny access to control of the daemon.
    # For network
    bind_to_address "localhost"
    # And for Unix Socket
    #bind_to_address "~/.mpd/socket"
    # This setting is the TCP port that is desired for the daemon to get assigned
    # to.
    port "6600"
    # This setting controls the type of information which is logged. Available
    # setting arguments are "default", "secure" or "verbose". The "verbose" setting
    # argument is recommended for troubleshooting, though can quickly stretch
    # available resources on limited hardware storage.
    #log_level "default"
    # If you have a problem with your MP3s ending abruptly it is recommended that
    # you set this argument to "no" to attempt to fix the problem. If this solves
    # the problem, it is highly recommended to fix the MP3 files with vbrfix
    # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point gapless MP3 playback can be enabled.
    #gapless_mp3_playback "yes"
    # This setting enables MPD to create playlists in a format usable by other
    # music players.
    #save_absolute_paths_in_playlists "no"
    # This setting defines a list of tag types that will be extracted during the
    # audio file discovery process. Optionally, 'comment' can be added to this
    # list.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # This setting enables automatic update of MPD's database when files in
    # music_directory are changed.
    #auto_update "yes"
    # Limit the depth of the directories being watched, 0 means only watch
    # the music directory itself. There is no limit by default.
    #auto_update_depth "3"
    # Symbolic link behavior ######################################################
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links outside of the configured music_directory.
    #follow_outside_symlinks "yes"
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links inside of the configured music_directory.
    #follow_inside_symlinks "yes"
    # Zeroconf / Avahi Service Discovery ##########################################
    # If this setting is set to "yes", service information will be published with
    # Zeroconf / Avahi.
    #zeroconf_enabled "yes"
    # The argument to this setting will be the Zeroconf / Avahi unique name for
    # this MPD server on the network.
    #zeroconf_name "Music Player"
    # Permissions #################################################################
    # If this setting is set, MPD will require password authorization. The password
    # can setting can be specified multiple times for different password profiles.
    #password "password@read,add,control,admin"
    # This setting specifies the permissions a user has who has not yet logged in.
    #default_permissions "read,add,control,admin"
    # Input #######################################################################
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    # Audio Output ################################################################
    # MPD supports various audio output types, as well as playing through multiple
    # audio outputs at the same time, through multiple audio_output settings
    # blocks. Setting this block is optional, though the server will only attempt
    # autodetection for one sound card.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
    # other audio outputs.
    # An example of an ALSA output:
    audio_output {
    type "alsa"
    name "My ALSA Device"
    ## device "hw:0,0" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "default" # optional
    ## mixer_control "PCM" # optional
    ## mixer_index "0" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "/dev/mixer" # optional
    ## mixer_control "PCM" # optional
    # An example of a shout output (for streaming to 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
    ## genre "jazz" # optional
    ## public "no" # optional
    ## timeout "2" # optional
    ## mixer_type "software" # optional
    # An example of a 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" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # An example of a 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" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # max_clients "0" # optional 0=no limit
    # An example of a pulseaudio output (streaming to a remote pulseaudio server)
    #audio_output {
    # type "pulse"
    # name "My Pulse Output"
    ## server "remote_server" # optional
    ## sink "remote_server_sink" # optional
    ## Example "pipe" output:
    #audio_output {
    # type "pipe"
    # name "my pipe"
    # command "aplay -f cd 2>/dev/null"
    ## Or if you're want to use AudioCompress
    # command "AudioCompress -m | aplay -f cd 2>/dev/null"
    ## Or to send raw PCM stream through PCM:
    # command "nc example.org 8765"
    # format "44100:16:2"
    ## An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # mixer_type "none" # optional
    # This setting will change all decoded audio to be converted to the specified
    # format before being passed to the audio outputs. By default, this setting is
    # disabled.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this setting specifies
    # the sample rate converter to use. Possible values can be found in the
    # mpd.conf man page or the libsamplerate documentation. By default, this is
    # setting is disabled.
    #samplerate_converter "Fastest Sinc Interpolator"
    # Normalization automatic volume adjustments ##################################
    # This setting specifies the type of ReplayGain to use. This setting can have
    # the argument "off", "album" or "track". See <http://www.replaygain.org>
    # for more details. This setting is off by default.
    #replaygain "album"
    # This setting sets the pre-amp used for files that have ReplayGain tags. By
    # default this setting is disabled.
    #replaygain_preamp "0"
    # This setting enables on-the-fly normalization volume adjustment. This will
    # result in the volume of all playing audio to be adjusted so the output has
    # equal "loudness". This setting is disabled by default.
    #volume_normalization "yes"
    # MPD Internal Buffering ######################################################
    # This setting adjusts the size of internal decoded audio buffering. Changing
    # this may have undesired effects. Don't change this if you don't know what you
    # are doing.
    #audio_buffer_size "2048"
    # This setting controls the percentage of the buffer which is filled before
    # beginning to play. Increasing this reduces the chance of audio file skipping,
    # at the cost of increased time prior to audio playback.
    #buffer_before_play "10%"
    # Resource Limitations ########################################################
    # These settings are various limitations to prevent MPD from using too many
    # resources. Generally, these settings should be minimized to prevent security
    # risks, depending on the operating resources.
    #connection_timeout "60"
    #max_connections "10"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    # Character Encoding ##########################################################
    # If file or directory names do not display correctly for your locale then you
    # may need to modify this setting.
    #filesystem_charset "UTF-8"
    # This setting controls the encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    # SIDPlay decoder #############################################################
    # songlength_database:
    # Location of your songlengths file, as distributed with the HVSC.
    # The sidplay plugin checks this for matching MD5 fingerprints.
    # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
    # default_songlength:
    # This is the default playing time in seconds for songs not in the
    # songlength database, or in case you're not using a database.
    # A value of 0 means play indefinitely.
    # filter:
    # Turns the SID filter emulation on or off.
    #decoder {
    # plugin "sidplay"
    # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
    # default_songlength "120"
    # filter "true"
    Last edited by xhc (2012-05-27 04:47:19)

    aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    Which correspondents fine with the
    device "hw:0,3"
    in my mpd.conf alsa section.
    Also sound worked fine withh this config before I started installing ffmpeg-svn and alikes
    hokasch:
    I tried changing the mixer to "Master" but that did not change much.

  • [SOLVED] Mpd and sonata doesn't seem to work

    Hi guys!
    I 'm facing with an issue . I can't seem to configure mpd correctly to run it with sonata .
    I've followed the alternative setup from archwiki and this is my config file .
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    # Files and directories #######################################################
    # This setting controls the top directory which MPD will search to discover the
    # available audio files and add them to the daemon's online database. This
    # setting defaults to the XDG directory, otherwise the music directory will be
    # be disabled and audio files will only be accepted over ipc socket (using
    # file:// protocol) or streaming files over an accepted protocol.
    music_directory "/home/andreas/Downloads/Torrents"
    # This setting sets the MPD internal playlist directory. The purpose of this
    # directory is storage for playlists created by MPD. The server will use
    # playlist files not created by the server but only if they are in the MPD
    # format. This setting defaults to playlist saving being disabled.
    playlist_directory "/home/andreas/.mpd/playlists"
    # This setting sets the location of the MPD database. This file is used to
    # load the database at server start up and store the database while the
    # server is not up. This setting defaults to disabled which will allow
    # MPD to accept files over ipc socket (using file:// protocol) or streaming
    # files over an accepted protocol.
    db_file "/home/andreas/.mpd/mpd.db"
    # These settings are the locations for the daemon log files for the daemon.
    # These logs are great for troubleshooting, depending on your log_level
    # settings.
    # The special value "syslog" makes MPD use the local syslog daemon. This
    # setting defaults to logging to syslog, otherwise logging is disabled.
    log_file "/home/andreas/.mpd/mpd.log"
    # This setting sets the location of the file which stores the process ID
    # for use of mpd --kill and some init scripts. This setting is disabled by
    # default and the pid file will not be stored.
    pid_file "/home/andreas/.mpd/mpd.pid"
    # This setting sets the location of the file which contains information about
    # most variables to get MPD back into the same general shape it was in before
    # it was brought down. This setting is disabled by default and the server
    # state will be reset on server start up.
    state_file "/home/andreas/.mpd/mpdstate"
    # General music daemon options ################################################
    # This setting specifies the user that MPD will run as. MPD should never run as
    # root and you may use this setting to make MPD change its user ID after
    # initialization. This setting is disabled by default and MPD is run as the
    # current user.
    user "andreas"
    # This setting sets the address for the daemon to listen on. Careful attention
    # should be paid if this is assigned to anything other then the default, any.
    # This setting can deny access to control of the daemon.
    # For network
    #bind_to_address "any"
    # And for Unix Socket
    #bind_to_address "~/.mpd/socket"
    # This setting is the TCP port that is desired for the daemon to get assigned
    # to.
    #port "6600"
    # This setting controls the type of information which is logged. Available
    # setting arguments are "default", "secure" or "verbose". The "verbose" setting
    # argument is recommended for troubleshooting, though can quickly stretch
    # available resources on limited hardware storage.
    #log_level "default"
    # If you have a problem with your MP3s ending abruptly it is recommended that
    # you set this argument to "no" to attempt to fix the problem. If this solves
    # the problem, it is highly recommended to fix the MP3 files with vbrfix
    # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point gapless MP3 playback can be enabled.
    #gapless_mp3_playback "yes"
    # This setting enables MPD to create playlists in a format usable by other
    # music players.
    #save_absolute_paths_in_playlists "no"
    # This setting defines a list of tag types that will be extracted during the
    # audio file discovery process. Optionally, 'comment' can be added to this
    # list.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # Symbolic link behavior ######################################################
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links outside of the configured music_directory.
    #follow_outside_symlinks "yes"
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links inside of the configured music_directory.
    #follow_inside_symlinks "yes"
    # Zeroconf / Avahi Service Discovery ##########################################
    # If this setting is set to "yes", service information will be published with
    # Zeroconf / Avahi.
    #zeroconf_enabled "yes"
    # The argument to this setting will be the Zeroconf / Avahi unique name for
    # this MPD server on the network.
    #zeroconf_name "Music Player"
    # Permissions #################################################################
    # If this setting is set, MPD will require password authorization. The password
    # can setting can be specified multiple times for different password profiles.
    #password "password@read,add,control,admin"
    # This setting specifies the permissions a user has who has not yet logged in.
    #default_permissions "read,add,control,admin"
    # Input #######################################################################
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    # Audio Output ################################################################
    # MPD supports various audio output types, as well as playing through multiple
    # audio outputs at the same time, through multiple audio_output settings
    # blocks. Setting this block is optional, though the server will only attempt
    # autodetection for one sound card.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
    # other audio outputs.
    # An example of an ALSA output:
    #audio_output {
    # type "alsa"
    # name "My ALSA Device"
    ## device "hw:0,0" # optional
    ## format "44100:16:2" # optional
    ## mixer_device "default" # optional
    ## mixer_control "PCM" # optional
    ## mixer_index "0" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_device "/dev/mixer" # optional
    ## mixer_control "PCM" # optional
    # An example of a shout output (for streaming to 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
    ## genre "jazz" # optional
    ## public "no" # optional
    ## timeout "2" # optional
    # An example of a httpd output (built-in HTTP streaming server):
    #audio_output {
    # type "httpd"
    # name "My HTTP Stream"
    # encoder "vorbis" # optional, vorbis or lame
    # port "8000"
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # An example of a pulseaudio output (streaming to a remote pulseaudio server)
    #audio_output {
    # type "pulse"
    # name "My Pulse Output"
    ## server "remote_server" # optional
    ## sink "remote_server_sink" # optional
    ## Example "pipe" output:
    #audio_output {
    # type "pipe"
    # name "my pipe"
    # command "aplay -f cd 2>/dev/null"
    ## Or if you're want to use AudioCompress
    # command "AudioCompress -m | aplay -f cd 2>/dev/null"
    ## Or to send raw PCM stream through PCM:
    # command "nc example.org 8765"
    # format "44100:16:2"
    ## An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # This setting will change all decoded audio to be converted to the specified
    # format before being passed to the audio outputs. By default, this setting is
    # disabled.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this setting specifies
    # the sample rate converter to use. Possible values can be found in the
    # mpd.conf man page or the libsamplerate documentation. By default, this is
    # setting is disabled.
    #samplerate_converter "Fastest Sinc Interpolator"
    # Volume control mixer ########################################################
    # These are the global volume control settings. By default, this setting will
    # be detected to the available audio output device, with preference going to
    # hardware mixing. Hardware and software mixers for individual audio_output
    # sections cannot yet be mixed.
    # An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
    # setting is used other sound applications will be affected by the volume
    # being controlled by MPD.
    #mixer_type "hardware"
    # An example for controlling all mixers through software. This will control
    # all controls, even if the mixer is not supported by the device and will not
    # affect any other sound producing applications.
    #mixer_type "software"
    # This example will not allow MPD to touch the mixer at all and will disable
    # all volume controls.
    #mixer_type "disabled"
    # Normalization automatic volume adjustments ##################################
    # This setting specifies the type of ReplayGain to use. This setting can have
    # the argument "album" or "track". See <http://www.replaygain.org> for more
    # details. This setting is disabled by default.
    #replaygain "album"
    # This setting sets the pre-amp used for files that have ReplayGain tags. By
    # default this setting is disabled.
    #replaygain_preamp "0"
    # This setting enables on-the-fly normalization volume adjustment. This will
    # result in the volume of all playing audio to be adjusted so the output has
    # equal "loudness". This setting is disabled by default.
    #volume_normalization "no"
    # MPD Internal Buffering ######################################################
    # This setting adjusts the size of internal decoded audio buffering. Changing
    # this may have undesired effects. Don't change this if you don't know what you
    # are doing.
    #audio_buffer_size "2048"
    # This setting controls the percentage of the buffer which is filled before
    # beginning to play. Increasing this reduces the chance of audio file skipping,
    # at the cost of increased time prior to audio playback.
    #buffer_before_play "10%"
    # Resource Limitations ########################################################
    # These settings are various limitations to prevent MPD from using too many
    # resources. Generally, these settings should be minimized to prevent security
    # risks, depending on the operating resources.
    #connection_timeout "60"
    #max_connections "10"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    # Character Encoding ##########################################################
    # If file or directory names do not display correctly for your locale then you
    # may need to modify this setting. After modification of this setting mpd
    # --create-db must be run to change the database.
    #filesystem_charset "UTF-8"
    # This setting controls the encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    All the files required are in my /home/andreas/.mpd/ directory
    config
    mpd.db
    mpd.error
    mpd.log
    mpd.pid
    mpdstate
    playlists
    I've also added to my .xinitrc file
    mpd /home/andreas/.mpd/config
    I 'm sure i've done something wrong but don't know what it is . If anyone could help me out i would be grateful
    THanks a for all your help!
    Last edited by shak (2010-04-19 23:08:09)

    shak wrote:
    I've followed the first method with the mpd daemon and everything worked fine .
    THanks for all your help everyone !
    The add of MPD : ALL to hosts.allow seems to solved it .
    Thanks again!
    Nice.
    Please mark threads as [SOLVED] when they are. You can do so by editing the opening post.

  • [SOLVED]mpd does not detect the music directory

    I recently installed mpd with the gmpc gui, set my "music_directory" in /etc/mpd.conf to the location of all of my music (which contains lots of other folders and subfolders), but there's no listing of the audio files in the database in gmpc.
    Here's the /etc/mpd.conf if that helps:
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    # Files and directories #######################################################
    # This setting controls the top directory which MPD will search to discover the
    # available audio files and add them to the daemon's online database. This
    # setting defaults to the XDG directory, otherwise the music directory will be
    # be disabled and audio files will only be accepted over ipc socket (using
    # file:// protocol) or streaming files over an accepted protocol.
    music_directory "/var/lib/mpd/music"
    # This setting sets the MPD internal playlist directory. The purpose of this
    # directory is storage for playlists created by MPD. The server will use
    # playlist files not created by the server but only if they are in the MPD
    # format. This setting defaults to playlist saving being disabled.
    playlist_directory "/var/lib/mpd/playlists"
    # This setting sets the location of the MPD database. This file is used to
    # load the database at server start up and store the database while the
    # server is not up. This setting defaults to disabled which will allow
    # MPD to accept files over ipc socket (using file:// protocol) or streaming
    # files over an accepted protocol.
    db_file "/var/lib/mpd/mpd.db"
    # These settings are the locations for the daemon log files for the daemon.
    # These logs are great for troubleshooting, depending on your log_level
    # settings.
    # The special value "syslog" makes MPD use the local syslog daemon. This
    # setting defaults to logging to syslog, otherwise logging is disabled.
    log_file "/var/log/mpd/mpd.log"
    # This setting sets the location of the file which stores the process ID
    # for use of mpd --kill and some init scripts. This setting is disabled by
    # default and the pid file will not be stored.
    pid_file "/var/run/mpd/mpd.pid"
    # This setting sets the location of the file which contains information about
    # most variables to get MPD back into the same general shape it was in before
    # it was brought down. This setting is disabled by default and the server
    # state will be reset on server start up.
    state_file "/var/lib/mpd/mpdstate"
    # The location of the sticker database. This is a database which
    # manages dynamic information attached to songs.
    #sticker_file "~/.mpd/sticker.sql"
    # General music daemon options ################################################
    # This setting specifies the user that MPD will run as. MPD should never run as
    # root and you may use this setting to make MPD change its user ID after
    # initialization. This setting is disabled by default and MPD is run as the
    # current user.
    user "mpd"
    # This setting specifies the group that MPD will run as. If not specified
    # primary group of user specified with "user" setting will be used (if set).
    # This is useful if MPD needs to be a member of group such as "audio" to
    # have permission to use sound card.
    #group "nogroup"
    # This setting sets the address for the daemon to listen on. Careful attention
    # should be paid if this is assigned to anything other then the default, any.
    # This setting can deny access to control of the daemon.
    # For network
    #bind_to_address "any"
    # And for Unix Socket
    #bind_to_address "~/.mpd/socket"
    # This setting is the TCP port that is desired for the daemon to get assigned
    # to.
    #port "6600"
    # This setting controls the type of information which is logged. Available
    # setting arguments are "default", "secure" or "verbose". The "verbose" setting
    # argument is recommended for troubleshooting, though can quickly stretch
    # available resources on limited hardware storage.
    #log_level "default"
    # If you have a problem with your MP3s ending abruptly it is recommended that
    # you set this argument to "no" to attempt to fix the problem. If this solves
    # the problem, it is highly recommended to fix the MP3 files with vbrfix
    # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point gapless MP3 playback can be enabled.
    #gapless_mp3_playback "yes"
    # This setting enables MPD to create playlists in a format usable by other
    # music players.
    #save_absolute_paths_in_playlists "no"
    # This setting defines a list of tag types that will be extracted during the
    # audio file discovery process. Optionally, 'comment' can be added to this
    # list.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # This setting enables automatic update of MPD's database when files in
    # music_directory are changed.
    #auto_update "yes"
    # Limit the depth of the directories being watched, 0 means only watch
    # the music directory itself. There is no limit by default.
    #auto_update_depth "3"
    # Symbolic link behavior ######################################################
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links outside of the configured music_directory.
    #follow_outside_symlinks "yes"
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links inside of the configured music_directory.
    #follow_inside_symlinks "yes"
    # Zeroconf / Avahi Service Discovery ##########################################
    # If this setting is set to "yes", service information will be published with
    # Zeroconf / Avahi.
    #zeroconf_enabled "yes"
    # The argument to this setting will be the Zeroconf / Avahi unique name for
    # this MPD server on the network.
    #zeroconf_name "Music Player"
    # Permissions #################################################################
    # If this setting is set, MPD will require password authorization. The password
    # can setting can be specified multiple times for different password profiles.
    #password "password@read,add,control,admin"
    # This setting specifies the permissions a user has who has not yet logged in.
    #default_permissions "read,add,control,admin"
    # Input #######################################################################
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    # Audio Output ################################################################
    # MPD supports various audio output types, as well as playing through multiple
    # audio outputs at the same time, through multiple audio_output settings
    # blocks. Setting this block is optional, though the server will only attempt
    # autodetection for one sound card.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
    # other audio outputs.
    # An example of an ALSA output:
    #audio_output {
    # type "alsa"
    # name "My ALSA Device"
    ## device "hw:0,0" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "default" # optional
    ## mixer_control "PCM" # optional
    ## mixer_index "0" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "/dev/mixer" # optional
    ## mixer_control "PCM" # optional
    # An example of a shout output (for streaming to 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
    ## genre "jazz" # optional
    ## public "no" # optional
    ## timeout "2" # optional
    ## mixer_type "software" # optional
    # An example of a 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" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # An example of a 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" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # max_clients "0" # optional 0=no limit
    # An example of a pulseaudio output (streaming to a remote pulseaudio server)
    audio_output {
    type "pulse"
    name "My Pulse Output"
    server "remote_server" # optional
    sink "remote_server_sink" # optional
    ## Example "pipe" output:
    #audio_output {
    # type "pipe"
    # name "my pipe"
    # command "aplay -f cd 2>/dev/null"
    ## Or if you're want to use AudioCompress
    # command "AudioCompress -m | aplay -f cd 2>/dev/null"
    ## Or to send raw PCM stream through PCM:
    # command "nc example.org 8765"
    # format "44100:16:2"
    ## An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # mixer_type "none" # optional
    # This setting will change all decoded audio to be converted to the specified
    # format before being passed to the audio outputs. By default, this setting is
    # disabled.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this setting specifies
    # the sample rate converter to use. Possible values can be found in the
    # mpd.conf man page or the libsamplerate documentation. By default, this is
    # setting is disabled.
    #samplerate_converter "Fastest Sinc Interpolator"
    # Normalization automatic volume adjustments ##################################
    # This setting specifies the type of ReplayGain to use. This setting can have
    # the argument "off", "album" or "track". See <http://www.replaygain.org>
    # for more details. This setting is off by default.
    #replaygain "album"
    # This setting sets the pre-amp used for files that have ReplayGain tags. By
    # default this setting is disabled.
    #replaygain_preamp "0"
    # This setting enables on-the-fly normalization volume adjustment. This will
    # result in the volume of all playing audio to be adjusted so the output has
    # equal "loudness". This setting is disabled by default.
    #volume_normalization "no"
    # MPD Internal Buffering ######################################################
    # This setting adjusts the size of internal decoded audio buffering. Changing
    # this may have undesired effects. Don't change this if you don't know what you
    # are doing.
    #audio_buffer_size "2048"
    # This setting controls the percentage of the buffer which is filled before
    # beginning to play. Increasing this reduces the chance of audio file skipping,
    # at the cost of increased time prior to audio playback.
    #buffer_before_play "10%"
    # Resource Limitations ########################################################
    # These settings are various limitations to prevent MPD from using too many
    # resources. Generally, these settings should be minimized to prevent security
    # risks, depending on the operating resources.
    #connection_timeout "60"
    #max_connections "10"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    # Character Encoding ##########################################################
    # If file or directory names do not display correctly for your locale then you
    # may need to modify this setting.
    #filesystem_charset "UTF-8"
    # This setting controls the encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    # SIDPlay decoder #############################################################
    # songlength_database:
    # Location of your songlengths file, as distributed with the HVSC.
    # The sidplay plugin checks this for matching MD5 fingerprints.
    # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
    # default_songlength:
    # This is the default playing time in seconds for songs not in the
    # songlength database, or in case you're not using a database.
    # A value of 0 means play indefinitely.
    # filter:
    # Turns the SID filter emulation on or off.
    #decoder {
    # plugin "sidplay"
    # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
    # default_songlength "120"
    # filter "true"
    Last edited by vlad951 (2011-05-07 09:36:11)

    vlad951 wrote:
    Thanks, I successfully launched mpd as a user and it detected all of my music. However, if I launch mpd with the mpd.conf that I created in my home directory, it launches, but outputs the following:
    [vladislav@vladislav .mpd]$ mpd ~/.mpd/mpd.conf
    listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
    Is this normal?
    *sigh* i answer this for the 3rd time in a row... this is no error it just says that binding to your ipv6 interface happened before the binding to ipv4.
    If you want to use your ipv4 interface hardcode it in mpd.conf
    bind_to_address "127.0.0.1"
    you can also have several binds:
    bind_to_address "127.0.0.1"
    bind_to_address "192.168.1.13"
    to make it listen on localhost and the external IP of your network card.
    If your music is on the same machine as your mpd i recommend to use a unix socket in addition.
    bind_to_address "/path/to/some/file/that/does/not/exist/yet"
    and make your client connect to that file instead of the IP. Speeds things up a log e.g. in ncmpcpp
    and btw: you can save your mpd.conf file as ~/.mpdconf and mpd will automatically use it.
    Last edited by Rasi (2011-05-07 08:41:30)

Maybe you are looking for