Building video application for windows 8 with Windows

Download Report

Transcript Building video application for windows 8 with Windows

Media Industry trend
What Microsoft media platform offers
Windows Azure Media Services
Microsoft Media Platform Player framework for Windows 8
Smooth streaming support
Closed caption
Advertising (VAST and VMAP)
Sample Windows 8 applications
Faster Internet connection increases the popularity of streaming
“For 1st time, Online movie viewing in the U.S. will exceed
digital video disc and Blu-ray use this year” - IHS
2012
2.4
1.4
2.6
3.4
2011
ONLINE VIEWING
DVD AND BLU-RAY
More video-capable smart devices
“Mobile video traffic exceeded 50 percent for the first time in 2011.
Two-thirds of the world's mobile data traffic will be video by 2016.“
Resources provided by Cisco white paper
Http-based Adaptive Bitrate Streaming
Define good view experience
Watch online videos anywhere, anytime
on any devices
They want videos to be streamed without
interruption in the highest resolution possible
Http-based Adaptive Streaming
it allows the stream to actually adapt the video experience to the
quality of the network and the device’s CPU.
200 kbps
Chunk Size: 2 sec video
Video
HTTP
Encoding with
Multiple Bit Rates
2 mbps
Http server
5 mbps
Http-based Adaptive Streaming
Why this is good?
Best viewing experience
Real cost cutting
Scalability
Where you watch
How much video loaded
Currently there are three major streaming formats (all takes H.264 as input)
Smooth Streaming
Http Live Streaming
Http Dynamic Streaming
Dynamic Adaptive Streaming over HTTP (DASH)
Also called MPEG-DASH
Jobs, “yeah I meant it: Flash sucks”
Adobe’s response
Will HTML5 be the cross browser, cross platform solution?
Apple’s (implied) response
Plugin-free
The Status of HTML5 video
Apple iOS implemented Http Live Streaming but it is not the standard
No Digital Right management (DRM) solution for HTML5
Resources provided by longtail video
Private
HTML 5 Modern style applications
XAML Modern style applications
C++ Modern style applications
Consume Smooth Streaming and other formats in future
(e.g., MPEG-DASH)
Port existing video apps to windows 8
Monetize apps with in-built Ad support and rich Analytics
Get started with VS templates and client frameworks
Application with Smooth Streaming Source
url : …/manifest
Smooth Streaming
Extension SDK
Decoder
Renderer
Decrypter
(DRM)
Media Source
Interface
PLAYBACK PIPELINE
Native codec support: H.264, WMV, VC-1 and etc.
Shipped as Open source at playerframework.codeplex.com
Builds on capabilities of Smooth Streaming Client
Available for multiple platform
Windows 8 Player
•
•
HTML/JavaScript Modern style applications
XAML/C# Modern style applications
HTML5 player for browser
Silverlight & Windows Phone player
Well established player framework
Plugin Architecture – import what you need
Closed captioning
Offline
Trick Play
Advertising
Player styling
Smooth Streaming (VOD and live)
Progressive Video
DVR controls
Multiple Audio
MPEG-DASH
PlayReady DRM
Analytics
Logging
Windows Azure Media Services
Ingestion
Encoding
Format
Content
Conversion Protection
On-Demand
Streaming
Live
Streaming
Analytics
Advertising
Linear Ad takes over the full view of video.
It could be text, graphical banner/buttons or video overlays
It offers sustained visibility of the sponsor throughout the video
content
After 5 sec
when linear ad is over
VAST (Video Ad Serving Template) 3.0 / 2.0
It tells video player what to play
Recommended by IAB
Based on XML
Served by majority of ad servers
Five Ads formats:
Skippable Linear Ads
Ad Pods (a sequenced group of ads)
Linear Ads
Non-linear Ads
Linear Ads with Companions
VAST (Video Ad Serving Template) 3.0 / 2.0
<VAST version=“3.0”>
<Ad>
<InLine>
<AdSystem>My Ad Server</AdSystem>
<AdTitle>Car Company</AdTitle>
<Impression>...</Impression>
<Creatives>
<Creative>
<Linear>...</Linear>
</Creative>
<Creative>
<CompanionAds>...</CompanionAds>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>
VAST (Video Ad Serving Template) 3.0 / 2.0
<Creative id="video" sequence="0" AdID="">
<Linear>
<Duration>00:00:32</Duration>
<TrackingEvents>...</TrackingEvents>
<VideoClicks>...</VideoClicks>
<MediaFiles>
<MediaFile apiFramework="Windows Media" id="windows_progressive_200"
maintainAspectRatio="true" scaleable="true" delivery="progressive"
bitrate=“200” width="400" height="300" type="video/x-ms-wmv">
<![CDATA[
http://smf.blob.core.windows.net/samples/ads/media/XBOX_HD.wmv
]]>
</MediaFile>
</MediaFiles>
</Linear>
VMAP (Digital Video Multiple Ad Playlist) 1.0
Recommended by IAB
It is very useful when content owner doesn’t have control over player
Used by content owner to describe ad breaks
Timing for each break
How many breaks are available
What types of ads
How many are allowed in each break
VMAP (Digital Video Multiple Ad Playlist) 1.0
<vmap:VMAP xmlns:vmap="http://www.iab.net/vmap-1.0" version="1.0">
<vmap:AdBreak breakType="linear" breakId="mypre" timeOffset="start">
<vmap:AdSource allowMultipleAds="true" followRedirects="true" id="1">...</
vmap:AdSource>
<vmap:TrackingEvents>...</vmap:TrackingEvents>
</vmap:AdBreak>
<vmap:AdBreak breakType="linear" breakId="myrelative" timeOffset="5%">
<vmap:AdSource allowMultipleAds="true" followRedirects="true" id="2">...</
vmap:AdSource>
<vmap:TrackingEvents>...</vmap:TrackingEvents>
</vmap:AdBreak>
<vmap:AdBreak breakType="linear" breakId="myabsolute" timeOffset="00:00:15.001">
<vmap:AdSource allowMultipleAds="true" followRedirects="true" id="3">...</
vmap:AdSource>
<vmap:TrackingEvents>...</vmap:TrackingEvents>
</vmap:AdBreak>
……
</vmap:VMAP>
Download Microsoft Media Platform Player framework
http://playerframework.codeplex.com/releases/view/92745
Install Smooth Streaming client SDK
http://visualstudiogallery.msdn.microsoft.com/04423d13-3b3e-4741-a01c-1ae29e84fea6?SRC=Home
Install Microsoft PlayReady Client SDK
http://visualstudiogallery.msdn.microsoft.com/e02ccac7-f3eb-4b53-b11a-c657d5631483
Where to get started:
Download MMPPF sample app and learn from sample code
http://playerframework.codeplex.com/releases/view/92745
Getting to know about Windows Azure Media Services
https://www.windowsazure.com/en-us/home/features/media-services/
All the sessions materials are available at : http://mingfeiy.com/