SlideShare une entreprise Scribd logo
1  sur  24
SELA DEVELOPER PRACTICE
May 5-9, 2013
Lights, Camera, Action:
Windows Azure Media Services
Sasha Goldshtein
CTO, SELA Group
@goldshtn
blog.sashag.net
With Windows Azure Media
Services, you can upload, manage,
encode, and stream your media to a
variety of devices on a cloud
scale.
Maybe you have a bunch of training
videos you want to share with your
global employee contingent, in the office
and on the go …
… or maybe you are hosting the Olympic
Games and need to stream to hundreds
of millions of consumer devices, with
peaks of 100x the standard traffic …
… or maybe you’re a TV network, a
cellular carrier, a radio station, an ad
agency, a consumer video website …
and you want to stop worrying about
infrastructure and embrace cloud scale.
Features
VOD
Live
streaming
coming soon
Encoding to
multiple
formats
Encryption
(DRM)
Progressive
download
from blob
Smooth
streaming
Dynamic
packaging
.NET and
Java SDKs
REST
endpoints
Supported Formats
• Import formats
• Codecs: H.264, MPEG-1, MPEG-2, MPEG-4 v2, VC-1,
WMV, DV
• File formats: AVI, MP4, MPEG, WMV, 3GP, ASF, DV, TS,
VOB, …
• Export formatsFile Format Video Codec Audio
Codec
.wmv VC-1 WMA
.mp4 H.264 AAC
Smooth Streaming File
Format (.ismv)
H.264
VC-1
AAC
WMA
Supported Devices
• Very wide device coverage for progressive download
• Device coverage for adaptive streaming:
Platform IIS Smooth
Streaming
Apple HTTP Live
Streaming (HLS)
Windows (IE) Silverlight 3rd party SDK
(Flash)
OS X (Safari) Silverlight <video> element
Windows RT Microsoft SDK 3rd party SDK
Android (Browser) 3rd party SDK
(Flash)
<video> element
iOS (Safari) <video> element
Windows Phone Microsoft SDK 3rd party SDK
iOS (in-app) Microsoft SDK MediaPlayer FW
Android (in-app) 3rd party SDK VideoView
Pricing Principles
• Available in all sub-regions (NA, Europe, Asia)
• 99.9% availability guarantee with On-Demand
Streaming Reserved Unit
Component Price
Data processing (input and output)
Encoding
Packaging
Up to $1.99 /
GB
Up to $1.49 /
GB
Storage Up to $0.07 /
GB
Outbound bandwidth Up to $0.12 /
GB
Reserved encoding unit $99 / month
Reserved on-demand streaming
unit
Guaranteed 200 Mbps per unit
$199 / month
DEMO
Windows Azure Media Services Portal
Managing and Playing
Assets
Ingesting Assets from the .NET SDK
Obtain a CloudMediaContext
• Gives you access to all objects and APIs
Create an asset (IAsset)
• A collection of media files
Create a file (IAssetFile)
• A single file within an asset
Create an access policy and locator
• Determines ACL for asset and provides a
URL for upload
Encoding Assets from the .NET SDK
Obtain a media processor
(IMediaProcessor)
• Media processors can encode and package assets
Create an encoding job (IJob)
• A job is a set of tasks for Media Services
Add tasks to the job (ITask)
• E.g., encode WMV file for Apple HLS
• Tasks have input assets and output assets
Monitor job progress until it completes
Delivering Assets from the .NET SDK
Locate the output asset for a job
Create an access policy and locator
Generate URLs
• For progressive download
• For streaming (IIS/HLS)
Optional: Enable CDN
• For progressive download (blob storage)
• For streaming origin server
DEMO
Uploading and encoding an asset from the .NET SDK
Playing Progressive Download Assets
• For progressive download in browsers that support
HTML5 video, use the <video> element
<video width="640" height="480" controls>
<source src="@Html.Raw(Model.Mp4SourceUrl)"
type="video/mp4" />
</video>
Playing IIS Smooth Streaming
• For PC and Mac delivery of IIS Smooth Streaming,
use the Silverlight Smooth Streaming SDK
• Sample player available on CodePlex
• http://playerframework.codeplex.com/
<object data="data:application/x-silverlight-2,"
type="application/x-silverlight-2"
width="100%" height="100%">
<param name="source"
value="/Content/SmoothStreamingPlayer.xap"/>
<param name="InitParams"
value="mediaurl=@Model.SilverlightStreamingUrl"/>
</object>
Server-hosted
Silverlight
player
Parameters for
player
Playing HLS In-App on iOS
• The iOS MediaPlayer framework natively supports
Apple HLS URLs
self.player = [[MPMoviePlayerController alloc]
initWithContentURL:[NSURL URLWithString:...]];
self.player.scalingMode = MPMovieScalingModeAspectFill;
self.player.controlStyle = MPMovieControlStyleDefault;
[self.view addSubview:self.player.view];
[self.player play];
DEMO
Delivering assets to various devices
End-to-End Flow
On-Premises Windows Azure
Upload App
ASP.NET
Web Site
Worker
Role
Media
Services
Encoder
Media
Services
Streaming
Azure Blob
Storage
Queue
Storage
Azure
Table
Storage
(1) Upload file to Web Site
(2) Store file in Blob Storage
(3) Store metadata in Table Storage
(4) Put encoding command in queue
(5) Start encoding job
(6) Wait for job to complete
(7) Generate streaming URLs
(8) Update metadata in Table Storage
1
2 3
1 2 3 44 5 56 7 8
8 7
DEMO
End-to-end flow and CMS
Summary & Call to Action
• Windows Azure Media Services is a cloud-scale
platform offering for media management,
conversion, and delivery
• .NET management SDK and REST endpoints
• Wide device reach with adaptive streaming and
progressive download
• Try it for free as part of the Azure 90-day trial
Learn more:
www.windowsazure.com/en-
us/home/scenarios/media/
SELA DEVELOPER PRACTICE
May 5-9, 2013
Thank You!
Questions?
Sasha Goldshtein
@goldshtn
blog.sashag.net

