Azure Media services just announced the public preview of its Live streaming service. This tutorial will show you how to set up live streaming with Azure Media Services .NET SDK. You can download full source code in our GitHub. Meanwhile, if you want to skip the coding part, please check out Getting Started with Live Streaming Using the Azure Management Portal. Read more here
This blog shows you how to generate Http Live Streaming (HLS) version 3 via Azure Media Services, which is a new feature we recently added, in order to support HLS playback in a wider range of Android devices. According to Google, Android platform supports Http/Https Live streaming playback, with the following restrictions:
- • MPEG-2 TS media files only
- • Protocol version 4 (Android 4.4 Kitkat)
- • Protocol version 3 (Android 4.0 and above)
- • Protocol version 2 (Android 3.x)
- • Not supported before Android 3.0
This blog explains the demo of using .NET SDK to complete a typical video-on-demand workflow – upload, encode, package and stream.
1. Create a C# console application through Visual Studio and install Nuget package: windowsazure.mediaservices.
2. I upload a little sample video file for you to use: http://mingfeiy.com/wp-content/uploads/2013/06/azure.wmv. And I put this video file under “C:\tr\“. Therefore, I suggest you create the same folder under your C drive so you don’t need to change input video file path.
3. Here are two config XML you are going to use as video presents: Smooth Streaming Config xml and Http-live-streaming config xml. Similarly, I put them under “C:\ty\”. Certainly, you could get this config from MSDN but since it is a very long string, it is easy to just read from a xml file. Read more here
I am excited to announce that our Windows Azure Media services Extension SDK version 2.0 just released! If you were using the first version of extension SDK, please pay attention because this version includes a few breaking changes – we had a round of redesign for our existing extension APIs.
What is extension SDK?
This extension SDK is a great initiative by developer Mariano Conveti from our partner Southworks. This SDK extension library contains a set of extension methods and helpers for the Windows Azure Media Services SDK for .NET. You could get the source code from Github repository or install Nuget package to start using it. Read more here
I am excited to introduce this great open source project – Extensions for Windows Azure Media Services by Mariano Converti from Southworks. Microsoft has been working with Southworks for many projects and as mentioned by Mariano in his blog, the motivation for this project is that “I wanted to have it <SDK> available in a more consumable and reusable way instead of having to search/copy/paste/tweak the code every time.”
This blog post is a walk-through on how to create HLS and Smooth Streaming assets using dynamic packaging with Windows Azure Media Services (WAMS), by using .NET SDK.
What is dynamic packing?
Before talking about dynamic packing, we have to mention what’s the traditional way of doing things. If you want to delivery both Http Live Streaming and Smooth Streaming, you have to store both of them. Therefore, you stream HLS content to iOS devices and Smooth Streaming content to Windows 8 for instance. However, by using dynamic packing feature in WAMS, You only need to store a Mp4 file in your storage, and we dynamically packaging Mp4 file into HLS or Smooth Streaming based on your client request. If it needs HLS stream, we will package Mp4 into HLS on the fly, and serve out to your client. In this case, you no longer need to store a copy of smooth streaming and HLS, hence, we help you save storage cost by half at least. This diagram below demonstrates what I just described: Read more here
On Dec 14th 2012, we update our .NET SDK to 126.96.36.199 and you could download the latest SDK here. And starting from yesterday (Jan 14th, 2013), we drop the support for older version of .NET SDK, which we released in Preview. In another word, our server no longer recognizes some of your old APIs. If you find your older version of .NET SDK no longer works, don’t panic! Please read through this blog and see whether you could fix the code.
If you want to deliver video content to iOS devices and platform, the best option you have is to package your content into Http Live Streaming. HLS is Apple’s implementation of adaptive streaming and here is some useful resources from Apple. Apple implements the format but they don’t provide hosting. You could use Apache server for hosting HLS content, but better, you could choose Windows Azure Media Services – a way to host video in the cloud. Therefore, you don’t need to manage infrastructure and worry about scalability: Azure takes care of all that for you.
Scenario One: You have a .Mp4 file and you want to package into HLS and stream out from Windows Azure Media Services.
Here is how you could do it through Windows Azure Management Portal: Read More Here
This blog post is for my session 3-035 Building video applications on Windows 8 with Windows Azure Media Services. This session should be over by the time this post available. And I apologize if I failed to squeeze everything into one hour. However, I do hope you enjoyed session and I’d love to listen to your feedback.
Here is all the materials I promised. Read More…
If you want to build video applications on Windows 8 platform, you may find this blog useful. We (Windows Azure Media Services team) ships Smooth Streaming Client SDK for Windows 8 and Microsoft Media Platform Player framework (MMPPF) in addition to Windows 8 Media Foundation to help you build rich media applications.