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...
    [25/Aug/2001:00:42:14] Icecast Version 1.3.11 Starting..
    [25/Aug/2001:00:42:14] Starting Admin Console Thread...
    -> [25/Aug/2001:00:42:14] Starting main connection handler...
    -> [25/Aug/2001:00:42:14] Listening on port 8000...
    -> [25/Aug/2001:00:42:14] Listening on port 8001...
    -> [25/Aug/2001:00:42:14] Using 'taro' as servername...
    -> [25/Aug/2001:00:42:14] Server limits: 900 clients, 900 clients per source, 10 sources, 5 admins
    -> [25/Aug/2001:00:42:14] WWW Admin interface accessible at http://taro:8000/admin
    -> [25/Aug/2001:00:42:14] Starting Calender Thread...
    -> -> [25/Aug/2001:00:42:14] Starting UDP handler thread...
    -> [25/Aug/2001:00:42:14] Starting relay connector thread...
    -> [25/Aug/2001:00:42:14] [Bandwidth: 0.000000MB/s] [Sources: 0] [Clients: 0] [Admins: 1] [Uptime: 0 seconds]
    -> 
    

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

    # /usr/local/icecast/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 2260282374094852.13835035480934056480 seconds
    Transfer rate average 6533446.244728bps
    Lowest sleep time: 989999 microseconds
    Now using an overhead factor of 0.000000
    
    [/usr/local/icecast/static/SOS.mp3]
    [3:25] Size: 3282944 Bitrate: 128000 (42089 bytes/dot)
    [..............................................................................]
    Done:
     Sent 3282816 bytes in 900134950928384.13835035480934058752 seconds
    Transfer rate average 125310875.612538bps
    Lowest sleep time: 998727 microseconds
    Now using an overhead factor of 0.000000
    


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.