icecast无法找到MPD mountpoint

时间:2014-09-24 20:04:35

标签: icecast mpd

我已经设置了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。

有人可以告诉我如何制作冰球看到mpd挂载点。 感谢

2 个答案:

答案 0 :(得分:1)

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

我也试过了bitrate "320"但也没有用,但是我也可以看到quality "10.0"的挂载。从这看起来似乎只有质量设置有效。

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

来源:

答案 1 :(得分:0)

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