用GoalBit架设P2P在线直播

GoalBit

http://sourceforge.net/apps/mediawiki/goalbit/index.php?title=Main_Page

Broadcasting ways

广播的方式有四种:

1 Using the GoalBit Services Manager
2 Using the web broadcasting at the Starter Suite
3 From the command line
4 Using the GoalBit desktop player

Deploy your platform

其实如果只是在广播视频的话,上面四种方法之一都是可以的。因此,可以用GoalBit Services Manager,也可以只用Starter Suite,或者用GoalBit Services Manager+Starter Suite 。不过,这三种方法都需要已经安装了GoalBit Web Plugin(当然,GoalBit Media Player也是可以的)。
经我试用,发现用GoalBit Services Manager+Starter Suite 是最好的。Starter Suite可以监控服务的状态,如流量、客户端数等。GoalBit Services Manager则可以发布一种称为Super Peers的节点,一个节点可以支持50个客户端的连接。

另外,可以在任意电脑上登录Starter Suite并进行 Web broadcast(需要GoalBit Web Plugin支持)。但是Starter Suite只能从文件、webcam 和 MRL 进行直播。
什么是MRL?这是VLC的一个专业术语,解释在这里
wikimedia也有相关解释: http://en.wikipedia.org/wiki/Media_resource_locator
其全称为:Media resource locator
格式如下:

1
[[access][/demux]://]URL[@[title][:chapter][-[title][:chapter]]] [:option=value ...]

如:

1
2
3
mms://10.10.100.106:8080/ :vout-filter=deinterlace :deinterlace-mode=blend
mms/asf://10.10.100.106:8080/
mms://10.10.100.106:8080/

Want to deploy your own platform? Start by downloading and installing the Starter Suite, then by downloading and installing the Services Manager, then by running a broadcaster with it, and finally by publishing your channel in some web page!
Advanced usage
So, you’ve been using the Starter Suite and creating channels and want to know more? Well, you can run broadcasters from the command line in Linux (and Windows) and support your channel with Super Peers.

GoalBit Services Manager

Starter Suite


Deploy a starter GoalBit platform from scratch

In a starter GoalBit platform live P2P video channels can be created, managed and distributed to viewers.
In a GoalBit P2P live video streaming three essential components must exist according to the GoalBit architecture:

  1. The Broadcaster (who creates the video streaming from some source).
  2. The Tracker (who knows the existence of the broadcaster and the viewers of a stream).
  3. The Viewer (who receives the streaming and watches it).

要架设好服务器,必须要了解the GoalBit architecture.

GoalBit is the first free and open source peer-to-peer platform for real-time video streaming in the Internet. It is a complete suite for live media distribution which implements the media generation, encapsulation, distribution and reproduction.
Live media can be captured from a file, capture card, webcam or another http/mms/rtp streaming following any of the Broadcasting ways. It can be encoded to many different formats (MPEG2/4-AVC, VC1, ACC, VORBIS, MPGA, WMA, etc.) and muxed into various containers (MPEG-TS, ASF, OGG, MP4, etc). The streaming encapsulation, defined as GoalBit Packetized Stream (GBPS), takes the muxed stream and generates fixed size pieces (chunks), which are later distributed using the GoalBit Transport Protocol (GBTP). As we will explain later, the GBTP uses a bittorrent-like approach. Finally (at the client side) the GoalBit Media Player or the GoalBit Web Plugin plays the video streaming consuming the pieces obtained through GBTP. For the reproduction we integrate the Videolan Media Player into our source code, therefore the final users does not need to install an external media player software.

更多
No Responses Post a comment

Leave a Reply

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS