第 5 章 Stream

简介:

目录

5.1. broadcast streaming
5.1.1. gnump3d - A streaming server for MP3 and OGG files
5.1.2. icecast2 - Ogg Vorbis and MP3 streaming media server
5.1.2.1.
5.1.2.2. installation from source
5.1.3. shoutcast
5.1.4. PeerCast
5.2. WebRTC

5.1. broadcast streaming

5.1.1. gnump3d - A streaming server for MP3 and OGG files

过程 5.1. 

  1. installation

    $ sudo apt-get install gnump3d				
    				
  2. configure

    $ sudo vim /etc/gnump3d/gnump3d.conf
    
     root = /var/music
    				
  3. copy some mp3 file to directory /var/music

  4. testing

    http://127.0.0.1:8888/

5.1.2. icecast2 - Ogg Vorbis and MP3 streaming media server

http://www.icecast.org/

5.1.2.1. 

过程 5.2. 

  1. installation

    $ sudo apt-get install icecast2
    					
  2. configure

    /etc/default/icecast2

    $ sudo vim /etc/default/icecast2
     #ENABLE=false
     ENABLE=true					
    					

    /etc/icecast2/icecast.xml

    					
          <authentication>
              <!-- Sources log in with username 'source' -->
              <source-password>your-password</source-password>
              <!-- Relays log in username 'relay' -->
              <relay-password>your-password</relay-password>
     
              <!-- Admin logs in with the username given below -->
              <admin-user>admin</admin-user>
              <admin-password>your-password</admin-password>
          </authentication>
    					
    					
  3. starting

    $ sudo /etc/init.d/icecast2 start
    					
  4. testing

    http://localhost:8000/

5.1.2.2. installation from source

过程 5.3. 配置步骤

  1. 安装lib库

    netkiller@Linux-server:~/icecast-2.3.1$ sudo apt-get install libxslt1.1
    netkiller@Linux-server:~/icecast-2.3.1$ sudo apt-get install libxslt1-dev
    netkiller@Linux-server:~/icecast-2.3.1$ sudo apt-get install libshout3
    netkiller@Linux-server:~/icecast-2.3.1$ sudo apt-get install libshout3-dev
    				
  2. $ sudo ./configure --prefix=/usr/local/icecast

    make;make install

    netkiller@Linux-server:~/icecast-2.3.1$ ./configure --prefix=/usr/local/icecast
    netkiller@Linux-server:~/icecast-2.3.1$ make
    netkiller@Linux-server:~/icecast-2.3.1$ sudo make install
    netkiller@Linux-server:~/icecast-2.3.1$ cd /usr/local/icecast/
    netkiller@Linux-server:/usr/local/icecast$ ls
    bin  etc  share
    				

    创建icecast2用户

    修改所有者

    netkiller@Linux-server:/usr/local/icecast$ cd ..
    netkiller@Linux-server:/usr/local$ adduser icecast2
    netkiller@Linux-server:/usr/local$ sudo chown icecast2.icecast2 -R icecast/
    				
  3. 运行icecast

    netkiller@Linux-server:/usr/local$ su icecast2
    netkiller@Linux-server:/usr/local$ /usr/local/icecast/bin/icecast -b -c /usr/local/icecast/etc/icecast.xml
    				
  4. 配置icecast

    管理员/密码

    admin-user: 管理员用户名

    admin-password: 管理员密码

    icecast2@Linux-server:/usr/local/icecast$ vi etc/icecast.xml
    
    
        <authentication>
            <!-- Sources log in with username 'source' -->
            <source-password>hackme</source-password>
            <!-- Relays log in username 'relay' -->
            <relay-password>hackme</relay-password>
    
            <!-- Admin logs in with the username given below -->
            <admin-user>admin</admin-user>
            <admin-password>chen</admin-password>
        </authentication>
    
    
    				
  5. 测试 http://netkiller.8800.org:8000/

5.1.3. shoutcast

shoutcast...

5.1.4. PeerCast

homepage: http://www.peercast.org/

Please enable JavaScript to view the &lt;a href="http://disqus.com/?ref_noscript"&gt;comments powered by Disqus.&lt;/a&gt;comments powered by Disqus






原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
2月前
|
存储 JavaScript 网络协议
Stream
【10月更文挑战第22天】
33 1
|
7月前
|
存储 Java API
Stream流
Stream流
70 1
|
6月前
Stream之flatMap
Stream之flatMap
|
6月前
|
API
Stream流知识
Stream流知识
39 0
|
6月前
|
存储 Java API
Java——Stream流(1/2):Stream流入门、Stream流的创建(认识Stream、体验Stream流、Stream流的使用步骤、获取Stream流的方法)
Java——Stream流(1/2):Stream流入门、Stream流的创建(认识Stream、体验Stream流、Stream流的使用步骤、获取Stream流的方法)
99 0
|
7月前
|
Java
Stream流教程
Stream流教程
82 0
|
Java 数据处理
常用Stream流
常用Stream流
152 0
|
存储 SQL NoSQL
Stream流的介绍
Stream流的介绍
147 0
Stream流的介绍
|
SQL Java 程序员
Stream流的操作
Stream流的操作
75 0

热门文章

最新文章