Main Page | 最近更改 | 編輯本頁 | 頁面歷史

可列印版 | 免責聲明 | 隱私政策

未登入
登入 | 幫助
 

Icecast2 Intro

出自DebianWiki

目錄

[編輯] 基本原理

Client  —→   Server (icecast2) 
       ↑                      ↓
       └-----------  Streamer (darkice) ←— Source

它的運作方式就如上,client 端一般都是 stream player (串流播放軟體),連接到 server 後,server 就像中介人一樣,它會幫你連接到 streamer 上,streamer 就會直接抓 source 送資料給 stream player 播放。

[編輯] 安裝

[編輯] Server 端

 apt-get install icecast2

[編輯] Client 端

 apt-get install ices2
 apt-get install darkice

[編輯] 設定方式

[編輯] Server 設定方式

[編輯] Client 設定方式

[編輯] 執行

 # /etc/init.d/icecast2 stop
 # /etc/init.d/icecast2 start
(其實可以直接用 /etc/init.d/icast2 restart,但我在用時有時候沒啥用)

如果沒有錯誤訊息就可以直接連到 http://127.0.0.1:8000/,預設會看到狀態頁,你會發現什麼內容都沒有,這是正常的。

# darkice -c /path/to/foo.xml
(執行檔是可以放在任何地方的,所以要指定路徑)

這時再連到 http://127.0.0.1:8000/ 你就會發現你的 streamer 秀在頁面上啦!

[編輯] darkice 設定檔範例

都安裝好後,連到 server 網址上後就會看到你所設定的 streamer 資訊,你可以直接點擊,籍由 realplayer 來收聽。
都安裝好後,連到 server 網址上後就會看到你所設定的 streamer 資訊,你可以直接點擊,籍由 realplayer 來收聽。
       [general]
       duration        = 600                          // 設定 darkice 執行 10 分鐘
       bufferSecs      = 5

       [input]
       device          = /dev/dsp                 // 這是麥克風的 output
       sampleRate      = 22050
       bitsPerSample   = 16
       channel         = 2

       [icecast2-0]
       format = vorbis                             // 格式為 ogg
       bitrateMode     = cbr
       bitrate         = 96
       quality         = 0.8
       server          = 127.0.0.1              // 這只是名稱,可以自己隨便寫
       port            = 8000
       password        = hackme
       mountPoint      = live
       name            = DarkIce trial
       description     = This is only a trial
       url             = http://127.0.0.1/
       genre           = live
       public          = no
       fileAddDate     = no

[編輯] 相關資源

取自"http://wiki.debian.org.tw/index.php/Icecast2_Intro"

本頁面已經被瀏覽11,224次。 這頁的最後修訂在 2005年4月26日 (星期二) 13:33。 本站的全部文本內容在GNU Free Documentation License 1.2之條款下提供。


[Main Page]
Main Page
社區
近期活動
最近更改
隨機頁面
幫助
贊助

編輯本頁
討論本頁
頁面歷史
鏈入頁面
鏈出更改

特殊頁面
錯誤報告