⬆️ ⬇️

How the London Olympics were broadcast through the cloud

olympics-london.jpeg



Earlier this year, we announced Windows Azure Media Services . Windows Azure Media Services is a cloud-based PaaS solution that allows you to efficiently build media services and deliver media content to your customers. The solution offers a set of ready-to-use services that allow you to quickly receive media material, encode, convert formats, store, protect content and deliver video in a live format or on demand. Windows Azure Media Services also supports content delivery to any device or platform, including: HTML5, Silverlight, Flash, Windows 8, iPad, iPhone, Android, Xbox and Windows Phone.



Windows Azure Media Services and the 2012 London Olympics



Over the past few weeks, Windows Azure Media Services has been used to deliver real-time and on-demand video streaming to several broadcasters that broadcast the Olympic Games. Among them: France Télévisions, RTVE (Spain), CTV (Canada) and Terra (Central and South America). In collaboration with deltatre, Southworks, gskinner and Akamai, we helped deliver more than 2,300 hours of live video and HD content of the Olympic Games to more than 20 countries.

')

Below you will find some details about how these companies used Windows Azure Media Services to provide excellent video delivery and broadcast.



Automating Media Delivery Workflows with Channels



Windows Azure Media Services supports the concept of channels that can be used to bundle several functions of media services together into a single logical workflow (workflow) for live video transmission and broadcast on demand. Channels can be programmed and managed through the REST API, which allows companies broadcasting and publishing videos to easily integrate their existing automation platforms with Windows Azure Media Services. For the London Olympics, companies used the channel model to coordinate live video streaming and on-demand workflows through the FastForward video system and deltatre’s Forge content management tools.



Download live video streaming Olympiad



Live video streams for Olipyada were published by Olympic Broadcasting Services (OBS), a media broadcasting organization created by the International Olympic Committee (IOC) to deliver video streams to consumer companies. OBS in London delivered all content in 1080i HD video. Video streams were compressed with the H.264 codec with a bitrate of 17.7 Mbps, embedded in MPEG-2 transport streams and distributed via multicast via UDP by companies like the deltatre. After that, the deltatre recoded each 1080i stream to eight different bit rates for Smooth Streaming, starting at 150 kbps (336x192 resolution) and up to 3.45 Mbps (1280x720) and publishing the streams to Windows Azure Media Services.



To ensure high reliability from failures, video streams were published simultaneously in several Windows Azure data centers located in different corners of the globe. The streams were then consumed by the channels defined in Windows Azure Media Services and routed to the video hosting instances, which had already published live video on the web. To ensure content distribution, the Akamai HD CDN network was used:



clip_image001



Streaming for all clients and devices



For the 2012 London Games, we used a streaming video model based on Smooth Streaming. For browsers, we delivered Smooth Streaming streams for both Silverlight and Flash clients. For devices, we delivered Smooth Streaming for iOS, Android, and Windows Phone 7. Using the advantages of universal support for the H.264 standard and the AAC codec, we were able to encode the content only once and deliver it for all devices in single streams. The deltatre company used the iOS Smooth Streaming SDK toolkit distributed for iPhone and iPad by the Windows Azure Media Services service and the Smooth Streaming SDK for Android tools developed by Nexstreaming .



A key innovation of Media Services for these Olympic Games was the development of Flash-based SDK tools for native support for playing Smooth Streaming. Working with Flash experts from gskinner.com, the Windows Azure Media Services team developed a native ActionScript SDK for delivering Smooth Streaming to Flash. This allowed broadcasters to benefit from a single Smooth Steaming platform for all Silverlight, Flash, iOS, Windows Phone and Android platforms.



Below you can see photos of various devices with the live stream of the Olympics video:



Samsung Galaxy playing Smooth Streaming

clip_image002



iPad 3 playing back Smooth Streaming

clip_image003



Nokia Lumia 800 playing Smooth Streaming

clip_image004



France TV's Flash player using Smooth Streaming

clip_image005



Benefits of Windows Azure Media Services



During the Olympics, broadcasters needed power to broadcast an average of 30 live video streams 15 hours a day for 17 days. In addition to live streams, content was created on demand and delivered 24 hours a day to more than 20 countries - which generally means millions of hours of video consumed.



Without Window Azure Media Services, broadcasters would have to:



  1. Buy / rent infrastructure for computing, data storage and networking
  2. Deploy your own video processing architecture
  3. Link together the new infrastructure and the existing one to organize a single workflow.
  4. Independently deploy and run the architecture in several different data centers for high fault tolerance
  5. Pay for energy, air conditioning, administration and support staff 24 hours a day 7 days a week


The power and flexibility of the Windows Azure Media Services platform is here and in full force. Broadcasters were able to take advantage of the cloud technologies that allowed them to install and configure live and on-demand broadcasting with just a few lines of code. In just a few minutes, all the necessary services, network routing, and storage resources were deployed and configured within Windows Azure — ready to receive and send content to a large audience.



