Sending RTMP to Microsoft Stream Example

Last updated on May 10, 2021

You can send RTMP directly to MS Stream from Haivision Hub using an RTMP output hublet paired with a Makito X or Makito X4. To do this, you will need to configure some additional parameters to provide Azure Media Services (AMS) the stream bitrates of each media type. The preferred way is to set the Makito X encoding parameters to meet the MS Stream Requirements and then append the audio and video data rates to the RTMP output hublet Server Ingest URL. 

To configure an RTMP stream from Hub to MS Stream: 

  1. In Microsoft Stream, click the Create menu and select the Live Event option.


  2. When prompted, enter the details for your event and click Save

    Under Encoder Setup, a pair of ingest URLs appears. 

  3. Click the Server Ingest URL Copy button. These settings are used to configure the Hublet (see Step 7).


  4. On the Makito X encoderconfigure the output RMTP streams, and make note of the video and audio bitrate to be used when configuring the RTMP output hublet on Haivision Hub (see Step 8). NOTE: These values must match the streaming arguments being sent to the Microsoft Stream RMTP server.


  5. In Haivision Hub, create a new route.
  6. Create an Input hublet (an SRT Input hublet is shown in this example).

  7. Add an RTMP Output hublet.

  8.  In the Server Ingest URL field for the RTMP Output hublet, paste the Server Ingest URL you copied from Microsoft Stream.
  9. Next, at the end of the pasted Server Ingest URL, append the following bolded text with the values you made note of on the Makito using the following syntax:


    For example:



    • While the Microsoft specification calls for “strict CBR encoding”, Makito X VBR is known to work (with or without traffic shaping), as does the Makito X4 CVBR setting.  
    • While the Microsoft documentation on encoder settings recommendan upper limit of 720p30, Microsoft Stream has been confirmed to work with resolutions up to 1080p30 from a Makito X encoder. The important consideration is that the data rate values declared in the RTMP URL match the target data rates of the stream. 

  10. Finish configuring and then start your route.



Related Topics