Contenu connexe

Plus de Sasha Goldshtein

Performance and Debugging with the Diagnostics Hub in Visual Studio 2013
Performance and Debugging with the Diagnostics Hub in Visual Studio 2013Performance and Debugging with the Diagnostics Hub in Visual Studio 2013
Performance and Debugging with the Diagnostics Hub in Visual Studio 2013Sasha Goldshtein
 
Mastering IntelliTrace in Development and Production
Mastering IntelliTrace in Development and ProductionMastering IntelliTrace in Development and Production
Mastering IntelliTrace in Development and ProductionSasha Goldshtein
 
Delivering Millions of Push Notifications in Minutes
Delivering Millions of Push Notifications in MinutesDelivering Millions of Push Notifications in Minutes
Delivering Millions of Push Notifications in MinutesSasha Goldshtein
 
Building Mobile Apps with a Mobile Services .NET Backend
Building Mobile Apps with a Mobile Services .NET BackendBuilding Mobile Apps with a Mobile Services .NET Backend
Building Mobile Apps with a Mobile Services .NET BackendSasha Goldshtein
 
Building iOS and Android Apps with Mobile Services
Building iOS and Android Apps with Mobile ServicesBuilding iOS and Android Apps with Mobile Services
Building iOS and Android Apps with Mobile ServicesSasha Goldshtein
 
Attacking Web Applications
Attacking Web ApplicationsAttacking Web Applications
Attacking Web ApplicationsSasha Goldshtein
 
Windows Azure Mobile Services
Windows Azure Mobile ServicesWindows Azure Mobile Services
Windows Azure Mobile ServicesSasha Goldshtein
 
First Steps in Android Development
First Steps in Android DevelopmentFirst Steps in Android Development
First Steps in Android DevelopmentSasha Goldshtein
 
First Steps in iOS Development
First Steps in iOS DevelopmentFirst Steps in iOS Development
First Steps in iOS DevelopmentSasha Goldshtein
 
JavaScript, Meet Cloud: Node.js on Windows Azure
JavaScript, Meet Cloud: Node.js on Windows AzureJavaScript, Meet Cloud: Node.js on Windows Azure
JavaScript, Meet Cloud: Node.js on Windows AzureSasha Goldshtein
 
First Steps in Android Development with Eclipse and Xamarin
First Steps in Android Development with Eclipse and XamarinFirst Steps in Android Development with Eclipse and Xamarin
First Steps in Android Development with Eclipse and XamarinSasha Goldshtein
 
Visual Studio 2013: Exploration, Productivity, Diagnostics, Collaboration
Visual Studio 2013: Exploration, Productivity, Diagnostics, CollaborationVisual Studio 2013: Exploration, Productivity, Diagnostics, Collaboration
Visual Studio 2013: Exploration, Productivity, Diagnostics, CollaborationSasha Goldshtein
 
