Build the Next YouTube: Windows Azure Media Services

  • Published on
    14-Dec-2014

  • View
    10.292

  • Download
    0

DESCRIPTION

Visual Studio Live presentation on Windows Azure Media Services. Describes the fundamental set of features and illustrates through the .NET SDK how to upload, encode, and deliver assets to a variety of client devices.

Transcript

  • 1. Build the Next YouTube: Windows Azure Media Services Sasha Goldshtein CTO, Sela Group Level: Intermediate

2. Windows Azure Media Services, you can Withupload, manage, encode, andmedia to a variety of devices on a cloud scale. stream your 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 youre a TV network, a cellular carrier, a radio station, an ad agency, a consumer video website and you want to stopworrying about infrastructure and embrace cloud scale. 6. Features VODLive streaming coming soonEncoding to multiple formatsEncryption (DRM)Progressive download from blobSmooth streamingDynamic packaging.NET and Java SDKsREST endpoints 7. Supported Formats Import formats Codecs: H.264, MPEG-1, MPEG-2, MPEG-4 v2, VC1, WMV, DV File formats: AVI, MP4, MPEG, WMV, 3GP, ASF, DV, TS, VOB, Export formats File FormatVideo CodecAudio Codec.wmvVC-1WMA.mp4H.264AACSmooth Streaming File Format (.ismv)H.264 VC-1AAC WMA 8. Supported Devices Almost all devices for progressive Device coverage for adaptive streaming:PlatformIIS Smooth StreamingApple HTTP Live Streaming (HLS)Windows (IE)Silverlight3rd party SDK (Flash)OS X (Safari)Silverlight elementWindows RTMicrosoft SDK3rd party SDKAndroid (Browser)3rd party SDK (Flash) element elementiOS (Safari) Windows PhoneMicrosoft SDK3rd party SDKiOS (in-app)Microsoft SDKMediaPlayer FWAndroid (in-app)3rd party SDKVideoViewXboxMicrosoft SDK 9. Pricing Principles Component Data processing (input and output) Encoding PackagingUp to $0.07 / GBOutbound bandwidthUp to $0.12 / GBReserved encoding unit$99 / monthReserved on-demand streaming unit Guaranteed 200 Mbps per unitUp to $1.99 / GB Up to $1.49 / GBStoragePrice$199 / monthAvailable in all sub-regions 99.9% availability guarantee with OnDemand Streaming Reserved Unit 10. Windows Azure Media Services PortalDEMO 11. MANAGING AND PLAYING ASSETS 12. Ingesting Assets from the .NET SDK Obtain a CloudMediaContext Gives you access to all objects and APIsCreate an asset (IAsset) A collection of media filesCreate a file (IAssetFile) A single file within an assetCreate 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 assetsCreate an encoding job (IJob) A job is a set of tasks for Media ServicesAdd tasks to the job (ITask) E.g., encode WMV file for Apple HLS Tasks have input assets and output assetsMonitor job progress until it completes 14. Delivering Assets from the .NET SDK Locate the output asset for a jobCreate an access policy and locatorGenerate URLs For progressive download For streaming (IIS/HLS)Optional: Enable CDN For progressive download (blob storage) For streaming origin server 15. Uploading and encoding an asset from the .NET SDKDEMO 16. Playing Progressive Download Assets For progressive download in browsers that support HTML5 video, use the element 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/ Parameters for player 18. Playing HLS In-App on iOS The iOS MediaPlayer framework natively supports Apple HLS URLsself.player = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString:...]]; self.player.scalingMode = MPMovieScalingModeAspectFill; self.player.controlStyle = MPMovieControlStyleDefault; [self.view addSubview:self.player.view]; [self.player play]; 19. Delivering assets to various devicesDEMO 20. END-TO-END FLOW 21. On-PremisesWindows AzureASP.NET Web SiteUpload AppQueue Storage1 2 3 44213 8Azure Blob Storage(1) (2) (3) (4)Upload file to Web Site Store file in Blob Storage Store metadata in Table Storage Put encoding command in queueWorker Role 5 6 7 857Azure Table Storage(5) (6) (7) (8)Media Services EncoderMedia Services StreamingStart encoding job Wait for job to complete Generate streaming URLs Update metadata in Table Storage 22. End-to-end flow and CMSDEMO 23. Summary & Call to Action Windows Azure Media Services is a cloudscale 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 24. Thank You! Questions?Sasha Goldshtein @goldshtn blog.sashag.net

Recommended

View more >