有没有在 Ubuntu 18.04 中安装 mpd 0.21.20 或更新版本的简单方法?该机器具有 32 位 Ubuntu。
我目前安装了来自仿生/宇宙 i386 软件包的 0.20.18-1build1 版本。
有没有在 Ubuntu 18.04 中安装 mpd 0.21.20 或更新版本的简单方法?该机器具有 32 位 Ubuntu。
我目前安装了来自仿生/宇宙 i386 软件包的 0.20.18-1build1 版本。
我的问题是这个。我一直在配置mpd和ncmpcpp。这是我的mpd配置:
music_directory "/media/dylan-roman/Acer/Users/Dylan/Music"
playlist_directory "/media/dylan-roman/Acer/Users/Dylan/Music"
db_file "/home/dylan-roman/.mpd/mpd.db"
log_file "/home/dylan-roman/.mpd/mpd.log"
pid_file "/home/dylan-roman/.mpd/mpd.pid"
state_file "/home/dylan-roman/.mpd/mpdstate"
user "mpd"
bind_to_address "localhost"
port "6600"
#audio_output {
#type "alsa"
#name "alsa for audio soundcard"
#mixer_type "software"
#}
audio_output {
type "pulse"
name "pulse audio"
}
audio_output {
type "fifo"
name "my_fifo"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
这是我的 ncmpcpp 配置:
[mpd]
mpd_music_dir = "/media/dylan-roman/Acer/Users/Dylan/Music"
mpd_host = "localhost"
#mpd_port = "6600"
mpd_crossfade_time = "2"
ncmpcpp_directory = /home/dylan-roman/.ncmpcpp
[visualizer]
visualizer_fifo_path = "/tmp/mpd.fifo"
visualizer_in_stereo = "no"
visualizer_type = "wave"
visualizer_output_name = "my_fifo"
visualizer_look = "│┃"
visualizer_color = "default"
[header]
header_visibility = "no"
header_window_color = "default"
volume_color = "default"
state_line_color = "black"
[playlist]
playlist_display_mode = "classic"
song_list_format = "{{%a - %t}|{%f}}{$R%l}"
now_playing_prefix = "$b$2"
now_playing_suffix = "$/b$9"
[statusbar]
progressbar_look = "─╼ "
progressbar_color = "black"
statusbar_visibility = "no"
statusbar_color = "default"
song_status_format = "{{%a{ - %t}}|{ - %f}{ - %b{ (%y)}}}"
[library]
song_library_format = "{{%a - %t}|{%f}}{$R%l}"
empty_tag_color = "black"
[global]
colors_enabled = "yes"
main_window_color = "default"
centered_cursor = "yes"
enable_window_title = "yes"
external_editor = "vim"
一切似乎都正常,但是当我播放歌曲时,它没有声音,出现以下消息:
MPD: no mixer
我已经用谷歌搜索了解决方案,但我没有设法修复问题
这是我在运行 systemctl --user status mpd 时得到的:
`● mpd.service - Music Player Daemon
Loaded: loaded (/usr/lib/systemd/user/mpd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2020-06-10 08:33:13 -04; 18s ago
TriggeredBy: ● mpd.socket
Docs: man:mpd(1)
man:mpd.conf(5)
file:///usr/share/doc/mpd/html/user.html
Process: 4095 ExecStart=/usr/bin/mpd --no-daemon (code=exited, status=1/FAILURE)
Main PID: 4095 (code=exited, status=1/FAILURE)
jun 10 08:33:13 dylan systemd[1986]: Starting Music Player Daemon...
jun 10 08:33:13 dylan mpd[4095]: Jun 10 08:33 : exception: Failed to bind to '127.0.0.1:6600'
jun 10 08:33:13 dylan mpd[4095]: Jun 10 08:33 : exception: nested: Failed to bind socket: Address already in use
jun 10 08:33:13 dylan systemd[1986]: mpd.service: Main process exited, code=exited, status=1/FAILURE
jun 10 08:33:13 dylan systemd[1986]: mpd.service: Failed with result 'exit-code'.
jun 10 08:33:13 dylan systemd[1986]: Failed to start Music Player Daemon.
` 和执行 sudo systemctl status mpd 时的 this
● mpd.service - Music Player Daemon
Loaded: loaded (/lib/systemd/system/mpd.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:mpd(1)
man:mpd.conf(5)
file:///usr/share/doc/mpd/html/user.html
我正在使用 Ubuntu 16.04。我刚刚安装了 mpd 和 ncmpcpp。每当我播放任何音频文件时,ncmpcpp 都会检测到该文件并说它正在播放,但没有播放实际的音频。我按照本教程安装和配置 mpc 和 ncmpcpp。这是我的mpd配置:
music_directory "~/Music"
playlist_directory "~/Playlists"
db_file "~/.local/share/mpd/mpd.db"
log_file "~/.local/share/mpd/mpd.log"
pid_file "~/.local/share/mpd/mpd.pid"
state_file "~/.local/share/mpd/mpd.state"
sticker_file "~/.local/share/mpd/sticker.sql"
bind_to_address "127.0.0.1"
log_level "default"
restore_paused "yes"
metadata_to_use "artist,album,title,track,name,genre,date"
auto_update "yes"
input {
plugin "curl"
}
audio_output {
type "pulse"
name "pulse audio"
}
audio_output {
type "fifo"
name "mpd_fifo"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
编辑:我还想澄清一下,我试图安装最新版本,正如它在这个答案中所说的那样,但我收到了其中一个包的消息:
E: Package 'libsystemd-daemon-dev' has no installation candidate
所以,我下载了 .deb 文件并尝试从那里安装它。当我运行“sudo dpkg -i”和文件路径时,我收到此错误:
dpkg: error processing package libsystemd-daemon-dev (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libsystemd-daemon-dev
如果我的报告不完全符合标准,我提前道歉——我是 Linux 的初学者。
我已经在 Ubuntu 中使用 MPD(标准 0.19.xx)一段时间没有任何问题,但是在最近的升级流(Shoutcast 流,如http://icecast.omroep.nl/3fm-bb-mp3)已经开始“口吃”。本地文件播放没有问题,并且使用不同的播放器(Rythmbox)流播放得很好。
mpd.log
即使设置mpd.conf
为日志详细,也没有显示任何反馈。mpd
到20.12后,mpd.log
开始上报:开始时:
Aug 09 11:03 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted
播放流时:
Aug 09 11:07 : player: Decoder is too slow; playing silence to avoid xrun
运行后可能指向原因的一个提示(但我真的不确定)如下apt install --reinstall mpd
Error in '/usr/share/doc-base/mpd', line 7: all 'Format' sections are invalid.
Note: 'install-docs --verbose --check file_name' may give more details about the above error.
Registering documents with scrollkeeper...
Processing triggers for man-db (2.7.5-1) ...
Setting up mpd (0.20.12-1~ppa1~xenial1) ...
insserv: warning: current start runlevel(s) (empty) of script 'mpd' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script 'mpd' overrides LSB defaults (0 1 6).
我可以提供任何进一步的信息吗?
您好,我最近正在使用 ncmpcpp,我已经根据我的需要很好地配置了它。不幸的是,在播放列表视图中,3-4 秒后它将停止突出显示当前播放的歌曲,结果我忘记了我在播放列表中的位置(即使歌曲在标题中播放)。
有没有办法让当前播放的歌曲不断突出显示?我查看了许多 ncmpcpp 配置选项,但找不到相关内容。
这是正在发生的事情的 gif:http: //i.imgur.com/9eCOLyj.gif
这是 ncmpcpp 的配置文件:http: //pastebin.com/XTdQa2qb
这是 mpd 的配置文件:
music_directory "~/Music/albums"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/mpd.db"
log_file "~/.mpd/mpd.log"
pid_file "~/.mpd/mpd.pid"
state_file "~/.mpd/mpdstate"
auto_update "yes"
auto_update_depth "2"
audio_output {
type "osx"
name "aMat Mac Device"
mixer_type "software"
}
audio_output {
type "fifo"
name "my_fifo"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
bind_to_address "localhost"