Android Development with Eclipse and Xamarin
Android Development with Eclipse and XamarinAndroid Development with Eclipse and Xamarin
Android Development with Eclipse and XamarinSasha Goldshtein
 
Native Mobile Apps, Xamarin, and PhoneGap
Native Mobile Apps, Xamarin, and PhoneGapNative Mobile Apps, Xamarin, and PhoneGap
Native Mobile Apps, Xamarin, and PhoneGapSasha Goldshtein
 
Mastering IntelliTrace in Development and Production
Mastering IntelliTrace in Development and ProductionMastering IntelliTrace in Development and Production
Mastering IntelliTrace in Development and ProductionSasha Goldshtein
 

Plus de Sasha Goldshtein (20)

.NET Debugging Workshop
.NET Debugging Workshop.NET Debugging Workshop
.NET Debugging Workshop
 
Performance and Debugging with the Diagnostics Hub in Visual Studio 2013
Performance and Debugging with the Diagnostics Hub in Visual Studio 2013Performance and Debugging with the Diagnostics Hub in Visual Studio 2013
Performance and Debugging with the Diagnostics Hub in Visual Studio 2013
 
Mastering IntelliTrace in Development and Production
Mastering IntelliTrace in Development and ProductionMastering IntelliTrace in Development and Production
Mastering IntelliTrace in Development and Production
 
Introduction to RavenDB
Introduction to RavenDBIntroduction to RavenDB
Introduction to RavenDB
 
State of the Platforms
State of the PlatformsState of the Platforms
State of the Platforms
 
Delivering Millions of Push Notifications in Minutes
Delivering Millions of Push Notifications in MinutesDelivering Millions of Push Notifications in Minutes
Delivering Millions of Push Notifications in Minutes
 
Building Mobile Apps with a Mobile Services .NET Backend
Building Mobile Apps with a Mobile Services .NET BackendBuilding Mobile Apps with a Mobile Services .NET Backend
Building Mobile Apps with a Mobile Services .NET Backend
 
Building iOS and Android Apps with Mobile Services
Building iOS and Android Apps with Mobile ServicesBuilding iOS and Android Apps with Mobile Services
Building iOS and Android Apps with Mobile Services
 
Task and Data Parallelism
Task and Data ParallelismTask and Data Parallelism
Task and Data Parallelism
 
What's New in C++ 11?
What's New in C++ 11?What's New in C++ 11?
What's New in C++ 11?
 
Attacking Web Applications
Attacking Web ApplicationsAttacking Web Applications
Attacking Web Applications
 
Windows Azure Mobile Services
Windows Azure Mobile ServicesWindows Azure Mobile Services
Windows Azure Mobile Services
 
First Steps in Android Development
First Steps in Android DevelopmentFirst Steps in Android Development
First Steps in Android Development
 
First Steps in iOS Development
First Steps in iOS DevelopmentFirst Steps in iOS Development
First Steps in iOS Development
 
JavaScript, Meet Cloud: Node.js on Windows Azure
JavaScript, Meet Cloud: Node.js on Windows AzureJavaScript, Meet Cloud: Node.js on Windows Azure
JavaScript, Meet Cloud: Node.js on Windows Azure
 
First Steps in Android Development with Eclipse and Xamarin
First Steps in Android Development with Eclipse and XamarinFirst Steps in Android Development with Eclipse and Xamarin
First Steps in Android Development with Eclipse and Xamarin
 
Visual Studio 2013: Exploration, Productivity, Diagnostics, Collaboration
Visual Studio 2013: Exploration, Productivity, Diagnostics, CollaborationVisual Studio 2013: Exploration, Productivity, Diagnostics, Collaboration
Visual Studio 2013: Exploration, Productivity, Diagnostics, Collaboration
 
Android Development with Eclipse and Xamarin
Android Development with Eclipse and XamarinAndroid Development with Eclipse and Xamarin
Android Development with Eclipse and Xamarin
 
Native Mobile Apps, Xamarin, and PhoneGap
Native Mobile Apps, Xamarin, and PhoneGapNative Mobile Apps, Xamarin, and PhoneGap
Native Mobile Apps, Xamarin, and PhoneGap
 
Mastering IntelliTrace in Development and Production
Mastering IntelliTrace in Development and ProductionMastering IntelliTrace in Development and Production
Mastering IntelliTrace in Development and Production
 

Dernier

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 

Dernier (20)

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 

Building the Next YouTube with Windows Azure Media Services

  • 1. SELA DEVELOPER PRACTICE May 5-9, 2013 Lights, Camera, Action: Windows Azure Media Services Sasha Goldshtein CTO, SELA Group @goldshtn blog.sashag.net
  • 2. With Windows Azure Media Services, you can upload, manage, encode, and stream your media to a variety of devices on a cloud scale.
  • 3. Maybe you have a bunch of training videos you want to share with your global employee contingent, in the office and on the go …
  • 4. … or maybe you are hosting the Olympic Games and need to stream to hundreds of millions of consumer devices, with peaks of 100x the standard traffic …
  • 5. … or maybe you’re a TV network, a cellular carrier, a radio station, an ad agency, a consumer video website … and you want to stop worrying about infrastructure and embrace cloud scale.
  • 6. Features VOD Live streaming coming soon Encoding to multiple formats Encryption (DRM) Progressive download from blob Smooth streaming Dynamic packaging .NET and Java SDKs REST endpoints
  • 7. Supported Formats • Import formats • Codecs: H.264, MPEG-1, MPEG-2, MPEG-4 v2, VC-1, WMV, DV • File formats: AVI, MP4, MPEG, WMV, 3GP, ASF, DV, TS, VOB, … • Export formatsFile Format Video Codec Audio Codec .wmv VC-1 WMA .mp4 H.264 AAC Smooth Streaming File Format (.ismv) H.264 VC-1 AAC WMA
  • 8. Supported Devices • Very wide device coverage for progressive download • Device coverage for adaptive streaming: Platform IIS Smooth Streaming Apple HTTP Live Streaming (HLS) Windows (IE) Silverlight 3rd party SDK (Flash) OS X (Safari) Silverlight <video> element Windows RT Microsoft SDK 3rd party SDK Android (Browser) 3rd party SDK (Flash) <video> element iOS (Safari) <video> element Windows Phone Microsoft SDK 3rd party SDK iOS (in-app) Microsoft SDK MediaPlayer FW Android (in-app) 3rd party SDK VideoView
  • 9. Pricing Principles • Available in all sub-regions (NA, Europe, Asia) • 99.9% availability guarantee with On-Demand Streaming Reserved Unit Component Price Data processing (input and output) Encoding Packaging Up to $1.99 / GB Up to $1.49 / GB Storage Up to $0.07 / GB Outbound bandwidth Up to $0.12 / GB Reserved encoding unit $99 / month Reserved on-demand streaming unit Guaranteed 200 Mbps per unit $199 / month
  • 10. DEMO Windows Azure Media Services Portal
  • 12. Ingesting Assets from the .NET SDK Obtain a CloudMediaContext • Gives you access to all objects and APIs Create an asset (IAsset) • A collection of media files Create a file (IAssetFile) • A single file within an asset Create an access policy and locator • Determines ACL for asset and provides a URL for upload
  • 13. Encoding Assets from the .NET SDK Obtain a media processor (IMediaProcessor) • Media processors can encode and package assets Create an encoding job (IJob) • A job is a set of tasks for Media Services Add tasks to the job (ITask) • E.g., encode WMV file for Apple HLS • Tasks have input assets and output assets Monitor job progress until it completes
  • 14. Delivering Assets from the .NET SDK Locate the output asset for a job Create an access policy and locator Generate URLs • For progressive download • For streaming (IIS/HLS) Optional: Enable CDN • For progressive download (blob storage) • For streaming origin server
  • 15. DEMO Uploading and encoding an asset from the .NET SDK
  • 16. Playing Progressive Download Assets • For progressive download in browsers that support HTML5 video, use the <video> element <video width="640" height="480" controls> <source src="@Html.Raw(Model.Mp4SourceUrl)" type="video/mp4" /> </video>
  • 17. Playing IIS Smooth Streaming • For PC and Mac delivery of IIS Smooth Streaming, use the Silverlight Smooth Streaming SDK • Sample player available on CodePlex • http://playerframework.codeplex.com/ <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> <param name="source" value="/Content/SmoothStreamingPlayer.xap"/> <param name="InitParams" value="mediaurl=@Model.SilverlightStreamingUrl"/> </object> Server-hosted Silverlight player Parameters for player
  • 18. Playing HLS In-App on iOS • The iOS MediaPlayer framework natively supports Apple HLS URLs self.player = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString:...]]; self.player.scalingMode = MPMovieScalingModeAspectFill; self.player.controlStyle = MPMovieControlStyleDefault; [self.view addSubview:self.player.view]; [self.player play];
  • 19. DEMO Delivering assets to various devices
  • 21. On-Premises Windows Azure Upload App ASP.NET Web Site Worker Role Media Services Encoder Media Services Streaming Azure Blob Storage Queue Storage Azure Table Storage (1) Upload file to Web Site (2) Store file in Blob Storage (3) Store metadata in Table Storage (4) Put encoding command in queue (5) Start encoding job (6) Wait for job to complete (7) Generate streaming URLs (8) Update metadata in Table Storage 1 2 3 1 2 3 44 5 56 7 8 8 7
  • 23. Summary & Call to Action • Windows Azure Media Services is a cloud-scale platform offering for media management, conversion, and delivery • .NET management SDK and REST endpoints • Wide device reach with adaptive streaming and progressive download • Try it for free as part of the Azure 90-day trial Learn more: www.windowsazure.com/en- us/home/scenarios/media/
  • 24. SELA DEVELOPER PRACTICE May 5-9, 2013 Thank You! Questions? Sasha Goldshtein @goldshtn blog.sashag.net

