Azure Media Services custom streaming/recording (RTMP) setup

Azure Media Services is enterprise ready media streaming and encoding service offered by Microsoft. It is highly customisable and configurable with the ability to apply enterprise policies to the distribution of the content.

For more information see the Microsoft website https://azure.microsoft.com/en-au/services/media-services/

Please be aware this article does not cover the full configuration options that are available in Azure platform, only how to configure a channel for RTMP ingestion of the Pexip Videxio VMR stream.

It is recommended that you become familiar with the My Pages streaming integration prior to configuring an Azure custom RTMP stream.

Distribution of the live stream and/or recording is out of scope for this document.

 

Create a Media Service

From the Azure Dashboard search for or select 'Media Services'

Screen_Shot_2019-03-06_at_2.39.40_pm.png

 

Select '+Add' or 'Create media service' button to create a new service

Screen_Shot_2018-12-03_at_1.24.01_pm.png

 

Then create a Media Service or use existing Account Name, Subscription, Resource Group and Location

 

Screen_Shot_2019-03-01_at_2.23.27_pm.png

 

Select a storage account or create a new one

Screen_Shot_2019-03-01_at_2.24.57_pm.png

Screen_Shot_2019-03-01_at_2.25.40_pm.png

When creating a storage account you can choose the specific type account based on your requirements. 

*Currently only tested with General Purpose v1

 

Screen_Shot_2019-03-01_at_2.27.02_pm.png

 

Once the previous task are complete click Create and this will build your asset. This will take a few minutes to complete.

 

Screen_Shot_2019-03-01_at_2.29.42_pm.png

 

 Once it has completed go to your Resources

Screen_Shot_2019-03-01_at_2.33.28_pm.png

Azure Channel

Now create a channel by scrolling or searching 'Live Streaming' then choose 'Quick Create' or 'Customer Create'. Quick Create is shown here.

A channel is a Microsoft name for a live video encoder.

 

Screen_Shot_2019-03-01_at_2.36.28_pm.png

 

For 'Quick Create' name the channel and then click 'Create'. This will take a few minutes to deploy the channel

Screen_Shot_2019-03-01_at_2.37.10_pm.png

 

While the channel is being deployed the message 'Starting Channel' will be displayed

Screen_Shot_2019-03-05_at_4.49.03_pm.png

Once the channel is set up the channel Dashboard will be displayed. This page is the control centre for the streaming channel and live events.

This page has the ingestion URL's that will be used to send the RTMP stream to the channel (video encoder).

Copy the Ingest URL as you will need to use this for the My Pages streaming integration

 

Screen_Shot_2019-03-06_at_12.00.56_pm.png

 

 After the channel is first created a default live event will be created.

Screen_Shot_2019-03-06_at_12.00.01_pm.png

Azure Streaming Endpoints

You will now need to create a streaming endpoint to send the RTMP stream for encoding.

Streaming Endpoints entity represents a streaming service that can deliver content directly to a client player application, or to a Content Delivery Network (CDN) for further distribution.

From the side bar menu scroll or search to locate the menu item 'Streaming Endpoints'

In this menu you will see that default endpoint linked to the default live event already exists. You can use the default endpoint or create new endpoint.

If you select the default endpoint you will go in the endpoint page.

 

Screen_Shot_2019-03-06_at_12.04.44_pm.png

 

From the endpoint screen can now click 'Start' to initiate the endpoint. This will take approximately 30 seconds to start.

Screen_Shot_2019-03-06_at_12.06.29_pm.png

 

 

Configure My Pages Streaming for Azure 

As a logged in Videxio My Pages user go to 'Live Streaming and Recording'

Then make sure have enabled a Custom RTMP on your Live Events/Recording page

Screen_Shot_2019-03-01_at_2.40.01_pm.png

 

To check to see if RTMP events are enabled from the 'Live events and Recordings' page 

Screen_Shot_2019-03-01_at_2.42.06_pm.png

Here you will see that RTMP is enabled on this account

Screen_Shot_2019-03-01_at_2.42.25_pm.png

Please see this article for information on how to schedule streaming see the followin article How to Setup Custom streaming recording RTMP in My Pages

 

When either scheduling or creating an adhoc stream you will need to input the ingest URL

 

The Ingest URL will look similar to below:

rtmp://streamtest-pexcloud-aueas.channel.media.azure.net:1935/live/ca6f0e892f4342449857f15e648ee589

When inputting it in to My Page you will need to apend the RTMP stream with an extension, for example we will use pexstream:

rtmp://streamtest-pexcloud-aueas.channel.media.azure.net:1935/live/ca6f0e892f4342449857f15e648ee589/pexstream

 

Screen_Shot_2019-03-06_at_4.02.22_pm.png

 

Starting and Playing the Stream

Once the stream starts in My Pages you can go in to the Azure Channel Dashboard

Select the Live Event (default in this example) 

Screen_Shot_2019-03-06_at_12.11.21_pm.png

Then click Watch Preview to ensure that the encoder is 

Screen_Shot_2019-03-06_at_12.12.52_pm.png

This will open the embedded media player to preview the stream. If you see the stream from you VMR the stream is being sent to the encoder and you're ready to go.

 

Screen_Shot_2019-03-06_at_12.14.08_pm.png

 

From the Locators on the Live Event page you can distribute different versions of the stream

 

Screen_Shot_2019-03-06_at_12.16.29_pm.png

 

Screen_Shot_2019-03-06_at_12.16.44_pm.png

 

Once the stream is complete, please ensure that you stop the Live Event. If the Live event continues to run it will consume your account credits or your account will be charged.

 

Please see this article about distributing Azure streaming clients:

https://docs.microsoft.com/en-us/azure/media-services/latest/use-azure-media-player

 

For detailed Azure Media Services documentation, please see the following page:

https://docs.microsoft.com/en-us/azure/media-services/latest/

 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.