Mpc/Mpd on Linux: How to Play Local Wav File

mpc / mpd on linux: how to play local wav file

i did not find out how to play wav..but i forgot i found the solution (for mp3) and posted it here: https://forum.openwrt.org/viewtopic.php?id=41022

however, since stackoverflow always shows up top on google search i am pasting the same solution here in case it helps someone as well :

/etc/mpd.conf should be something approximately like this:

music_directory        "/tmp"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/database"
log_file "/tmp/mpdlog"
pid_file "~/.mpd/pid"
state_file "~/.mpd/state"
sticker_file "~/.mpd/sticker.sql"

user "root"
group "root"
bind_to_address "127.0.0.1"

log_level "verbose"
auto_update "yes"
auto_update_depth "3"
follow_outside_symlinks "yes"
follow_inside_symlinks "yes"

and then:

  1. /etc/init.d/mpd restart
  2. copy MP3 ( wav does not seem to work ) file to /tmp folder ( because music directory is the /tmp folder )
  3. mpc update
  4. mpc add file.mp3 ( adding /tmp/file.mp3 will NOT work )
  5. mpc play

MPD doesnt load ffmpeg as decoder

If you pulled the binary and did not compile it by yourself the one who complied the binary might not have set the argument -Dffmpeg=enabled.
This results in mpd just ignoring the related part in the config-file.

(Also there seems to be no use for enabled="yes". It only disables it with "no")



Related Topics



Leave a reply



Submit