Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

Microsoft Azure – Azure Media Service

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

Azure Media Service is a cloud-based platform that enables you to build media-based solutions.  Examples like OTT (Over-The-Top Media Service), Live Streaming Apps like Youtube, Vimeo, Facebook live stream,…etc.

Encoding Videos for different formats for different platforms. Encoding Services – Indexer, Hyperlapse, Face Detector and Face Redaction, Motion Detector, Video Thumbnails, OCR and Content Moderator.  

Content Protection must have a license to view this content. Geo-Protect Videos, Storage encryption Various policies, and many more. 

Azure Media Service also offers other services like Unlock Insights, Telemetry, Fully Programmable.  

Azure Media Service Creation:

Step 1: Log in to Azure Portal.

Step 2: After Logging in Click on Create a resource  Or you can search Media Service from Search Bar.

Step 3: Search for Media Service and Select Media Service from Search Suggestion.  

Step 4: Click on Create button to Create a Media Service Account.

Step 5: Fill in the Basic Details like Subscription, Resource Group Name

  • Fill Media Service Account Name, Location.

Step 6: For Storage Account Name Click on Create Storage Account. It will redirect to New Window.

Step 7: Now, Create a Storage Account – Provide Storage Account Name, Storage Account Kind, Storage Account Replication, and then click on OK.  

Step 8: You can enable Classic APIs – Enabling classic features will allow you to use classic V2 APIs but will disable advanced security features such as managed identities. This setting cannot be reverted later.  

Note: Here, we are not enabling classic APIs for Best Practises

For Advanced Setting, create a new user-assigned managed identity.  (Optional)

Step 9: Review the filled details and click on Review and Create to create a resource.  

  • Before Deployment just Verify your filled details then click on Create to provision the resource.

Step 10: Once deployment is done. Click on “Go to resource” to configure a media service.

Azure Media Service Implementation:  

Encoding a Video Source by Upload a Media Asset:  

Step 1: The first step is to create a Job.

  • Select Input Source >> Asset, for Input asset name >> Click on Upload new to choose or if you have an existing you can select from that source as well by clicking on Select an existing asset

Step 2:  Select your video File and Click on Upload File. You can rename you Asset Name as of your naming convention and then click on “I agree and upload”

Step 3: Once the video is uploaded then you have to Select a transform for that click on “create new” and then provide the name of transform in Transform name and provide your use case description and transform type >> Encoding

  • Add Job – Fill up the following details and then click Add button.  

  • For Configure output, Enter a unique Output asset name, select your created Asset storage account, give a unique Job name and Select Job priority >> High from drop down.

Step 4: Once you fill in all the details, just verify the given details then Click on Create to create a job.

Step 5: Once the deployment is going to your created asset and copy the Streaming URL, open the Azure Media Player, and paste the link, check video is displaying or not.

Azure Media Player Link:

Note: You can configure these streaming urls in own private B2C websites. So that these video will be only accessible from your own trusted website. (For example like Amazon Prime Videos and Netflix Web Apps/Mobile Apps)

Advantages of using Azure Media Services:

  1. Encoding can be done easily for Video sources.
  2. High Security for Copyright Video. Work only at Selected Domain Source
  3. Audio Encoding is another advantage.
  4.  We can Enable a Content Delivery Network (CDN) for accessing high speed and providing a good user experience.
  5. Live Streaming Support with High Bandwidth
  6. Analytics of each and every azure media service in-depth like usage, geo, views streamed devices,…etc.
  7. Content Protection
  8.  Fast and Secure Content Ingest.

Azure Media Service Pricing:

For Video On Demand Service, the Standard Encoder Pricing starts at ₹1.126 per output minute, and for Premium Encoder ₹2.626 per output minute.

You can have a look for more details about the Azure Media Services pricing here.

Step 1: Navigate to the following page and go to Explore pricing options (refer below image), Choose your azure media service Deployment Region and Select your Currency from the drop-down to Check the Pricing of different Services.

Step 2:  After Selecting your Region and Country. Now you can check various pricing details like Analytics, Encoding, Live Video, Streaming and Content protection.

That’s it!

My Personal Notes arrow_drop_up
Last Updated : 30 Mar, 2023
Like Article
Save Article
Similar Reads
Related Tutorials