Azure management portal provides a way to create and configure an Azure Media Service (AMS) account. By using a Media service account the users are able to store, encode, encrypt and decode media content such as video in Azure portal.
The following are the requirements to create Azure Media service in Azure portal.
To complete this article, you need to have an Azure account. If you're new to Azure, I recommend reading Introduction to Microsoft Azure.
Let’s get started.
Follow the steps to create AMS using Azure portal.
Step 1
Login into Azure management portal by clicking Login to create Azure Media Service Account.
Step 2
Click New from New blade, select Web + Mobile and it finds Media Services.
Step 3
In create Media Services account, enter the required credentials.
- Account Name
Enter the name of your new Azure Media Service account. Azure Media Service account name should be in lowercase.
- In subscription, select your subscription level.
- Location
Select any region in which Media Service account is created and store the media also.
- In storage account, select already created storage space or else create a new storage account in the same region in which Media Service account is created.
- Select Pin to dashboard to pin Media Service account in Azure dashboard.
Step 4
Click create at the bottom of the form. It takes some time on Azure management portal to create an account.
Manage Keys
In Azure portal, select your Azure Media Service account. The settings for your account will be displayed.
In settings Window select Keys. This shows Account name, primary key and secondary key.
Note
Press copy button to copy the values.
Upload file
In Azure portal, select your Azure Media Service account. The settings for your account will be displayed. In settings Window, select Assets. In Assets Window, select upload.
Uploaded video assets Windows appears followed by clicking browse button followed by selecting the desired video file from the computer and click OK.
The upload starts and you can see the progress under the file name.
Once the upload completes, you will see the new asset listed in the Assets Window.
To Encode, Analyze and Publish
Now, select your account name. The settings Window will open in the selected Assets.
Assets Windows contains an uploaded video. Here, we have uploaded a video. Select video followed by assets Windows for particular Window appears.
Now click encode. Finally, encode an assets Window appears. It contains a media encoder name, encoder preset, job name, output media assets name; and click create.
Now, click 'encoding job added' It automatically displays job task with its state and progress.
Once encoding is complete, click publish and it automatically opens and publishes the assets. It contains start date time and end date time. Finally, click Add button. It is automatically published.
Now, click Analyze. Finally, 'analyze assets Window appears'. It contains media processor name, speed, job name, output media assets name and click create.
Now, click 'Media analytic job added' and it automatically displays job task with its state and progress.
Once analytics completes, click publish and it automatically opens and publishes the assets. It contains start date time and end date time. Finally, click Add button. It is automatically published.
Now, click More and then select Play option to play the video. Here, we are using Azure Media Hyper-lapse.
Output
Output for media analytics hyper lapse state is given below.
I hope, you enjoyed reading this article. Thanks for reading. Happy coding.