Jump to content

Звуковая станция


Recommended Posts

Звуковая станция на базе Entware-Keenetic/Entware-3x и MPD основана на теме, за что, отдельная благодарность - McMCC.

Зайти по SSH в подготовленную систему и выполнить следующие команды

opkg update
opkg install music-center

Всё!

Настройки mpd находятся по /opt/etc/mpd.conf и меняются, в зависимости от своих предпочтений.

NB Тема про модули ядра - теперь они доступны для всех draft-версий прошивок.

Edited by TheBB
added some info
Link to comment
Share on other sites

После нескольких дней теста все работает нормально. :D

Есть вопрос: как можно сделать (и можно ли вообще), чтобы последний (или нужный) плейлист автоматически загружался (был виден в Queue) при перезагрузке роутера?

Спасибо.

Link to comment
Share on other sites

Вчера пропал инет по вине провайдера. Решил послушать через ympd локально расположенные файлы музыки mp3. YMPD запустился, плейлист с моими файлами загрузился, а восроизведения нету. Нажимаю кнопку Play, а оно становится сразу на паузу. Пробую поменять громкость ползунком - выскакивает сообщение "problems setting volume". Скриншоты прикладываю.

Вопрос получается такой:

1. ympd (mpd) воспроизводит локальные файлы mp3 когда роутер находится в offline или нет?

2. Если "нет", то почему не воспроизводит и можно ли что-то сделать, чтобы воспроизводило?

Спасибо.

Не работает ympd в режиме offline.jpg

Не работает ympd в режиме offline_problems setting volume.jpg

Edited by edvard69
Не пойму как вложить уменьшенные изображения
Link to comment
Share on other sites

Здравствуйте После установки параметров в mpd.conf

Spoiler

audio_output {
    type        "httpd"
    name        "My HTTP Stream"
    encoder        "wave"        # 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    "5"            # optional 0=no limit
}

 

система показывает странные коды

