2014-09-24 38 views
1

我已經安裝了icecast 2服務器和mpd。icecast找不到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掛載點。 謝謝

+0

我有同樣的問題!你能解決這個問題嗎? – jtanmay 2016-01-04 14:24:04

回答

1

我有同樣的問題,它似乎源於mpd.conf中的設置bitrate "128"。當我使用quality "5.0"時,我能夠獲得安裝點。

我也試過bitrate "320"也沒有工作,但是我也能夠看到與quality "10.0"安裝。由此看來,只有質量設定起作用。

我不完全確定,但我相信這是源於Vorbis編碼的方式。似乎編碼器接受-q {quality}形式的質量標誌,其中{quality}是從0.0到10.0的任何值(包括派系值)。

來源:

0

我不連接使用相同的設置來的Icecast任何問題,我看到的唯一區別是bind_to_address。這用於連接mpd客戶端,如果我沒有弄錯,而不是流媒體服務器。它不屬於audio_output。 另外,MPD日誌中是否有某些內容?