生配信サイトを作る場合のメモ2
http://checker-site.hatenablog.com/entry/2016/06/12/190007
の続き。
特にRTMPS(Real Time Media Flow Protocol)について。
UDPでp2pなプロトコルなのでサーバーを介するRTMP(Real Time Messaging Protocol)と比べてサーバーの負担を減らすことができる。
商用ソフトとしては
・Adobe Media Server(AMS)
・Wowza Streaming Engine
フリーでオープンソースなRTMPSサーバーソフトは
・MonaServer
http://www.monaserver.ovh/
・Cumulus
https://github.com/OpenRTMFP/Cumulus
(どうもManaserverに置き換えられ、開発は停止されているらしい。
https://groups.google.com/forum/#!topic/monaserver/3I-VsRGWP6c
)
・ArcusNode
https://github.com/OpenRTMFP/ArcusNode
の3つ。
MonaServerはバイナリが用意されているので簡単に試すことができる。
OBSとMonaServerを使ってRTMFP通信をするテスト。
https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmfp-server-using-monaserver.153/
MonaServerをサーバーサイドで起動して、OBSで配信をつなぐ。
OBSの設定は例えばこんな感じ(プレイパスをtestに設定)。
配信を見るには例えば、ブラウザからこのサービスを使用する。
http://raspi.monaserver.ovh/MonaClients/VideoPlayer/?fit&url=rtmfp://127.0.0.1/test
疑問
・OBSでの接続ではRTMPでサーバーにつないでいる?
・flashのみで配信設定できればここの負担を減らすことができる?ウェブカメやマイクとつなぐのは容易だけど、ウインドウ画面取り込み等をするのが難しい?
・cavetube(とkukululive?)は配信中にブラウザで配信画面を移しているのは、配信者のflash playerを利用してFTMFP通信をしているためか?
参考
http://forums.whirlpool.net.au/archive/2505029
http://raspi.monaserver.ovh/MonaClients/VideoPlayer/?fit&url=rtmfp://127.0.0.1/test
https://helping-squad.com/monaserver-setup-and-configuration/
HLSについても調べたい。