Spoiler
Jul 23 13:46:24ndm
kernel: Kernel bug detected[#70]:
Jul 23 13:46:24ndm
kernel: Cpu 0
Jul 23 13:46:24ndm
kernel: $ 0 : 00000000 00000002 00000001 80000000
Jul 23 13:46:24ndm
kernel: $ 4 : 8106d240 7fcc0fd4 81000000 00001fff
Jul 23 13:46:24ndm
kernel: $ 8 : 7fcc0fd4 8129d000 00000011 fffffff8
Jul 23 13:46:24ndm
kernel: $12 : 20302030 000000b4 00000000 004a0000
Jul 23 13:46:24ndm
kernel: $16 : 0000000e 8106d240 8129d000 7fcc0fd4
Jul 23 13:46:24ndm
kernel: $20 : 00000000 00000006 00000000 824cbe20
Jul 23 13:46:24ndm
kernel: $24 : 0049827c 2aaf7250
Jul 23 13:46:24ndm
kernel: $28 : 824c8000 824cbda8 824cbe24 80030a78
Jul 23 13:46:24ndm
kernel: Hi : 00000000
Jul 23 13:46:24ndm
kernel: Lo : 00000000
Jul 23 13:46:24ndm
kernel: epc : 80031728 kmap_coherent+0x8/0xac Tainted: P
Jul 23 13:46:24ndm
kernel: ra : 80030a78 __flush_anon_page+0x4c/0x84
Jul 23 13:46:24ndm
kernel: Status: 11000303 KERNEL EXL IE
Jul 23 13:46:24ndm
kernel: Cause : 50807c34
Jul 23 13:46:24ndm
kernel: PrId : 00019555
Jul 23 13:46:24ndm
kernel: Modules linked in: hw_nat(P) rt539x_ap2(P) ip6t_rt rndis_host nf_nat_rtsp dm9601 ip6table_raw ip6t_ipv6header cdc_ether nf_nat_sip ip6t_LOG ip6table_filter ip6t_ah asix ip6t_frag nf_nat_ftp ext3 ip6table_mangle nf_nat_pptp nf_conntrack_pptp ip6t_hbh ip6t_mh resetnds(P) thfsplus tun nf_conntrack_ipv6 raeth ext2 crypto_hash ip6_tables hw_cdc_net ip6t_owner pptp sierra pppol2tp usbnet tfat(P) jbd deflate nf_conntrack_proto_gre phr(P) nf_conntrack_rtsp nf_conntrack_ftp fastvpn tntfs(P) ip6t_eui64 nf_conntrack_sip powerstat ip6t_REJECT fastnat ip6_queue nf_nat_proto_gre xt_mac
Jul 23 13:46:24ndm
kernel: Process pidof (pid: 2614, threadinfo=824c8000, task=8714d000)
Jul 23 13:46:24ndm
kernel: Stack : 803ab7a0 0000000e 0000000b 8129d000 7fcc0fd4 8007eec4 00000044 824cbec8
Jul 23 13:46:24ndm
kernel: 80334210 80094df0 00000010 0000000e 00000000 0000000b 7fcc0fd4 859c2000
Jul 23 13:46:24ndm
kernel: 80377000 00000000 00001000 80000000 00000001 8007f048 803bc400 80377000
Jul 23 13:46:24ndm
kernel: 80333f88 00000001 00000000 00000001 824cbe24 824cbe20 00000000 8106d240
Jul 23 13:46:24ndm
kernel: 80377034 00002001 00000000 80377000 0000000b 00001000 859c2000 824cbf10
Jul 23 13:46:24ndm
kernel: ...
Jul 23 13:46:24ndm
kernel: Call Trace:
Jul 23 13:46:24ndm
kernel: [<80031728>] kmap_coherent+0x8/0xac
Jul 23 13:46:24ndm
kernel: [<80030a78>] __flush_anon_page+0x4c/0x84
Jul 23 13:46:24ndm
kernel: [<8007eec4>] get_user_pages+0x274/0x2ec
Jul 23 13:46:24ndm
kernel: [<8007f048>] access_process_vm+0x10c/0x200
Jul 23 13:46:24ndm
kernel: [<800ce6e0>] proc_pid_cmdline+0x70/0x120
Jul 23 13:46:24ndm
kernel: [<800cf8c4>] proc_info_read+0xd4/0x114
Jul 23 13:46:24ndm
kernel: [<80094520>] vfs_read+0xc0/0x14c
Jul 23 13:46:24ndm
kernel: [<800946d4>] sys_read+0x58/0xc0
Jul 23 13:46:24ndm
kernel: [<8002f7a4>] stack_done+0x20/0x3c
Jul 23 13:46:24ndm
kernel:
Jul 23 13:46:24ndm
kernel:
Jul 23 13:46:24ndm
kernel: Code: 00000000 8c820000 7c420240 <00028036> 8f820014 3c038039 7ca51300 24420001 af820014

 

Edited by Fst2015
Link to comment
Share on other sites

1 час назад, Fst2015 сказал:

система показывает странные коды

Это проблема с ядром. Есть предположение, что после последних изменений в ядре, отвалился весь функционал Entware, использующий работу с ЮСБ устройствами. На 2.06 точно многое не работает.

Планируем выпустить версию Entware только для 2.07. Первые тесты показывают, что с ней все хорошо. Ждите. Для 2.06 ничего менять не планируем.

  • Thanks 1
Link to comment
Share on other sites

14 minutes ago, zyxmon said:

Это проблема с ядром. Есть предположение, что после последних изменений в ядре, отвалился весь функционал Entware, использующий работу с ЮСБ устройствами. На 2.06 точно многое не работает.

Планируем выпустить версию Entware только для 2.07. Первые тесты показывают, что с ней все хорошо. Ждите. Для 2.06 ничего менять не планируем.

Спасибо за информацию

Link to comment
Share on other sites

23 часа назад, Fst2015 сказал:

После установки параметров в mpd.conf

все не так плохо, на GigaII v2.06(AAFS.7)B4 плейлист с радиостанциями проигрывает. а, вот, передачей потока в сеть не занимался, может кто более сведущий что-то подскажет. или на офсайте смотреть

Link to comment
Share on other sites

  • 1 month later...

Добрый день. Возник вопрос.

При работе mpd пишет в лог названия песен, которые он играет. Может ли mpd писать только важную информацию в лог?

P.S. log level default. mpd.conf ниже.

 

Скрытый текст

music_directory        "/opt/var/music"
playlist_directory        "/opt/var/mpd/playlists"
db_file            "/opt/var/mpd.db"
pid_file            "/opt/var/run/mpd.pid"
state_file            "/opt/var/mpd/state"
port                "6600"
log_level            "default"
ave_absolute_paths_in_playlists    "no"
auto_update    "yes"
follow_outside_symlinks        "yes"
follow_inside_symlinks        "yes"

input {
        plugin "curl"
#       proxy "proxy.isp.com:8080"
#       proxy_user "user"
#       proxy_password "password"
}
audio_output {
    type        "alsa"
    name        "My ALSA Device"
    mixer_control    "Speaker"    # optional
}

filesystem_charset        "UTF-8"

id3v1_encoding            "WINDOWS-1251"

 

Edited by pc182
Link to comment
Share on other sites

20 часов назад, pc182 сказал:

Может ли mpd писать только важную информацию в лог?

А "важную информацию" это какую? Пишет себе - ну и пусть пишет. Или размер лога критичен? И какой смысл в изменении записываемой информации?

Edited by edvard69
Корректировка
Link to comment
Share on other sites

5 минут назад, edvard69 сказал:

А "важную информацию" это какую? Пишет себе - ну и пусть пишет. Или размер лога критичен? И какой смысл в изменении записываемой информации?

У меня просто mpd работает 24/7 и логе сложно становится искать что-либо из-за того, что он стал похож на перечень всех  моих музыкальных файлов.

Под "важной информацией" я имею ввиду ошибки при работе mpd,если такие будут. Сейчас пока в конфиге поставил log_file "/dev/null", но если будут ошибки я о них не узнаю.

Link to comment
Share on other sites

5 минут назад, pc182 сказал:

У меня просто mpd работает 24/7 и логе сложно становится искать что-либо из-за того, что он стал похож на перечень всех  моих музыкальных файлов.

Под "важной информацией" я имею ввиду ошибки при работе mpd,если такие будут. Сейчас пока в конфиге поставил log_file "/dev/null", но если будут ошибки я о них не узнаю.

То есть вам нужен фильтр для записываемой в лог информации: типа названия песен не пишем, а важную информацию о работе системы (в частности mpd) пишем.

Link to comment
Share on other sites

Цитата
log_level <default, secure, or verbose>
This specifies how verbose logs are. "default" is minimal logging, "secure" reports from what address a connection is opened, and when it is closed, and "verbose" records excessive amounts of information for debugging purposes. The default is "default".

как-то так

Link to comment
Share on other sites

1 час назад, edvard69 сказал:

То есть вам нужен фильтр для записываемой в лог информации: типа названия песен не пишем, а важную информацию о работе системы (в частности mpd) пишем.

Скорее фильтр только на mpd, поскольку к остальному логу вопросов нет. Но фильтровать весь лог думаю тоже некое решение проблемы, если сделать это штатными средствами mpd невозможно.

 

24 минуты назад, TheBB сказал:

как-то так

Создатели mpd  считают, что написание названия воспроизводимых треков входит в минимальное журналирование :)

Link to comment
Share on other sites

  • 3 weeks later...
~ # ndmq -p "show version" -P device
Keenetic Ultra II
~ # ndmq -p "show version" -P release
v2.08(AAUX.1)A8
~ # ps | grep mpd
 3823 root     83592 S    mpd
 3831 root      6028 S    ympd -w 8800 -h localhost -p 6600

screen-010.png

вроде бы работает.

кусок лога:

Скрытый текст

[I] Oct  9 20:07:31 ndm: kernel: usbip-host 2-2:1.3: 2-2 is not in match_busid table... skip!
[I] Oct  9 20:07:35 root: Started mpd from .
[W] Oct  9 20:07:35 mpd: server_socket: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
[I] Oct  9 20:07:36 root: Started ympd from .
[I] Oct  9 20:07:37 mpd: client: [0] opened from 127.0.0.1:44582
....
[W] Oct  9 20:09:39 ndm: kernel: 3:1:1: cannot get freq at ep 0x5
[I] Oct  9 20:09:44 mpd: player: played "http://imgradio.pro/RetroHit"
[W] Oct  9 20:09:45 mpd: ffmpeg/aac: element type mismatch 1 != 0
[W] Oct  9 20:09:45 mpd: Core::Syslog: last message repeated 13 times.
[I] Oct  9 20:10:17 mpd: player: played "http://imgradio.pro/RadioCafe"
[W] Oct  9 20:10:29 ndm: kernel: 3:1:1: cannot get freq at ep 0x5
[I] Oct  9 20:10:44 mpd: player: played "http://radio.horoshee.fm:8000/aac"
[I] Oct  9 20:12:44 ndm: Core::Server: started Session /var/run/ndm.core.socket.
[I] Oct  9 20:12:44 ndm: Core::Server: client disconnected.
[I] Oct  9 20:12:52 ndm: Core::Server: started Session /var/run/ndm.core.socket.
[I] Oct  9 20:12:52 ndm: Core::Server: client disconnected.
[I] Oct  9 20:16:25 mpd: player: played "http://imgradio.pro/RetroHit"

 

 

