2014-09-09 11 views
0

Icecast 서버와 Ezstream을 설치했습니다. 나는 아무런 브로드 캐스터가 온라인 상태가 아닐 때 재생 목록을 반복하는 /autodj.mp3이라는 또 다른 마운트 포인트로 /live.mp3 브로드 캐스트 (SAM 브로드 캐스터 mp3 엔코더에서)의 청취자를 옮기는 데 문제가 있습니다. "/live.mp3에서 /autodj.mp3으로 리스너를 이동하면 /live.mp3에있는 플레이어의 음악이 멈 춥니 다 .xml 파일에서 많은 수정을 시도했지만 문제를 찾을 수 없습니다. .청취자를 mountpoint/live에서/autodj (ezstream)로 이동하면 플레이어가 중지합니다.

<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> 

내 마운트 구성 : 비슷한 문제를 다루었 다 밖으로 여기 사람이 희망

내 ezstream의 .XML입니다 만약 /live.mp3에서 /autodj.mp3 로의 "fallback"도 작동하지 않는다는 것을 잊어 버렸습니다. 저는 Icecast를 처음 사용하기 때문에 초보자의 실수를 저 지르면 부드럽게 다루십시오.

답변

0

주 후에 나는 SAM Broadcaster가 ezstream보다 다른 인코더를 가지고 있다는 것을 알았습니다. 그래서 다운로드하여 샘과 내 서버에 LAME 인코더를 설치했습니다. 그런 다음 디코딩을 위해 서버에 madplay를 설치했습니다. 마지막으로 내 ezstream xml에 다음 행을 추가했습니다.

<reencode> 
    <enable>1</enable> 

    <encdec> 

    <format>MP3</format> 
    <match>.mp3</match> 

    <decode>madplay -b 16 -R 44100 -S -o raw:- "@[email protected]"</decode> 
    <encode>lame --preset cbr 128 -r -s 44.1 --bitwidth 16 - -</encode> 

    </encdec> 
</reencode>