> For the complete documentation index, see [llms.txt](https://catenoid-support.gitbook.io/loomex/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://catenoid-support.gitbook.io/loomex/jp/loomex-yzgaido/live.md).

# LIVE

LoomexのLIVEについて説明します。

&#x20;

### **ライブ放送** <a href="#loomexlive-raibu" id="loomexlive-raibu"></a>

視聴者のプレイヤーに転送し動画をリアルタイムで転送し、ライブストリーミングで同時放送されます。ライブ放送はYouTube, FacebookなどのSNSアカウントに連係して複数のチャンネルに同時に送出することができます。

&#x20;

### **ライブ構成要素** <a href="#loomexlive-raibu" id="loomexlive-raibu"></a>

***

ライブ放送は以下の要素で構成されます。

#### **原本映像** <a href="#loomexlive-yuan-ben-ying-xiang" id="loomexlive-yuan-ben-ying-xiang"></a>

ライブストリーミング基盤のリアルタイムライブ原本映像はカメラまたはスマートフォンで撮影します。既存の映像を活用したライブ放送を配信する場合にはストレージに保存された録画映像でストリーミング配信を行います。

#### **ライブエンコーダー** <a href="#loomexlive-raibuenkd" id="loomexlive-raibuenkd"></a>

カメラで撮影した原本映像はデータ容量が大きいため、原本映像を圧縮するエンコーダーが必要です。原本映像を指定の形式で圧縮し、圧縮された映像をメディアサーバーに転送します。

#### **メディアサーバー** <a href="#loomexlive-mediasb" id="loomexlive-mediasb"></a>

ライブエンコーダーから転送された圧縮映像を解析し、視聴環境で再生できる標準リアルタイムストリーミングプロトコール形式のRTMP(Realtime Messaging Protocol), RTSP(Realtime Streaming Protocol) または HLS(HTTP Live Streaming)形式に再度変換します。

#### **転送サーバー** <a href="#loomexlive-sb" id="loomexlive-sb"></a>

メディアサーバーでリアルタイムに生成された動画ファイルを視聴者へ届けます。通常、メディアサーバーは転送サーバーも兼ねて使用することが可能ですが、同時視聴が多い放送の大規模トラフィックを処理するためにはCDN(Content Delivery Network)が必要です。

{% hint style="info" %}
**参考**

コンテンツデリバリーネットワーク(CDN)はクライアントとWebサイトサーバーの間にサーバーを設置し、視聴者と距離が近いCDNサーバーに保存されている高品質のメディアファイルを安定的かつ効率的に提供することができます。
{% endhint %}

&#x20;

### **リアルタイムライブ** <a href="#loomexlive-riarutaimuraibu" id="loomexlive-riarutaimuraibu"></a>

***

外部エンコーダーにサーバーアドレスとストリームキーを入力し、ライブストリーミングを送出するエンコーダーライブと、ストリーミングURLを入力して送出するURLライブの2種類があります。また、ライブ送出機能（シンジケーション）を使用して外部プラットフォームへ同時に送出することができます。

#### **エンコーダーライブ** <a href="#loomexlive-enkdraibu" id="loomexlive-enkdraibu"></a>

RTMP対応タイプのエンコーダーを使用したライブ配信です。生成したRTMP URLとストリームキーをエンコーダーに入力してライブストリームを送出します。

<figure><img src="/files/ADOPGkKP4NzfmFHcx8ZL" alt=""><figcaption><p>OBS Studioの入力画面</p></figcaption></figure>

#### **URL ライブ** <a href="#loomexlive-urlraibu" id="loomexlive-urlraibu"></a>

Stream URLを使用したライブ配信です。RTMP/RTSPまたはHLSプロトコールに対応するURLを入力してライブストリームを送出します。Stream URLとプロトコールタイプが異なる場合には送出できません。

&#x20;

### **編成ライブ** <a href="#loomexlive-raibu" id="loomexlive-raibu"></a>

***

編成ライブはイベント編成（NVOD, Near Video On Demand, 指定した時刻になるとVODファイルがライブ形式で放送）とリニア編成（File Live, 指定した時間帯に合わせてVODファイルを24時間ライブ形式で放送）の2種類があります。

#### **リニア編成ライブ** <a href="#loomexlive-riniaraibu" id="loomexlive-riniaraibu"></a>

ライブラリのVOD映像のプレイリストを生成し、24時間ライブストリームを送出することができます。ライブ映像はリニアストリーム(linear stream)形式で送出されます。

<figure><img src="/files/Lq8gTpqVR6VmsA7EXdWN" alt=""><figcaption><p>リニア編成ライブ</p></figcaption></figure>

#### **イベント編成ライブ** <a href="#loomexlive-ibentoraibu" id="loomexlive-ibentoraibu"></a>

ライブラリのVOD映像を指定した時刻にライブストリームを送出することができます。編成リストの映像はイベントストリーム(event stream)形式で送出されます。

<figure><img src="/files/1D06co7YKZyWpeXuzmML" alt=""><figcaption><p>イベント編成ライブ</p></figcaption></figure>

### **対応プロトコール** <a href="#loomexlive-purotokru" id="loomexlive-purotokru"></a>

***

Loomexで対応しているリアルタイムライブストリーミングのプロトコールは以下の通りになります。

* RTMP(Real Time Messaging Protocol): リアルタイムメッセージングプロトコール、オーディオ・ビデオとその他のデータをインターネットを通してストリーミングする際に使用します。ポート番号は80と1935を使用します。
* RTSP(Real Time Streaming Protocol): RTP 規約を使用したオーディオ・ビデオデータを転送します。ポート番号は554を使用します。
* HLS(HTTP Live Streaming): HTTP リアルタイムストリーミングで Apple iPhone, iPad, iPodに搭載されたiOSで使用される標準HTTP基盤ストリーミングプロトコールです。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://catenoid-support.gitbook.io/loomex/jp/loomex-yzgaido/live.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