~ # mount | grep sda
/dev/sda1 on /tmp/mnt/Ultra_test type ext2 (rw,relatime)
/dev/sda1 on /opt type ext2 (rw,relatime)

 

Edited by TheBB
+лог +mount
  • Thanks 1
Link to comment
Share on other sites

2 часа назад, TheBB сказал:

~ # ndmq -p "show version" -P device
Keenetic Ultra II
~ # ndmq -p "show version" -P release
v2.08(AAUX.1)A8
~ # ps | grep mpd
 3823 root     83592 S    mpd
 3831 root      6028 S    ympd -w 8800 -h localhost -p 6600

 

вроде бы работает.

Спасибо, буду разбираться.А форматирование раздела у Вас какое? У меня на ext3 не хотело ставится. Установилось только на ext4.

P.S. Точнее система не увидела раздел с форматированием ext3.

P.S.2. Выдает такую ошибку:

Oct 09 21:33:03mpdalsa_mixer: Failed to read mixer for 'default detected output': no such mixer control: PCM

Может надо что-то подправить в mpd.conf Entware -3х ?

P.S.3. Решил вопрос так. Просмотрев файл mpd.conf в Entware -3х увидел, что в нем очень многие строки закомментированы (#). Понятное дело, что так ничего не запустится и не определится. Потом я через mc заменил файл mpd.conf файлом mpd.conf из архива, сделанного ранее из системы Entware, которая стояла до Entware-3х. После перезагрузки все заработало. Почему изначально mpd.conf в Entware -3х не установился как надо - не понятно.

Edited by edvard69
P.S. + P.S.2.+P.S.3
Link to comment
Share on other sites

Добрый день.

У всех нормально работает роутер при подключении звуковой карты?

У меня непонятная проблема (Изучаю её уже больше месяца).

Имеем следующее:

  • Keenetic Giga III
  • Звуковая карта на чипе CM108
  • Прошивка начиная от 2.07 заканчивая последней draft
  • Entware 3x,Entware-Keenetic

Всё работает, ошибок нет. НО! Иногда, через произвольное количество часов (4-16) роутер перезагружается. В логе ничего нет, syslog-ng использовал.

Иногда просто отваливается звуковая карта с сообщением: kernel: 2:1:1: usb_set_interface failed.

Когда звуковая просто воткнута в роутер, без Entware, всё нормально работает. На сервачке с дебианом эта карта нормально работает.

 

 

 

 

Edited by pc182
Link to comment
Share on other sites

  • 3 weeks later...

Здравствуйте, поделитесь пожалуйста рабочим конфигом и подскажите, как правильно указать путь до папки music в корне =)

Версия NDMS    v2.08(AAUX.2)A9, стоит Entware-3x

Конфиг, который прописывается по умолчанию:

Скрытый текст

# An example configuration file for MPD.
# Read the user manual for documentation: http://www.musicpd.org/doc/user/


# 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        "~/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        "~/.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            "~/.mpd/database"

# 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            "~/.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            "~/.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            "~/.mpd/state"
#
# 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                "nobody"
#
# 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"
#
# Setting "restore_paused" to "yes" puts MPD into pause mode instead
# of starting playback after startup.
#
#restore_paused "no"
#
# 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. The complete list of possible values can be
# found in the user manual.
#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"
#
###############################################################################


# Database #######################################################################
#

#database {
#       plugin "proxy"
#       host "other.mpd.host"
#       port "6600"
#}

