将监听器从mountpoint/live移动到/autodj(ezstream)将停止播放器



我已经安装了一个Icecast服务器和Ezrtream。我在将/live.mp3广播的听众(从SAM广播公司mp3编码器)移动到另一个名为/autodj.mp3的装入点时遇到问题,该装入点在无广播公司在线时循环播放列表。当我按下"将听众从/live.mp3移动到/autodj.mp3"时,正在播放/live.mp3的播放器上的音乐停止。我尝试过对xml文件进行多次修改,但找不到问题所在。我希望这里有人处理过类似的问题。

我的ezstream.xml是:

<ezstream>
   <url> http://xx.xxx.xxx.xxx:8000/autodj.mp3 </url>
  <sourcepassword>xxx</sourcepassword>
  <format>MP3</format>
  <filename>/home/mp3/p.txt</filename>
  <shuffle>1</shuffle>
  <stream_once>0</stream_once>
  <svrinfobitrate>128</svrinfobitrate>
  <svrinfochannels>2</svrinfochannels>
  <svrinfosamplerate>44100</svrinfosamplerate>
  <svrinfopublic>0</svrinfopublic>
</ezstream>

以及我在icecast.xml上的挂载配置

<mount>
   <mount-name>/live.mp3</mount-name>
   <password>XXX</password>
   <max-listeners>100</max-listeners>
   <fallback-mount>/autodj.mp3</fallback-mount>
   <fallback-override>1</fallback-override>
   <fallback-when-full>1</fallback-when-full>
   <public>1</public>
   <stream-url>http://xx.xxx.xxx.xx:8000/auto.mp3</stream-url>
   <bitrate>96</bitrate>
   <type>application/mp3</type>
   <subtype>mp3</subtype>
   <mp3-metadata-interval>4096</mp3-metadata-interval>
</mount>
<mount>
   <mount-name>/autodj.mp3</mount-name>
   <password>xxx</password>
   <max-listeners>100</max-listeners>
   <public>1</public>
   <stream-url>http://xx.xxx.xxx.xx:8000/autodj.mp3</stream-url>
   <bitrate>128</bitrate>
   <type>application/mp3</type>
   <subtype>mp3</subtype>
   <mp3-metadata-interval>4096</mp3-metadata-interval>
</mount>

如果忘记提及,从/live.mp3到/autodj.mp3的"回退"也不起作用。我是Icecast的新手,所以如果我犯了一个制造者的错误,请温柔一点。

一周后,我发现SAM Broadcaster的编码器与ezstream不同。所以我在Sam和我的服务器上下载并安装了LAME编码器。然后我在服务器上安装了madplay进行解码。最后在我的ezstream xml上添加了以下几行:

<reencode>
   <enable>1</enable>
   <encdec>
     <format>MP3</format>
     <match>.mp3</match>
     <decode>madplay -b 16 -R 44100 -S -o raw:- "@T@"</decode>
     <encode>lame --preset cbr 128 -r -s 44.1 --bitwidth 16 - -</encode>
   </encdec>
</reencode>

最新更新