Bosch Building Technologies

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    How to setup RTSP-Multicast by use of SDP file?

    When and why

    This article describes how to connect with for example VLC-player directly to the Multicast group where the Encoder is streaming into.

    Although the camera streams only 1x the RTP packets into the particular Multicast group, the camera keeps track on the clients that obtain the Multicast stream.
    Due to this, you will have a limitation of ~64 clients.
    This is because the connecting client asks the camera for a stream on its IPv4 address and the camera than directs them to the Multicast-group when applicable.

    When a client uses a SDP file during the connection, the MC-Address+port is known in advance and therefore direct join of the MC-Group is possible without sending a request to the camera first.

    By using this method the Maximum amount of client connections depends on the network capabilities and no longer on the camera.

     

    Prerequisites

    1. Before you can connect via the SDP-file, the camera must already stream into the MC-group you have defined in the file
      Therefore, ensure that at least 1 RTSP-Multicast connection is made via multicast on request.

      In this example we let 1st stream into specific IP 226.1.2.3 with port 60010; for this you can use following syntax:
      rtsp://10.0.7.252/&multicast_video=1&mc_group_video=226.1.2.3&mc_port_video=60010

      Note that
      : in the camera menu under Multicast settings turning ON the streaming has no effect for RTSP

      From release letter MPEG-ActiveX_6.34.0174.pdf
      MC Streaming works only if a RCP+ connection is established. If multicast streaming is enabled, a device can only connect to the stream if a RCP+ connection exists. Although the multicast address is enabled, the IP address must be set in addition



    2. Ensure the the used stream and its active encoding profile are configured
      • with a FIX GOP length (I-Frame distance) of e.g. 30 and not set to "Auto" this is to avoid I frame refreshment time out.
      • As well advice to use an IP-GOP structure (no B-Frames)
      • in case you doubt configure all 8 profiles like this

    3. Ensure your (Test) Network is Multicast capable and IGMP is active

     

    Step-by-step guide

     

    How to start:

     Create a SDP file:

    1. Start one stream into the MC group of choice,
      this is mandatory, if this is not done, you can also not connect with the SDP file because there will be no video flowing into the MC group

        rtsp://10.0.7.252/&multicast_video=1&mc_group_video=226.1.2.3&mc_port_video=60010

       

    2. Create a SDP file:

    1. Copy/paste below parameter into a text file,

    2. Edit the parameters

    3. Rename it to .sdp

    v=0
    o=- 0 0 IN IP4 <10.0.7.252>
    s=LIVE VIEW
    t=0 0
    m=video 60010 RTP/AVP 35
    c=IN IP4 226.1.2.3
    a=rtpmap:35 H264/90000

     

    Central_Support_0-1635764186242.png

     

    3       Open VLC and choose "Open file" , do this from multiple client PC's

    Central_Support_1-1635764219964.png

     

    4     Verify

    Check on debug page

    Open the camera debug page http://ipaddress/rtsp.htm
    In here you can check the active RTSP server and Media sessions.

    • First check the effect when not using the SDP file, you will see each new connecting client get listed and the re-use counter is increasing

    • Secondly test while connecting via the SDP-File, Below screenshot proofs that connecting via the SDP method doesn’t involve the camera.
      As the IP-address of the connecting client(s) 10.0.1.3 is not present in the RTSP session list
      nor the re-use counter will increase regardless of how many clients will connect via the SDP method, unlike when connecting via normal rtsp multicast where at each new connection the counter increases

    How to setup RTSP-Multicast by use of SDP file.png

    Version history
    Last update:
    ‎10-18-2023 01:36 PM
    Updated by:
    Contributors
    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist