Temat: Demon MPD

Witam prosze o pomoc w uruchomiuniu MPD .

Polecenie  # /etc/init.d/mpd start

root@OpenWrt:/# /etc/init.d/mpd start
mkdir: can't create directory '': No such file or directory
BusyBox v1.36.1 (2023-11-15 10:00:19 UTC) multi-call binary.

Usage: chown [-Rh]... USER[:[GRP]] FILE...

Change the owner and/or group of FILEs to USER and/or GRP

        -h      Affect symlinks instead of symlink targets
        -R      Recurse

zrobiłem jescze   # echo "audio:x:1000:" >> /etc/group

natomiast polecenie : mpd ,   działa słychć dzwiek

 root@OpenWrt:/# mpd --no-daemon --verbose --stdout
config_file: loading file /etc/mpd.conf
soxr: soxr converter 'high'
vorbis: Xiph.Org libVorbis 1.3.7
opus: libopus 1.3.1-fixed
simple_db: reading DB
curl: version 8.7.1
curl: with mbedTLS/2.28.7
state_file: Loading state file /mnt/sda1/config/MPD/state
playlist: queue song 1:"http://zt03.cdn.eurozet.pl/zet-tun.mp3"
curl: icy-metaint=1024
decoder_thread: probing plugin mad
decoder: audio_format=44100:24:2, seekable=false
alsa_output: opened hw:0,0 type=HW
alsa_output: buffer: size=90..88200 time=2040..2000000
alsa_output: period: size=45..44100 time=1020..1000000
alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
alsa_output: format=S16_LE (Signed 16 bit Little Endian)
alsa_output: buffer_size=22050 period_size=5513
output: opened "My ALSA Device" (alsa) audio_format=44100:16:2
output: converting in=44100:24:2 -> f=44100:24:2 -> out=44100:16:2
^Cstate_file: Saving state file /mnt/sda1/config/MPD/state
player: played "http://195.150.20.7/rmf_fm"
output: closed "My ALSA Device" (alsa) 

zawartość pliku  /etc/mpd.conf

     music_directory     "/mnt/sda1/Torrenty/!MUZYKA"
     playlist_directory  "/mnt/sda1/config/MPD/playlists"
     db_file             "/mnt/sda1/config/MPD/database"
     pid_file            "/mnt/sda1/config/MPD/pid"
     state_file          "/mnt/sda1/config/MPD/state"
     log_file            "/mnt/sda1/config/MPD/log"
     sticker_file        "/mnt/sda1/config/MPD/sticker"

  user "root"
  group "users"
  bind_to_address "0.0.0.0"
  port "6600"

     input {
        plugin "curl"
    }


# 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      "software"    # optional
#     mixer_device    "default"    # optional
#    mixer_control    "Headphone"   # optional
#    mixer_index    "0"        # optional


       auto_resample   "no"
#      buffer_time     "5"
    }


filesystem_charset "UTF-8"
TP-Link TL-WDR4300 USB-Mod GL850G 4xUSB , GPIO JTAG-MOD, U-Boot pepe2k
CPU:720MHz,DDR:450.000MHz,AHB:225.000MHz
Gargoyle 1.9.1.2, extroot PEN 2GB + dysk zewnętrzny Samsung 200GB , kamerka Creative, MPD Radio itp.

2

Odp: Demon MPD

Uruchomiłeś, działa.

A błąd jest dlatego że masz spacje na początku linii w konfigu przy katalogach. Zlikwiduj te spacje, opcje ma być normalnie od początku linii.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Demon MPD

Dziekuje bardzo Cezary , dzała ...

TP-Link TL-WDR4300 USB-Mod GL850G 4xUSB , GPIO JTAG-MOD, U-Boot pepe2k
CPU:720MHz,DDR:450.000MHz,AHB:225.000MHz
Gargoyle 1.9.1.2, extroot PEN 2GB + dysk zewnętrzny Samsung 200GB , kamerka Creative, MPD Radio itp.