Due to hardware limitations, a camera can only support a maximum of 8 Unicast RTSP streams. If the user requires more streams, it may be necessary to use マルチキャスト.
1. Configure the camera マルチキャスト IP and Port by going to 設定 > ネットワーク> Advanced 設定s > マルチキャスト Parameter.

ストリーム ID: you can configure different multicast address for different streams.
ビデオポート:the port used to receive video stream
ビデオアドレス:The address should be multicast address, range from 224.1.1.1 to 239.255.255.255
ビデオ、オーディオ、メタデータに同じマルチキャスト IP アドレスを設定することをお勧めします。
2. デフォルトでは、カメラはマルチキャストアドレスにビデオストリーミングを送信しません。クライアントがカメラとの RTSP セッションを確立した後にのみ、マルチキャスト アドレスへのストリーミング データのブロードキャストが開始されます。
3. 正しいRTSP URLを使用してRTSPセッションを開始し、カメラがストリーミングデータをマルチキャストアドレスに送信できるようにします。
URL形式: rtsp://ip: rtsp port/snl/multicastlive/1/streamID?multicast=true
例えば:rtsp://192.168.2.134: 554/snl/multicastlive/1/2?multicast=true
上記のURLを使用してVLCプレーヤーを使用してRTSPストリーミングをリクエストすると、カメラはマルチキャストアドレスとポート情報で応答します(RTSP SETUP)。Wireshark を使用してネットワーク パケットを記録する場合、対話情報を次のように表示できます。

カメラがマルチキャストアドレス224.1.1.1にビデオデータの送信を開始します

4. VLCプレーヤーを使用して、マルチキャストアドレスからの複数のストリームを表示します。
方法1:Create multiple RTSP session
You can use the URL [rtsp://ip:RTSPport/snl/multicastlive/1/streamID?multicast=true]. To request several RTSP streams, specify [multicast=true]. Each time you request a stream with this URL, it will start a new RTSP session, but the camera will only transmit one stream to the multicast IP. The RTSP sessions allow you to start and stop each video stream separately, but they all use the same stream data from the same multicast address.
The camera will stop broadcasting streams to multicast addresses only once all RTSP sessions have been ended.

方法2:Create 1 RTSP session
You could utilize the URL [rtsp://ip:RTSPport/snl/multicastlive/1/streamID?multicast=true] to request a single stream first; once the RTSP session is established, the camera will begin to send stream data to the multicast address; you can then retrieve video data directly from the multicast address withoutrequesting another RTSP session from the camera.
Use the VLC player as an example:
VLC player can display stream data if you provide the correct multicast address, listening port, and video encoder information, which can be specified in a .sdp file.
For example, you can create a.txt file and enter the information shown below, then rename the file to .sdp and display it using VLC player.
v=0
c=IP4 238.255.255.255/60 インチ
t=0 0
m=ビデオ 5004 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 パケット化モード=1;プロファイルレベル ID=420033;sprop-parameter-sets=Z0IAM4mJUFgek2QAAA+gAAOpgBA=,aM48gA==
a=フレームサイズ:96 704-480
a=フレームレート:30.0
a=コントロール:trackID=0
a=recvのみ
パラメータの説明:
v:プロトコルバージョン
C:接続情報。VLC プレーヤーは、このパラメーターで定義された IP (238.255.255.255) からデータを取得します。
t: セッション タイムアウト時間。0 0 はタイムアウト制限がないことを意味します
M:メディア情報。VLC プレーヤーは、このパラメーターで定義されているリスニング ポート (5004) からデータを取得します
a: encode information including encode type (H264), resolution, frame rate, etc.. VLC player will try to decode data use the encode information defined in this parameter.

In Method 2, when you use a .sdp file to display a video stream, there is only one RTSP session andif that RTSP session is ended, the camera willstopdelivering data to the multicast address, and all of the players' video streaming will stop.