Notes de l'éditeur

  1. Image taken from http://www.flickr.com/photos/yotut/5432398958/ under Creative Commons 2.0 license.
  2. Image taken from http://www.flickr.com/photos/dskley/7717799328/ under Creative Commons 2.0 license.
  3. Image taken from http://www.flickr.com/photos/scobleizer/4870003098/ under Creative Commons 2.0 license.
  4. Full list of supported import and export formats and codecs: http://msdn.microsoft.com/en-us/library/hh973634.aspx
  5. Remarks:Third-party SDK for HLS on Windows RT and Windows Phone 8: http://3ivx.com/technology/windows/metro/http_live_streaming.htmlThird-party SDK for IIS Smooth Streaming on Android in-app: http://axinom.com/en_axinom_news_android_sdk.AxCMS (there are others)Android supports HLS natively only since 3.0, and there are some issues with this support (browser and in-app): http://www.longtailvideo.com/blog/31646/the-pain-of-live-streaming-on-android/Also see: http://en.wikipedia.org/wiki/HTTP_Live_Streaming#Clients for some more links and details
  6. Example:Encoding a 200MB video to both IIS Smooth Streaming and HLS formats in various bitrates may produce 800 MB of output, for a total of 1GB encoding I/O. Total cost: $1.99.Storing the 800 MB of output would cost approximately $0.06 per month (without geo-replication).Streaming the 200 MB video to 10,000 clients per month (assuming 50% average consumption rate) = 976GB would cost approximately $117 per month.
  7. Illustrate the creation of a new media service.Upload a small mp4 asset. (clipcanvas…mp4)Publish the source (show that the URL is a simple blob storage URL).Use the built-in test player for the source, or simply copy the URL to the browser (this is a progressive download player).Encode the asset for HLS. Explain that there is an intermediate step that encodes to IIS Smooth Streaming and then creates an additional manifest for HLS.Monitor job progress.Publish both the intermediate IIS Smooth Streaming output and the HLS output.Use the built-in test player for IIS Smooth Streaming playback.Use an iPhone/iPad/iOS Simulator for HLS playback.
  8. Show the SimpleUploadEncodeDeliver demo console application:Review the code that creates an asset, gets a storage URL (locator) for uploading the asset, and uploads it.Review the code that configures the encoding job (MP4 ==&gt; IIS Smooth Streaming ==&gt; Apple HLS).Review the code that waits for the encoding job to complete.Review the code that generates the final streaming URLs.(This code was taken from the walkthrough that you see on the dashboard of every new Media Service.)
  9. Show HTML5 page on Mac, Windows, iPad (progressive download with &lt;video&gt; element) – from IBA portalShow Silverlight page on Mac, Windows – from IBA portalShow iOS app with MediaPlayer framework
  10. Demonstrate the IBA pilot “CMS” running end-to-end on Windows Azure.Upload a media file:curl -X POST http://wams-sdp13.azurewebsites.net/Home/Upload?file=test.mp4 --data-binary @test.mp4Wait for encoding to complete.Demonstrate the resulting URLs on Windows / OS X / iOS.Demonstrate the SkyRocketMedia CMS: http://www.skyrocketmedia.netWalk through the different screens, explain that it is a nice wrapper on top of the Azure portal.