MPD Playlist Format

Does anyone know what format MPD reads playlists? I have mine exported from Audacious as .m3u. MPD/Sonata recognise the playlist but not the songs contained within.

This is my config:

############################################################################
### begin of mpd configuration file
############################################################################
## start processing `01_output-audio-alsa.conf'
audio_output {
	type		    "alsa"
	name		    "HDA Intel PCH - 92HD93BXX Analog"
#	device		    "hw:0,0"
	auto_resample	    "no"
	auto_format	    "no"
	auto_channels	    "no"
	replay_gain_handler "none"
	mixer_type	    "software"
}

audio_output {
type                    "fifo"
name                    "FIFO"
path                    "/tmp/mpd.fifo"
format                  "44100:16:2"
}


replaygain                 "off"
## done processing

## start processing `02_paths.conf'
db_file				  			  "/home/dobbie/.mpd/mpd.db"
music_directory                   "/home/dobbie/Music"
log_file                          "/home/dobbie/.mpd/mpd.log"
playlist_directory                "/home/dobbie/Music"
pid_file                          "/home/dobbie/.mpd/pid"
state_file                        "/home/dobbie/.mpd/state"
sticker_file                      "/home/dobbie/.mpd/sticker.sql"
save_absolute_paths_in_playlists  "no"
## done processing

## start processing `03_general.conf'
filesystem_charset    "UTF-8"
id3v1_encoding        "UTF-8"
log_level             "default"
auto_update           "yes"
auto_update_depth     "0"
## done processing

## start processing `04_client-limits.conf'
connection_timeout     "60"
max_connections        "10"
max_playlist_length    "16384"
max_command_list_size  "2048"
max_output_buffer_size "8192"
## done processing

## start processing `05_network.conf'
bind_to_address "127.0.0.1"
## done processing

## start processing `06_zeroconf.conf'
zeroconf_enabled    "True"
## done processing

gapless_mp3_playback	"yes"

volume_normalization    "yes"
############################################################################
### end of mpd configuration file
############################################################################

Am I missing something or exporting to the incorrect format?

Hi,
What I can tell you, is that with ncmpcpp sees them without problems, sonata I’ve never used it.
regards
my mpd.conf

#music_directory                  "/run/media/don/Windows 8.1/recupero-cowon/cowonj3-musica-video/Music/"
music_directory                  "/home/don/Musica"
db_file                          "/home/don/.config/mpd/database"
log_file                         "/home/don/.config/mpd/log"
pid_file                         "/home/don/.config/mpd/pid"
state_file                       "/home/don/.config/mpd/state"
playlist_directory               "/home/don/.config/mpd/playlists"
log_level                        "default"
#password                        "password@read,add,control,admin"
#default_permissions             "read,add,control,admin"
user                             "don"
#bind_to_address                 "600"
bind_to_address                  "127.0.0.1"
bind_to_address                  "/home/don/.config/mpd/socket"
port                             "6600"
gapless_mp3_playback             "yes"
auto_update                      "yes"
#auto_update_depth               "3"

input {
        plugin                   "curl"
        proxy                    "proxy.isp.com:8000"
        proxy_user               "user"
        proxy_password           "password"
}

audio_output {
               type              "pulse"
               name              "Pulseaudio"
               mixer_type        "software"
}

audio_output {
               type             "alsa"
               name             "Alsa output"
               device           "hw:0,0"
               format           "44100:16:2"
               mixer_type       "hardware"
               mixer_device     "default"
               mixer_control    "PCM"
               mixer_index      "0"
}
#audio_output {
#               type             "httpd"
#               name             "Internet Stream"
#               encoder          "lame"
#               port             "8000"
#               bind_to_address  "192.168.1.13"
#               quality          "5.0"
#               bitrate          "128"
#               format           "44100:16:1"
#               max_clients      "3"
#}

#audio_output {
#               type             "recorder"
#               name             "My recorder"
#               encoder          "vorbis"
#               path             "/home/carnager/stream.ogg"
#               quality          "7.0" # do not define if bitrate is defined
#               bitrate          "128" # do not define if quality is defined
#               format           "44100:16:1"
#}

replaygain                       "album"
replaygain_preamp                "0"
#volume_normalization            "no"
#audio_buffer_size               "2048"
#buffer_before_play              "10%"
#connection_timeout              "60"
#max_connections                 "10"
#max_playlist_length             "16384"
#max_command_list_size           "2048"
#max_output_buffer_size          "8192"
#filesystem_charset              "UTF-8"
#id3v1_encoding                  "ISO-8859-1"


audio_output {
    type                    "fifo"
    name                    "my_fifo"
    path                    "/tmp/mpd.fifo"
    format                  "44100:16:2"
}

Hmmmm its got to be to do with the format that Audacious exports. It uses % as spaces for one example.

I see you miss me in mpd.conf, or am I wrong?

playlist_directory “/home/don/.config/mpd/playlists”

I changed the MPD playlist directory to where I had the playlists stored. MPD recognised the playlists but not the content.

you could try with .m3u not generated by audacius if they work, just to see if audacius the problem.
or try ncmpcpp and see if you have no problems with that client

Good idea. WIll try that.

Okay I solved this. What I did was export from Audacious, import to Deadbeef, export from Deadbeef as a .m3u. Done.

Worked a treat.

Lesson I learned today, Audacious is crap at exporting playlists. Or rather, has a weird way of doing it.

1 Like