# 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.
#
# An example of an ALSA output:
#
#audio_output {
#    type        "alsa"
#    name        "My ALSA Device"
##    device        "hw:0,0"    # 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
##    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
##    url        "http://example.com"    # 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
#}
#
# An example of a winmm output (Windows multimedia API).
#
#audio_output {
#    type        "winmm"
#    name        "My WinMM output"
##    device        "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
#        or
##    device        "0"        # optional
##    mixer_type    "hardware"    # optional
#}
#
# An example of an openal output.
#
#audio_output {
#    type        "openal"
#    name        "My OpenAL output"
##    device        "Digital Audio (S/PDIF) (High Definition Audio Device)" # 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
#}
#
# 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", "track" or "auto". "auto" is a special mode that
# chooses between "track" and "album" depending on the current state of
# random playback. If random playback is enabled then "track" mode is used.
# See <http://www.replaygain.org> for more details about ReplayGain.
# 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 sets the pre-amp used for files that do NOT have ReplayGain tags.
# By default this setting is disabled.
#
#replaygain_missing_preamp    "0"
#
# This setting enables or disables ReplayGain limiting.
# MPD calculates actual amplification based on the ReplayGain tags
# and replaygain_preamp / replaygain_missing_preamp setting.
# If replaygain_limit is enabled MPD will never amplify audio signal
# above its original level. If replaygain_limit is disabled such amplification
# might occur. By default this setting is enabled.
#
#replaygain_limit        "yes"
#
# 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"
#
###############################################################################

# 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"
#}
#
###############################################################################

 

Link to comment
Share on other sites

В 09.10.2016 в 20:21, edvard69 сказал:

... Почему изначально mpd.conf в Entware -3х не установился как надо - не понятно.

устанавливается дефолтный конфиг пакета mpd. думаю, можно будет добавить в пакет music-center слегка преднастроенный mpd.conf. в любом случае, нужно будет под себя править )))

1 час назад, plagioklaz сказал:

... как правильно указать путь до папки music в корне =)...

если на том же диске/флешке, то /opt/путь/до/папки

если на другом (должен быть смонтирован) - /tmp/mnt/путь/до/...

1 час назад, plagioklaz сказал:

... поделитесь пожалуйста рабочим конфигом...

да, вообще-то, конфиг хорошо комментирован, что мешает настроить самостоятельно

upd: added mpd.conf

mpd.conf.txt

Edited by TheBB
added conf
Link to comment
Share on other sites

50 минут назад, TheBB сказал:

устанавливается дефолтный конфиг пакета mpd. думаю, можно будет добавить в пакет music-center слегка преднастроенный mpd.conf. в любом случае, нужно будет под себя править )))

если на том же диске/флешке, то /opt/путь/до/папки

если на другом (должен быть смонтирован) - /tmp/mnt/путь/до/...

да, вообще-то, конфиг хорошо комментирован, что мешает настроить самостоятельно

Самостоятельно пробовал настраивать - просто раскоментировал некоторые опции, как мне казалось нужные, но это не привело к рабочему результату.

Сложно судить о том как должно быть, а как нет, когда не сталкивался с данной программой. Гораздо понятнее, когда есть пусть и дефолтный, но рабочий конфиг, который уже правишь под себя, когда знаешь, что правил и можешь исправить, если что-то перестало работать после правок.

P.S. а данный способ прослушивания годится только для воспроизведения музыки непосредственно на роутере через аудио карту, или же есть возможность удалённого прослушивания с телефона онлайн как с облака?

Спасибо.

Жаль, что не удалось попробовать современных технологий :-(

Link to comment
Share on other sites

22 минуты назад, plagioklaz сказал:

... а данный способ прослушивания годится только для...

вопрос уже поднимали, поищите по форуму

PS конфиг прилеплен к предыдущему сообщению, разбирайте(сь) )))

Link to comment
Share on other sites

14 часа назад, TheBB сказал:
В 09.10.2016 в 20:21, edvard69 сказал:

... Почему изначально mpd.conf в Entware -3х не установился как надо - не понятно.

устанавливается дефолтный конфиг пакета mpd. думаю, можно будет добавить в пакет music-center слегка преднастроенный mpd.conf. в любом случае, нужно будет под себя править )))

