Mpd and python-mpd problem utf8

Hi,
i've just update the new mpd and python mpd package, so there is a problem with utf8 directory. Now it can not display my covers.
The error :
Exception in thread Thread-28:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/usr/lib/python2.5/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.5/site-packages/sonata/main.py", line 3971, in _artwork_update
imgfound = self.artwork_check_for_local()
File "/usr/lib/python2.5/site-packages/sonata/main.py", line 3993, in artwork_check_for_local
type, filename = self.artwork_get_local_image()
File "/usr/lib/python2.5/site-packages/sonata/main.py", line 4038, in artwork_get_local_image
testfile = img.single_image_in_dir(self.musicdir[self.profile_num] + songpath)
File "/usr/lib/python2.5/site-packages/sonata/img.py", line 62, in single_image_in_dir
dir = gobject.filename_from_utf8(dir)
GError: Séquence d'octets non valide en entrée du convertisseur

I'm having the same output whenever I try to view an artists's albums in the collection and the album title contains non strictly ascii characters (which happens pretty often, as I am not a native english speaker). The problem is that the albums do not appear in the collection ! I can still access them by the filesystem view, but then the songs are sorted alphabetically, not by track number.
This problem appeared with Sonata 1.5.

Similar Messages

  • Mpd and sonata setup problems

    To get sonata working I have followed the instructions in the archlinux wiki [1] and went with the mentioned alternative setup.  I have mpd running in the background, but when I open sonata I get nothing.
    When I launch Sonata from the terminal I get the following output:
      Error grabbing key 173, 0x?????? (some address)
    Thanks for any help.
    1. https://wiki.archlinux.org/index.php/Mpd

    Looks like a port problem, but can be wrong.  First check that nothing goes wrong when you start mpd.
    Also check if Sonata connects to localhost over the correct port and that you have something like: bind_to_address "any" in your mpd configuration.
    If you start mpd as local user then ~/.mpdconf is used, else /etc/mpd.conf is used.

  • [SOLVED] Inkscape and python-numpy problem.

    When I'm trying to use the perspective tool in Inkscape I'm getting this message.
    Inkscape has received additional data from the script executed.  The script did not return an error, but this may indicate the results will not be as expected.
    Failed to import the numpy or numpy.linalg modules. These modules are required by this extension. Please install them and try again. On a Debian-like system this can be done with the command, sudo apt-get install python-numpy.
    I got python-numpy installed, and was asking around in #inkscape, they think it has to do with a wrong path problem with prefix or exec-prefix(?).
    I tried to run Inkscape inside /usr/lib/python3.2/site-packages/numpy, but I'm getting the same message. Also tried to run as root... nothing helped.
    Any idea's?
    Last edited by Math (2011-10-23 04:45:23)

    It turned out to be a python2/python3 version problem. I just had to install python2-numpy to fix this.
    SOLVED!

  • [SOLVED] Problem with MPD and ALSA

    Hello, I'm having problems with mpd using alsa output.
    My alsa system works, I can play mp3 using mplayer -ao alsa, and flash plugin plays sound, my user (and also mpd user)is in the audio group.
    But then mpd can't open the alsa device.
    If I tell mpd to autodetect audio, it can't find anything:
    (Running as root to see output, if using /etc/rc.d/mpd start, it just fails)
    output: No "audio_output" defined in config file
    output: Attempt to detect audio output device
    output: Attempting to detect a alsa audio device
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
    alsa: Error opening default ALSA device: No such file or directory
    output: Attempting to detect a oss audio device
    oss: Error opening OSS device "/dev/dsp": No such file or directory
    oss: Error opening OSS device "/dev/sound/dsp": No such file or directory
    output: Attempting to detect a pulse audio device
    mpd: src/output/pulse_output_plugin.c:400: pulse_output_wait_connection: Assertion `po->mainloop != ((void *)0)' failed.
    and if I set up a basic alsa config...
    audio_output {
    type "alsa"
    name "HDA-Intel"
    It starts, but then playing anything:
    % mpc play
    Caspian - La Cerva
    [paused] #2/10 0:00/4:59 (0%)
    volume: n/a repeat: off random: off single: off consume: off
    ERROR: problems opening audio device
    mpc.log output:
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
    Sep 22 10:08 : output: Failed to open "HDA-Intel" [alsa]: Failed to open ALSA device "default": No such file or directory
    I tried with different device and mixer settings and the error is always the same. It can't open alsa device.
    Any Ideas?
    Thank you.
    Last edited by xzakox (2011-09-22 20:04:33)

    Check that mpd is really being run as the mpd user, and that id lists audio for the mpd user. Also post your whole mpd.conf and the output from amixer when running as the user you run mpd as.
    Last edited by Mr.Elendig (2011-09-22 11:43:35)

  • Mpd and pulse problem - Connection refused [SOLVED]

    I'm having problems getting mpd to play nice with pulse-audio.  Pulse is installed and works with vlc, mplayer, flash, etc. just fine.  When I try to play through mpd the song in the gui simply shows a status of "paused" and the following gets written to the mpd.log. 
    Advice is appreciated.
    # tail -f /var/log/mpd/mpd.log
    Oct 08 11:12 : output: Failed to enable "pulse audio" [pulse]: pa_context_connect() has failed: Connection refused
    Oct 08 11:12 : output: Failed to enable "pulse audio" [pulse]: pa_context_connect() has failed: Connection refused
    Oct 08 11:12 : output: Failed to enable "pulse audio" [pulse]: pa_context_connect() has failed: Connection refused
    Oct 08 11:12 : player_thread: problems opening audio device while playing "Not_So_Hard_Stuff/Disturbed-The Sickness-2000/01_Voices.flac"
    Here is my mpd.conf
    $ sed '/#/d' /etc/mpd.conf
    music_directory "/media/data/all_genres"
    playlist_directory "/var/lib/mpd/playlists"
    db_file "/var/lib/mpd/mpd.db"
    log_file "/var/log/mpd/mpd.log"
    pid_file "/var/run/mpd/mpd.pid"
    state_file "/var/lib/mpd/mpdstate"
    user "mpd"
    gapless_mp3_playback "yes"
    zeroconf_enabled "yes"
    zeroconf_name "Music Player"
    input {
    plugin "curl"
    audio_output {
    type "pulse"
    name "pulse audio"
    mixer_type "software"
    audio_buffer_size "35000"
    buffer_before_play "5%"
    The pulseaudio wiki suggests that a 'pulse' group and 'pulse-access' and even 'pulse-rt' groups may be required?  I have used mpd for a year now with no such groups on my system.
    EDIT: solved in post #13
    Last edited by graysky (2011-10-16 13:42:46)

    graysky wrote:
    I too modified my /etc/mpd.conf to use alsa even though I don't have alsa-utils installed at all.
    $ sed '/#/d' /etc/mpd.conf
    music_directory "/media/data/all_genres"
    playlist_directory "/var/lib/mpd/playlists"
    db_file "/var/lib/mpd/mpd.db"
    log_file "/var/log/mpd/mpd.log"
    pid_file "/var/run/mpd/mpd.pid"
    state_file "/var/lib/mpd/mpdstate"
    user "mpd"
    gapless_mp3_playback "yes"
    zeroconf_enabled "yes"
    zeroconf_name "Music Player"
    input {
    plugin "curl"
    audio_output {
    type "alsa"
    name "My ALSA Device"
    mixer_type "software"
    audio_buffer_size "35000"
    buffer_before_play "5%"
    Doesn't work for me I get this error when I try to play something with your configuration:
    ALSA lib pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection refused
    Oct 16 18:23 : output: Failed to open "My ALSA Device" [alsa]: Failed to open ALSA device "default": Connection refused

  • [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 and sonata issue

    Hi again!
    I've installed mpd and sonata but i don't see my library in sonata .
    This is my /etc/mpd.conf 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"
    # 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 "~/.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"
    # 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 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"
    I've add the mpd daemon in rc.conf and i've chosen my directory /home/andreas/Downloads in sonata .Also i put mpd:ALL to etc/hosts.allow
    Sonata connects fine to the server but i can't see my libary .
    What might be the issue ?
    Thanks again
    Last edited by shak (2010-06-10 11:27:13)

    If you continue to have issues with permissions, the solution i use is to simply run MPD as my normal user, storing all the necessary directories and files under ~/.mpd and just pointing it at the config file I stuck there:
    $ mpd ~/.mpd/config
    No more permissions issues! There's an explanation of this in the wiki.

  • Mpd and libmodplug issue

    When I am doing an mpc --update, mpd constantly segfaults when it tries to add my mod and sid-files.
    mpd[4276]: segfault at 0 ip b7bcfc92 sp b46f6900 error 4 in libmodplug.so.0.0.0[b7b98000+45000]
    Anyone else recognizes this problem?

    If you continue to have issues with permissions, the solution i use is to simply run MPD as my normal user, storing all the necessary directories and files under ~/.mpd and just pointing it at the config file I stuck there:
    $ mpd ~/.mpd/config
    No more permissions issues! There's an explanation of this in the wiki.

  • Mpd and ncmpcpp

    well I installed ncmpcpp, but when ever I try to run it I get this:
    Cannot connect to mpd: problems connecting to "localhost" on port 6600: Connection refused
    I have no clue what mpd was/is, so I installed it.. and ran "mpd"
    unable to bind port 6600: Address already in use
    maybe MPD is still running?
    I am not familiar with mpd so I dont know what to do... I tried searching around but didnt find anything that solved my problem. Thankshave
    Last edited by k0rfain (2008-09-29 10:09:09)

    i re-edited my conf file,
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    ######################## REQUIRED PATHS ########################
    #music_directory "/home/k0rfain/Music"
    #playlist_directory "~/playlists"
    #db_file "~/mpd.db"
    #log_file "~/mpd.log"
    #error_file "~/mpd.error"
    music_directory "/home/k0rfain/Music"
    playlist_directory "~/playlists"
    db_file "~/mpd.db"
    log_file "~/mpd.log"
    error_file "~/mpd.error"
    # Note: ~ is the home directory of user set in the "user" option
    ######################## OPTIONAL PATHS ########################
    # If you wish to use mpd --kill to stop MPD, then you must
    # specify a file here in which to store MPD's process ID.
    pid_file "~/.mpd/mpd.pid"
    pid_file "/var/run/mpd/mpd.pid"
    # If specified, MPD will save its current state (playlist,
    # current song, playing/paused, etc.) at exit. This will be
    # used to restore the session the next time it is run.
    state_file "~/.mpd/mpdstate"
    state_file "/var/lib/mpd/mpdstate"
    ######################## DAEMON OPTIONS ########################
    # If started as root, MPD will drop root privileges and run as
    # this user instead. Otherwise, MPD will run as the user it was
    # started by. If left unspecified, MPD will not drop root
    # privileges at all (not recommended).
    user "k0rfain"
    # The address and port to listen on.
    bind_to_address "127.0.0.1"
    bind_to_address "any"
    port "6600"
    # Controls the amount of information that is logged. Can be
    # "default", "secure", or "verbose".
    #log_level "default"
    ########################## PERMISSIONS #########################
    # MPD can require that users specify a password before using it.
    # You may specify one ore more here, along with what users who
    # log in with that password are allowed to do.
    #password "password@read,add,control,admin"
    # Specifies what permissions a user who has not logged in with a
    # password has. By default, all users have full access to MPD
    # if no password is specified above, or no access if one or
    # more passwords are specified.
    #default_permissions "read,add,control,admin"
    ########################## AUDIO OUTPUT ########################
    # MPD supports many audio output types, as well as playing
    # through multiple audio outputs at the same time. You can
    # specify one or more here. If you don't specify any, MPD will
    # automatically scan for a usable audio output.
    # 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
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    # device "/dev/dsp" # optional
    # format "44100:16:2" # optional
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    # user "source" # optional
    # description "My Stream Description" # optional
    # genre "jazz" # optional
    # public "no" # optional
    # Force all decoded audio to be converted to this format before
    # being passed to the audio outputs.
    #audio_output_format "44100:16:2"
    ############################# MIXER ############################
    # MPD needs to know what mixer settings to change when you
    # adjust the volume. If you don't specify one here, MPD will
    # pick one based on which ones it was compiled with support for.
    # An example for controlling an ALSA mixer:
    #mixer_type "alsa"
    #mixer_device "default"
    #mixer_control "PCM"
    # An example for controlling an OSS mixer:
    #mixer_type "oss"
    #mixer_device "/dev/mixer"
    #mixer_control "PCM"
    # If you want MPD to adjust the volume of audio sent to the
    # audio outputs, you can tell it to use the software mixer:
    #mixer_type "software"
    ######################### NORMALIZATION ########################
    # Specifies the type of ReplayGain to use. Can be "album" or
    # "track". ReplayGain will not be used if not specified. See
    # <http://www.replaygain.org> for more details.
    #replaygain "album"
    # Sets the pre-amp used for files that have ReplayGain tags.
    #replaygain_preamp "0"
    # Enable on the fly volume normalization. This will cause the
    # volume of all songs played to be adjusted so that they sound
    # as though they are of equal loudness.
    #volume_normalization "no"
    ########################### BUFFERING ##########################
    # The size of the buffer containing decoded audio. You probably
    # shouldn't change this.
    #audio_buffer_size "2048"
    # How much of the buffer to fill before beginning to play.
    #buffer_before_play "0%"
    # Similar options for the HTTP stream buffer. If you hear
    # skipping while playing HTTP streams, you may wish to increase
    # these.
    #http_buffer_size "128"
    #http_prebuffer_size "25%"
    ########################### HTTP PROXY #########################
    # Specifies the HTTP proxy to use for playing HTTP streams.
    #http_proxy_host "proxy.isp.com"
    #http_proxy_port "8080"
    #http_proxy_user "user"
    #http_proxy_password "password"
    ############################# LIMITS ###########################
    # These are various limits to prevent MPD from using too many
    # resources. You should only change them if they start
    # restricting your usage of MPD.
    #connection_timeout "60"
    #max_connections "5"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    ###################### CHARACTER ENCODINGS #####################
    # If file or directory names do not display correctly, then you
    # may need to change this. In most cases it should be either
    # "ISO-8859-1" or "UTF-8". You must recreate your database
    # after changing this (use mpd --create-db).
    #filesystem_charset "ISO-8859-1"
    # The encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    ######################### OTHER OPTIONS ########################
    # The metadata types MPD will recognize.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # Enable this if you wish to use your MPD created playlists in
    # other music players.
    #save_absolute_paths_in_playlists "no"
    i also did what kclive18 said, and when i enter /etc/rc.d/mpd start, i get
    :: Starting Music Player Daemon [FAIL]

  • Mpd and pulseaudio

    Hello all,
    I am trying (so far unsuccessfully) to set up mpd with pulseaudio. I enabled mpd.service, mpd is started when I boot up. But as soon as I try playing something back with (g)mpc, I get the well known "problems opening audio device".
    Before anyone asks, both mpd and pulseaudio are running under my own UID. The problem seems to be that mpd does not know how to talk to the session bus that is used by pulseaudio. This makes sense, as mpd is launched before the session bus (which is launched by startx). Therefore, mpd does not know the correct DBUS_SESSION_BUS_ADDRESS and can't connect. Is there anyway to fix this behaviour? I would like to have the possibility to launch a dbus session bus before I launch mpd via systemd in such a way that the value of DBUS_SESSION_BUS_ADDRESS is broadcasted to the other daemons.
    x2b

    [jacob@BlackWater ~]$ mpd
    listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
    this is not actually an error. It just says it bound to your ipv6 interface before it could be bound to ipv4 interface. Define your binding statically in mpd.conf with
    bind_to_address "127.0.0.1"
    daemon: cannot init supplementary groups of user "jacob": Operation not permitted
    you are running mpd as user, altho you should be running it as root
    if you want to run it as user, make sure to remove the user line from mpd.conf
    problems opening audio device
    I can only guess here. You are saying you have pulseaudio. Did you configure the pulseaudio output in mpd.conf?
    if you do so, make sure to comment out the alsa output. If you want to use the alsa output with your pulseaudio server, make sure you have pulseaudio-alsa installed
    Last edited by Rasi (2011-05-04 18:59:49)

  • MPD and flash i conflict

    I have this litle problem with mpd and flash.When i am listening to music from mpd flash dosn`t work.when i have luck just sound isn`t working.
    But if i`m watching videos on youtube or have a chat msg on facebook mpd dosn`t work but after 10 - 15 minutes like nothing happend

    Hi there,
    I am a long time Camino user and today decided I wanted to try Safari again since I ran across a page that Camino didn't show the images on, but Safari did. So I was at Flickr and was looking at stuff a friend had on their account including a short video. But I couldn't play it saying I needed to update Flash. OK so I download and install the Flash plug in. Still no go, but works fine in Camino.
    Anyway, to make a long story short, from another post here someone said to check that you had in the HD>Library>Internet Plug-ins folder these two files: Flash Player.plugin and flashplayer.xpt. Yep, I have those, BUT I also had Flash Player Enabler.plugin with a date code of 2006. So on a whim, I moved it out to my desktop & restarted Safari. Dang if it doesn't work very nicely now.
    So you might check to see if you have the same file lingering around in there that might be causing issues.
    Cheers,
    Patrick

  • MPD and replaygain

    I just started using MPD and would love to get Replaygain working with it. I know how to tag my files with mp3gain and have configured MPD to use replaygain info.  Problem is mp3gain stores replaygain info in APEv2 tags and MPD only supports reading replaygain info from ID3v2 tags.
    Is there a tool I can use to store replaygain info ID3v2 form for my music collection?
    I'm sure there's a simple solution I've just overlooked.
    Last edited by Zer0 (2009-10-28 00:47:44)

    I finally solved my problem: iptables was running on my RPi, and it was blocking the MPD requests... Thanks
    Last edited by nounoursheureux (2015-01-22 06:37:17)

  • [SOLVED] MPD and Mplayer don't play nice

    At the moment, I have to kill the MPD process in order to get MPlayer to play sound, otherwise a 'resource is busy' type message comes up.
    I'm using alsa and using self compiled Mplayer (from svn).
    Any suggestions?
    Last edited by dyscoria (2008-03-03 16:28:34)

    oliwer wrote:
    I had the same problem
    In /etc/mpd.conf, go to the "audio_output" section and comment the lines "device" and "format" (thoses lines are marked as optionnal).
    Now restart mpd, and it will work as any other alsa application.
    Ah worked like a charm! Thanks bud
    *MPD wiki edited*

  • Questions about mpd and sonata ram usage

    Hi again!
    I'm very impressed with mpd and i really love the sonata client with it's cover art , lyrics fetching features .
    I've noticed that mpd uses about 13 mb ram and sonata 16 mb of ram. I have about 6 albums in my library .
    I was just wondering if it is normal for mpd and sonata to use that ram .
    I have enough ram about 1gb so it's not an issue , i'm just curious if this is normal
    Also i've noticed that with mpd and sonata the cpu usage is much lower than with audacious when playing files , but the ram usage with mpd is higher
    Thanks again
    Last edited by shak (2010-06-10 12:15:25)

    Hmmm...I have Arch64 with a 15,000 collection, MPD uses 9.8MB and Sonata uses 52.5.MB, whether there are songs in the playlist or not.

  • Mpd and bluetooth headset

    Anyone of you guys got mpd and bluetooth audio up and working? I cant seam to find any good info in the matter.

    I'm just guessing here, but maybe something along the lines of this in /etc/mpd.conf
    audio_output {
    type "alsa"
    name "My ALSA Device"
    device "hw:0,0"
    format "44100:16:2"
    Change the 'device' line to suit whatever numbers your bluetooth headset is...

Maybe you are looking for

  • Heartbeat time outs some times caused by clocks-out-of-sync?

    Heartbeat timeouts are usually caused by the java socket communication between the master and its slaves being slow (or dead). This slowness in turn can be caused by a system being overloaded, something than can easily happen when we're running out o

  • TV shows in the UK

    Not really sure where to post this one... In the absence of iTunes having TV show downloads available in the UK can anyone recommend ANY kind of site where I could get hold of shows like 24 on an episode by episode basis and won't be exposed to all s

  • SQL Server JDBC Must read columns in order?

    Is this some kind of sick joke? If I use rs.getString() to retrieve columns by name from the data base, they must be retrieved exactly in the order that they appear in the actual database, or else an error will result. Someone please tell me that thi

  • Why does Edge Animate convert circles and rounded corners into "classic" rectangles?

    Hello Community! When creating animations with circles or rounded corners in it, I came across with something strange. I published it as .oam-file for Adobe DPS and the circles and rounded corners where converted into rectangles. Does anybody know a

  • Center the JLabels in a GridLayout

    Hi! I do have one problem: I want two JLabel objects to be centered in a JPane (with GridLayout). How do I do this? Do I have to use a different layout, and if so wich one? JPanel jilettersPanel = new JPanel();           jilettersPanel.setBackground(