Online delivery of content for events of such magnitude as the Olympics is a difficult task, when problems with the network, hardware, and even human errors can put the broadcast at risk. The Windows Azure Media Services platform offers automated layers of fault tolerance and redundancy, which are usually unattainable or too expensive with traditional implementation on your own infrastructure or on the basis of simple cloud services. In particular, Windows Azure Media Services offer redundant services for consuming, producing, storing, and distributed data caching — along with the ability to take advantage of this at various data centers, thus achieving high availability for solutions with the ability to automatically recover from failures.



Automatic streaming video



The key principle of Windows Azure Media Services (and the Windows Azure platform as a whole) is the full automation of all actions. Below is pseudo-code that illustrates how to create a new channel in Windows Azure Media Services that can be used for live HD video broadcast to millions of users:



// connect to the service: var WAMSLiveService = new WAMSLiveService(serviceUri); // Then you give us some details on the channel you want to create, like its name etc. var channelSpec = new ChannelSpecification() { Name = “Swimming Channel”; Eventname = “100 Meter Final”; } // Save it. WAMSLiveService.AddtoChannelSpecifiations(channelSpec); WAMSLiveService.SaveChanges(); // Create all the necessary Azure infrastructure to have a fully functioning, high performance, HD adaptive bitrate Live Channel WAMSLive.Service.Execute<string>(new Uri(“AllocateChannel?channelID =55”)); 


During the London Olympics, broadcasters were able to write code like this to quickly automate the creation of dozens of live HD streams without the need for manual installation or configuration.



When working with any automated system that works with real-time data, especially one that ensures the operation of the Olympics, when video streams are started and stopped very often, it is critically important to be able to live monitoring. For these purposes, Southworks has built a web service control panel, which reported on vital indicators of video coding, channel operation and data flow to Akamai nodes, using Windows Azure Media Services REST API. Broadcasters had the opportunity to use this service to monitor the vital parameters and the quality of their decisions.



Live video and video on demand



The key advantage of Windows Azure Media Services is that the video is immediately available for replay both during live broadcast and after it (with full DVR features). For example, if a user has connected to a live broadcast that has already started some time ago, he can immediately rewind the video to the beginning of the event and start watching the event first or go to one of the notable episodes of the event, marked in the player with markers.



clip_image006



In addition, Windows Azure Media Services allows you to make an instant transition from live to on-demand broadcast. When an event ends in real time, a full video on demand is created on the server. There is no delay between the transition, which allows the user who missed the live broadcast to immediately start watching videos on demand.



Editing and inserting live video



Broadcasters need a solution that allows them to easily cut and create real-time key video moments from thousands of hours of live video streaming. Windows Azure Media Services has deep integration with the Microsoft Media Platform Video Editor, a browser-based video editor that can work with live or on-demand video content. This integration allows editors to quickly create an insertion of a key video moment for a couple of minutes of the event without having to load or save video materials locally, as well as broadcast these inserts from already prepared materials located on CDN nodes. New features that have been added to the editor for broadcasters: support for USB-wheel, dynamic sound change, panning, locking tracks, support for multiple audio tracks.



clip_image007



In addition to creating key points, the video editor was integrated with Windows Azure Media Services for encoding inserts for publishing them to mobile clients and third-party video distribution sites like YouTube. For example, CTV used YouTube (in Canada) to expand access to the audience and in this case, the key points were encoded in 4Mbps VBR H.264 format, downloaded and published directly to YouTube from Windows Azure Media Services.



Every day, the Olympics have thousands of coding tasks running in Windows Azure Media Services workflows. This system allowed our customers to create and modify their content publishing workflows without thinking about supporting equipment for a large number of computing processes. The Windows Azure Media Services platform offered a scalable mechanism that automatically responded to load peaks, handled power consumption, and prioritized the need for a large amount of video encoding.



Conclusion



The Windows Azure Media Services platform allows broadcasters to use substantially better and more reliable online broadcasting experience. Windows Azure Media Services offers a flexible set of functions that include: consumption, storage, encoding, production, monitoring and delivery, which can be used to create highly scalable workflows for live video broadcasting and on-demand content delivery. These cloud services solve the problem of building video feeds while still offering a higher level of reliability and availability for more devices.



Currently, Windows Azure Media Services are available as previews - you can find more information on how to use them here . The workflow feature for accessing content on demand is available today to anyone who signs up for a preview. The functions of workflows for organizing live broadcasts that were used at the Olympics are now available as a private preview. Customers who are interested in testing this preview can join by writing to mediaservices@microsoft.com. Over time, these functions will become publicly available.



Any work related to the Olympics is a difficult matter, responsibility and desire to win. I would like to thank all the people in the Windows Azure and Windows Azure Media Services product teams and the Developer & Platform Evangelism group, our external development partners, and most importantly, the broadcasters for their contribution to the success of the Olympics. This event is a huge success story of the experience that will be applied in the future.

Source: https://habr.com/ru/post/150115/



All Articles