【问题标题】:icecast cannot find MPD mountpointicecast 找不到 MPD 挂载点
【发布时间】:2014-11-19 10:56:05
【问题描述】:

我也设置了 icecast 2 服务器和 mpd。

两者都单独工作正常,但 icecast 没有在挂载列表中显示 mpd。

这是我的 mpd.conf

# See: /usr/share/doc/mpd/mpdconf.example

user "ayush"
pid_file "~/.mpd/mpd.pid"
db_file "~/.mpd/mpd.db"
state_file "~/.mpd/mpdstate"
log_file "~/.mpd/mpd.log"
playlist_directory "~/.mpd/playlists"
music_directory "~/Music"

audio_output {
    type        "shout"
    encoding     "ogg"
    name        "stream"
    host        "localhost"
    port        "8000"
    mount   "/mpd.ogg"
    bind_to_address "127.0.0.1"

# This is the source password in icecast.xml
    password    "pass"

# Set either quality or bit rate
#   quality     "5.0"
    bitrate     "128"

    format      "44100:16:2"

# Optional Parameters
    user        "source"
#   description "here is my long description"
#   genre       "jazz"
} # end of audio_output

# Need this so that mpd still works if icecast is not running
audio_output {
    type "alsa"
    name "fake out"
    driver "null"
}

这也是我的 netstat 的输出

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      315/sshd            
tcp        0      0 0.0.0.0:17500           0.0.0.0:*               LISTEN      651/dropbox         
tcp        0      0 0.0.0.0:8000            0.0.0.0:*               LISTEN      8006/icecast        
tcp        0      0 0.0.0.0:16001           0.0.0.0:*               LISTEN      1211/pulseaudio     
tcp        0      0 0.0.0.0:57253           0.0.0.0:*               LISTEN      1211/pulseaudio     
tcp        0      0 0.0.0.0:60421           0.0.0.0:*               LISTEN      1211/pulseaudio     
tcp        0      0 0.0.0.0:4713            0.0.0.0:*               LISTEN      1211/pulseaudio     
tcp6       0      0 :::22                   :::*                    LISTEN      315/sshd            
tcp6       0      0 :::16001                :::*                    LISTEN      1211/pulseaudio     
tcp6       0      0 :::36418                :::*                    LISTEN      1211/pulseaudio     
tcp6       0      0 :::32899                :::*                    LISTEN      1211/pulseaudio     
tcp6       0      0 :::6600                 :::*                    LISTEN      8046/mpd            
tcp6       0      0 :::4713                 :::*                    LISTEN      1211/pulseaudio 

我的猜测是,因为 mpd 没有在 ipv4 上监听,icecast 无法看到挂载点。

但我也不明白为什么它不监听;当我明确使用 bind_to_address 选项时,不监听 ipv4。

谁能告诉我如何让icecast 看到mpd 挂载点。 谢谢

【问题讨论】:

  • 我也有同样的问题!你能在哪里解决这个问题?

标签: icecast mpd


【解决方案1】:

我遇到了同样的问题,它似乎源于 mpd.conf 中的设置 bitrate "128"。当我使用quality "5.0" 时,我能够显示挂载点。

我也尝试了bitrate "320",但也没有用,但是我也能看到quality "10.0" 的安装。由此看来,只有质量设置有效。

我不完全确定,但我相信这源于 Vorbis 的编码方式。编码器似乎接受-q {quality} 形式的质量标志,其中{quality} 是从0.0 到10.0 的任何值(包括派系值)。

来源:

【讨论】:

    【解决方案2】:

    使用相同的设置连接到icecast 没有任何问题,我看到的唯一区别是bind_to_address。如果我没记错的话,这用于连接 mpd 客户端,而不是用于流服务器。它不属于audio_output。 另外,MPD 日志中有什么内容吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-05-14
      • 1970-01-01
      • 1970-01-01
      • 2022-11-19
      • 2014-09-11
      • 2017-04-22
      • 1970-01-01
      相关资源
      最近更新 更多