BUILD 2014 - Building end-to-end video experience with Azure Media Services
-
Upload
mingfei-yan -
Category
Technology
-
view
939 -
download
1
description
Transcript of BUILD 2014 - Building end-to-end video experience with Azure Media Services
![Page 1: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/1.jpg)
Build end-to-end video experiences with Microsoft Azure Media ServicesMingfei [email protected] ManagerWindows Azure Media Services
Mariano [email protected] DeveloperSouthworks
![Page 2: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/2.jpg)
Agenda• What is Microsoft Azure Media Services• Architecture and Features
Video-on-demand service • Basic media workflow• Dynamic packaging• Secure delivery
Live Streaming service• How does it work
![Page 3: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/3.jpg)
Video contributes to 57% of internet traffic
![Page 4: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/4.jpg)
Everyone could create videos
![Page 5: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/5.jpg)
Long form content over IP deliveryPhoto credit: hulu blog
![Page 6: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/6.jpg)
2013
152 millions
75 millions
30 millions
Traditional TV
Connected TV
Streaming gadget
![Page 7: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/7.jpg)
More Screens = More ViewershipPhoto credit: Xbox blog
Viewers who consume on 4 devices WATCH 42% MORE television than those who only watch TV only
![Page 8: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/8.jpg)
ChallengesInfrastructure costsManaging costsMonetizing contentsDigital Rights Management Security
Multiple formats, multiple bitrates
High Quality videos for any device
Anywhere and Anytime
Agile, Scalable,
Cost-Effective
![Page 9: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/9.jpg)
What is Microsoft Azure Media Services?
![Page 10: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/10.jpg)
Media Services Architecture
REST APIs
“Build-On” Media Partners and Customers
Azur
e CDN
Media Services
Adaptive StreamingPorting Kits
Partn
er C
DNs
OriginCaching
Secure Media Ingest
Media Job Scheduling
Encoding
ContentProtection
On-DemandOrigin
Live Origin
Analytics Identity Management
Live Ingest
Live Encoding
Client Libraries
Android
HTML 5
Advertising
Flash
XBOX 360
WindowsPhone
iOS
Released
Coming Soon
Partners
Partner Technologies (Media Processors, Origin Servers, Live Encoders etc.)
Static/Dynamic Packaging
(Fabric, Storage, Compute, Database)
![Page 11: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/11.jpg)
Video-on-demand Services
IngestEncodePackageEncryptDeliver
![Page 12: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/12.jpg)
Step 1: Ingest Content
Different options of Ingesting a Mezzanine Asset• Pre-encrypt files prior to uploading (AES 256)• Secure HTTPS upload• Network level peering for fast HTTP into Azure• Fast upload using UDP with Aspera
Multiple storage accounts enabled to manage your media asset
INGESTAzure Blob
ASSET
![Page 13: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/13.jpg)
Step 2: Encode, Package or Encrypt
EncodeAzure BlobAzure Blob
Queue
![Page 14: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/14.jpg)
Windows Azure Media Encoder• Supports encoding to H.264 or VC-1 video• Encodes audio to AAC-LC, HE-AAC, Dolby DD+, WMA• Packages to MP4, Smooth Streaming, Http-Live-Streaming • Encrypts with PlayReady, Common Encryption, AES
Encoding with third-parties• Partner SDK for enabling ‘build-in’ encoders
Encode
Encode
Encode
Azure BlobAzure Blob
Encoding Reserved Units
Step 2: Encode, Package or Encrypt
![Page 15: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/15.jpg)
Step 3: Deliver Content
Managed streaming service… it just works!• Guaranteed bandwidth• Auto recovery, redundancy and failover• Multiple origins support and scale independently
Azure and 3rd party CDN supportIP Whitelisting
IngestAzure Blob
Asset Encode Stream
Origin Server
![Page 16: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/16.jpg)
Pricing and SLAEncoding Service
Free Trial(3mths) Shared Reserved
Encoding Price
Free(100GB limit) $1.99 Per GB $1.99 Per GB +
$99 per month/RU
EncodingSLA NA
Availability = 99.9%• Measured as REST API availability• No guarantee on wait time
between tasks
Availability = 99.9%• Measured as REST API availability• Media tasks running concurrently =
Number of reserved units
Streaming Service
Free Trial(3mths) Shared Reserved
Streaming Price
Free(100GB limit) Standard Egress Rates Standard egress rates +
$199 per month
StreamingSLA NA Availability = NA
• No bandwidth guarantee
Availability = 99.9%• Measured as server availability
based on response time• Peak bandwidth of 200 Mbps per
Reserved Unit allocated for Origin
For more information, please refer to Windows Azure Media Services Pricing Details
![Page 17: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/17.jpg)
Demo: Microsoft Azure Media Services workflow
Microsoft Azure portal for media services
![Page 18: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/18.jpg)
Media Services APIs and SDKs REST API for all platformsReference: http://msdn.microsoft.com/en-us/library/windowsazure/hh973617.aspx
.NET library Nuget package: https://nuget.org/packages/windowsazure.mediaservices GitHub: https://github.com/Azure/azure-sdk-for-media-servicesExtensions for .NET SDK: https://github.com/sazure/azure-sdk-for-media-services-extensions
PHP Library (Just Released!)GitHub: https://github.com/windowsazure/azure-sdk-for-phpOpen Tech blog with demo: http://msopentech.com/blog/2014/01/23/ms-open-technologies-enhances-open-source-php-sdk-windows-azure/
JAVA library http://www.windowsazure.com/en-us/develop/java/java-home Windows / Mac / LinuxGitHub: https://github.com/windowsazure/azure-sdk-for-java/
PowerShell cmdletsHow to use: http://www.gtrifonov.com/2013/08/24/how-to-use-windows-azure-powershell-for-media-services/
Node.js libraryGitHub: https://github.com/fritzy/node-azure-media
![Page 19: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/19.jpg)
Feature highlight- Dynamic Packaging
![Page 20: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/20.jpg)
Feature highlight- Dynamic packagingAllows you to re-use your encoded content and bring it to various streaming formats without repackaging the content.
Video sources Multi-bitrates Mp4 Origin Server
HLS
Smooth Streaming
Encode Package
Video sources Multi-bitrates Mp4
Origin Server
HLS
Smooth Streaming
EncodeDynamic
Packaging
Traditional Encode and Package
Dynamic Packaging
Package
Input format: Mp4 or Smooth Streaming Output format: Smooth Streaming , Http-Live-Streaming (v4 and v3), MPEG-DASH
You need to have at least 1 reserved streaming unit to enable dynamic packaging!
DASH
![Page 21: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/21.jpg)
Demo: How to use dynamic packaging feature to produce SS, HLS and DASH content
Dynamic packaging using .NET SDK extension for Media Services
Bit.ly/bldvideo
![Page 22: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/22.jpg)
Useful information - Dynamic Packaging Full demo code at:Introducing Extensions for Windows Azure Media Services .NET SDK
Demo – how to create HLS and Smooth Streaming assets using dynamic packaging By Mingfei Yan
Other readings:Dynamic packaging and Encoding and Reserved units By Nick Drouin
![Page 23: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/23.jpg)
Secure your media – options with WAMS
![Page 24: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/24.jpg)
Why do you need to secure your contentSubscription Fee(User Authentication)
Ad-funded(Player Authentication)
High-premium content provider:• Prevent piracy • Prevent Man-in-the-middle
Ad-funded(Player Authentication)
Employee only
Enterprise or Time-sensitive event:• Piracy is not a major issue• Prevent Man-in-the-middle
![Page 25: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/25.jpg)
Options with Media Services
EncryptedEncrypted
EncryptedEncrypted
EncryptedEncrypted
Encrypted
Prevent “man-in-the-middle”
AES clear keydynamic encryption
DRM technology + licensing agreement
![Page 26: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/26.jpg)
Options with Media ServicesAES Clear Key dynamic encryptionEncrypt on-the-wire communication using the widely-known symmetric AES encryption algorithm. An authentication service for key is provided.
Who should use this feature:• “Trust your client”: Key is stored in clear format
so it requires you to trust your client not to pass key around
• “Light” encryption: prevent “man-in-the-middle” attack
• Lower cost compared to DRM solution
DRM technology (PlayReady) Encrypt Smooth Streaming content with PlayReady protection via common encryption scheme (CENC), and the option of packaging it into HLS or DASH. DRM technology allows you to define restrictive licensing agreement to manage user access rights to your media.
Who should use this feature:• Premium content or high business impact content:
decoding happens in a secure DRM decoder environment
• Prevent piracy and “man-in-the-middle” attack• More business models enabled
![Page 27: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/27.jpg)
Storage
• MP4
Define: • Asset Delivery Policy: Dynamic Encryption• Content Key• Content Key Authorization policy
• Token/IP/Open
Origin Server
HLS + AES (http)
Smooth Streaming + AES (http)
MAMS - Key ServicesToken
verification AES Key
Request Key with token (https)
Return key if token verified(https)Client SDK
Customers
Architecture: AES Dynamic Encryption
Customer’s Authz system
Login
Issue
toke
n
![Page 28: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/28.jpg)
Secure Delivery features – AES dynamic encryption Service: • Enabled through dynamic encryption feature – only keep a copy of multi-bitrates Mp4/smooth streaming,
and generate encrypted Http-live-streaming or Smooth streaming on the fly• Key services to client with token-authentication, currently only Simple Web Token(SWT) is supported
Client: • Windows 8 cache plugin to decrypt AES encrypted smooth streaming• iOS SDK sample code to decrypt AES encrypted HLS stream• Flash OSMF plugin to decrypt AES encrypted smooth streaming *Require “trust client”: key is stored by client in clear format
Future Plan: • Optional Storage decryption• DASH encrypted stream • Currently in private preview
![Page 29: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/29.jpg)
Demo: Dynamic encrypt Smooth Streaming content with AES, play back using Win8 store app
Demo:AES Dynamic Encryption with key service
![Page 30: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/30.jpg)
Pre-encrypted PlayReady file:• License Acquisition URL• Key ID• Content key
Storage Origin ServerPlayReady + Smooth Streaming
PlayReady server
Request license
Return license
Client SDK+
PlayReady SDK
Customers
Architecture: PlayReady DRM solution
![Page 31: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/31.jpg)
Useful information – Secure delivery Overview:Secure your media with Azure Media Services via MSDN
Protecting Smooth Streaming and MPEG DASH with PlayReady via MSDN
How to Protect an asset with PlayReady protection via MSDN
Session video: Introducing the New Office 365 Video Experience
How to join AES encryption private preview:Email me at [email protected]
![Page 32: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/32.jpg)
Why do you need to secure your contentSubscription Fee(User Authentication)
Ad-funded(Player Authentication)
High-premium content provider:• Prevent piracy • Prevent Man-in-the middle
Ad-funded(Player Authentication)
Employee only
Enterprise or Time-sensitive event:• Piracy is not a major issue• Prevent Man-in-the middle
DRM
AES
![Page 33: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/33.jpg)
Video for Office 365simple | fast | mobile | secure
powered by Azure Media Services
Secure, cloud-based video upload, storage and optimized playback for the enterpriseCreate, manage and subscribe to various channelsCapture, share and discover from any device
![Page 34: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/34.jpg)
Powe
red
ByAzure Media
Microsoft
ServicesYourOrganization
![Page 35: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/35.jpg)
Live Streaming
![Page 36: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/36.jpg)
Media Services LiveStream live content directly through public cloudMulti-format output (Smooth Streaming, HLS and DASH)Global reach – deploy anywhere quicklyCloud elasticity • No capital expenses• Ramp quickly to global scale• Tear down immediatelyPrivate preview with more than 70 customers Apply via aks.ms/wamslive to get access
![Page 37: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/37.jpg)
How does live streaming work?
Channel
WA Load Balancer
INGEST
PREVIEW
PROGRAMPROGRAM
Blob Storage
Preview URL
Program URL
Ingest:Ingest URL to accept Live streams with different bitrates (smooth streaming) through load balancerForwards the stream to all preview end-pointsPreview:Receives stream from IngestForwards to ProgramExposes Preview URL (for monitoring and voice-over)
Program:Writes it to Blob Storage for Live DVR and ArchiveDynamic package into HLS, Smooth and DASH
![Page 38: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/38.jpg)
Live Streaming demo
Ingest URL
Program URL
Media Services
![Page 39: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/39.jpg)
Try out Microsoft Azure Media Services www.windowsazure.com/mediaMicrosoft Azure Media Services accounts are Free for 90 days
Ask questions on our public forum. http://social.msdn.microsoft.com/Forums/en-US/MediaServices
All presentation and code demo will be published at mingfeiy.com
Or send me a question:Mingfei Yan: [email protected] Twitter: @mingfeiy
![Page 40: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/40.jpg)
Q&A
![Page 41: BUILD 2014 - Building end-to-end video experience with Azure Media Services](https://reader034.fdocuments.us/reader034/viewer/2022051609/54749797b4af9f9d0a8b5752/html5/thumbnails/41.jpg)
© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.