Да, было бы не плохо "добавить в пакет music-center слегка преднастроенный mpd.conf" , чтобы подправлять под себя надо было только место расположение контента (папки music и playlists). А может и их сразу раскомментировать чтобы они по умолчанию были сразу задействованы.  Я когда то  еще правил и игрался с кодировкой отображения названий воспроизводимого, но это не основное.

Link to comment
Share on other sites

13 часа назад, TheBB сказал:

вопрос уже поднимали, поищите по форуму

PS конфиг прилеплен к предыдущему сообщению, разбирайте(сь) )))

Спасибо огромное! Наконец оно заработало!

По поводу воспроизведения не только роутером, но и телефоном - судя по конфигурации, программа умеет стримить содержимое папки в сеть а-ля радио, это не совсем то, что нужно.

В связи с этим возникла мысль, просто подключиться к встроенному dlna серверу... Но это уже вопрос для другой темы...

P.s. можете в личку написать, почему встроенный dlna сервер не виден с телефона через установленный VPN pptp туннель, хотя самба и вебморда отлично работают при обращении по адресу 192.168.1.1

Спасибо.

Link to comment
Share on other sites

19 минут назад, plagioklaz сказал:

почему встроенный dlna сервер не виден с телефона через установленный VPN pptp туннель

Для работы dlna нужен L2 туннель. А pptp это L3. Можно создать openvpn в режиме tap - http://forums.zyxmon.org/viewtopic.php?f=5&t=5425 - это будет L2 туннель. 

Link to comment
Share on other sites

4 часа назад, zyxmon сказал:

Для работы dlna нужен L2 туннель. А pptp это L3. Можно создать openvpn в режиме tap - http://forums.zyxmon.org/viewtopic.php?f=5&t=5425 - это будет L2 туннель. 

Спасибо за разъяснения, таким образом, с телефона проще иметь доступ к файлам через самбу.

К сожалению, заказанная мною у китайцев карточка имеет в фоне постоянный высокочастотный шум, что терпимо, если слушать танцевальную музыку, но на акустических композициях это становится слишком заметно.

Такую не берите 
http://s.aliexpress.com/q2uqENjA
 

Может быть кто-то подскажет нормальную карточку для использования с роутером? 

Спасибо.

Link to comment
Share on other sites

54 минуты назад, plagioklaz сказал:

Спасибо за разъяснения, таким образом, с телефона проще иметь доступ к файлам через самбу.

К сожалению, заказанная мною у китайцев карточка имеет в фоне постоянный высокочастотный шум, что терпимо, если слушать танцевальную музыку, но на акустических композициях это становится слишком заметно.

Такую не берите 
http://s.aliexpress.com/q2uqENjA
 

Может быть кто-то подскажет нормальную карточку для использования с роутером? 

Спасибо.

По поводу высокочастотного шума согласен, у меня тоже самое, НО когда втыкаю в ноутбук всё хорошо(как мне показалось). Может с питанием что-то, пока думаю поставить фильтр на питание USB перед звуковой.

Link to comment
Share on other sites

39 минут назад, pc182 сказал:

По поводу высокочастотного шума согласен, у меня тоже самое, НО когда втыкаю в ноутбук всё хорошо(как мне показалось). Может с питанием что-то, пока думаю поставить фильтр на питание USB перед звуковой.

Я пробовал подключать звуковую через усб хаб с отдельным качественным питанием - не помогло. Каких-то специальных фильтров, чтобы воткнуть между портом кинетика и звуковой у меня нет. Как попробуете - отпишитесь, интересно.

З.ы. подключал к телефону - фон на месте.

download_20161104_173627.jpg

Edited by plagioklaz
Link to comment
Share on other sites

1 час назад, plagioklaz сказал:

Я пробовал подключать звуковую через усб хаб с отдельным качественным питанием - не помогло. Каких-то специальных фильтров, чтобы воткнуть между портом кинетика и звуковой у меня нет. Как попробуете - отпишитесь, интересно.

З.ы. подключал к телефону - фон на месте.

 

<offtop>Кстати не заметил у Вас переделок звуковой карты. Не занимались доработкой? Писк это вряд ли устранит, но звук заметно лучше становится.</offtop>

Link to comment
Share on other sites

Цитата

Не занимались доработкой? Писк это вряд ли устранит

Не занимался, толку нет же :-D

А качественный звук ждать от такого решения глупо. Мне хотя бы фона, чтобы не было - уже хорошо.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...