icecastでMP3ストリーミング


ライブ形式配信の場合(icecast+shout)

  • まず、「icecast」コマンドでicecastを起動します。

    # /usr/local/icecast/bin/icecast
    Icecast Version 1.3.11 Initializing...
    Icecast comes with NO WARRANTY, to the extent permitted by law.
    You may redistribute copies of Icecast under the terms of the
    GNU General Public License.
    For more information about these matters, see the file named COPYING.
    Starting thread engine...
    [01/Sep/2001:14:37:58] Icecast Version 1.3.11 Starting..
    [01/Sep/2001:14:37:58] Starting Admin Console Thread...
    -> [01/Sep/2001:14:37:58] Starting main connection handler...
    -> [01/Sep/2001:14:37:58] Listening on port 8000...
    -> [01/Sep/2001:14:37:58] Listening on port 8001...
    -> [01/Sep/2001:14:37:58] Using 'taro' as servername...
    -> [01/Sep/2001:14:37:58] Server limits: 900 clients, 900 clients per source, 10 sources, 5 admins
    -> [01/Sep/2001:14:37:58] WWW Admin interface accessible at http://taro:8000/admin
    -> [01/Sep/2001:14:37:58] Starting Calender Thread...
    -> [01/Sep/2001:14:37:58] Starting UDP handler thread...
    -> [01/Sep/2001:14:37:58] Starting relay connector thread...
    -> -> [01/Sep/2001:14:37:58] [Bandwidth: 0.000000MB/s] [Sources: 0] [Clients: 0] [Admins: 1] [Uptime: 1 seconds]
    -> 
    

  • 次に、「shout」コマンドでshoutを起動します。shoutが起動された時点からプレイリスト(shout.playlist)で指定されているファイルがライブ形式で配信されます。

    # /usr/local/bin/shout taro
    Shout version 0.8.0 - www.icecast.org
    
    Connected: [taro:8000\default]
    
    [/usr/local/icecast/static/DANCING QUEEN.mp3]
    [3:51] Size: 3696640 Bitrate: 128000 (47392 bytes/dot)
    [..............................................................................]
    Done:
     Sent 3696512 bytes in 993425935564800.13817020017273202493 seconds
    Transfer rate average 127851690.445309bps
    Lowest sleep time: 990000 microseconds
    Now using an overhead factor of 0.000000
    
    [/usr/local/icecast/static/SOS.mp3]
    [3:25] Size: 3282944 Bitrate: 128000 (42089 bytes/dot)
    [......
    


MP3プレーヤからのライブ配信へのアクセス

  • LAN上のクライアントからは、例えばWindowsのWinampや、LinuxのXmmsなどのプレーヤからMP3ファイル名を指定してアクセスします。Winampならば、右クリックメニューの「Play Location」で以下のURLを指定します。Xmmsならば、右クリックメニューの「URLを再生」で以下のURLを指定します。サーバに接続が行われライブ形式で配信されているMP3ファイルが再生されます。

    http://taro:8000/
    



前に戻る | 次へ進む

トップへもどる


Copyright (c) 2001 Hiroshi Nakamura. All rights reserved.