Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft...

35
Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH http://blogs.technet.com/chitpro-de

Transcript of Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft...

Page 1: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Streaming mit MicrosoftFrank Koch (Bern)

TechnologieberaterDeveloper & Platform Group

Microsoft Schweiz GmbH

http://blogs.technet.com/chitpro-de

Page 2: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

2007

Viele Webseiten setzen heute auf Videos

MTV.com, 1996

Page 3: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

2006 2007 2008 2009 20100

100

200

300

400

500

Global Broadband Households by Region

(Source: Strategy Analytics, 12/2005)

North America CALAEMEA Asia Pacific

2006 2007 2008 2009 2010 2011

0.91

1.49

2.21

3.16

3.844.23

Total Internet Video Ad Revenue (Billions)

(Source: Yankee Group 12/2006

~12% des Webtraffics kommt von Youtube Web Video Ad Revenue is SoaringGrowing Broadband Adoption

55% of online video consumed will be user-generated (by 2010)(Source: Screen Digest December 2006)

Video streams viewed per month will rise from3bn (2006) to 12.4bn (2010)(Source: Parks & Assoc. 12/2006)

Page 4: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Streaming ist ein wichtiger Teil von Silverlight

Page 5: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Streaming ist aber nur ein Teil von Silverlight

Legend

V1.1

Legend

V1.0

CLR Execution Engine

.NET f

or

Silv

erl

ight

Framework

HTML DOMIntegration

XAML

Pre

senta

tion C

ore

Networking

JSON

REST POX

RSS

Data

LINQ XLINQ

DLR

Ruby Python

WPF

Extensible Controls

BCL

Generics Collections

Inputs

Keyboard Mouse Ink

Media

VC1 WMA MP3

Browser Host

IntegratedNetworking

Stack

Installer

ApplicationServices

MS AJAXLibrary

UI Core

Images

Vector Text

Animation

DRM

Media

Controls

Layout Editing

Page 6: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Microsoft bietet eine komplette Streamingplattform

Windows Media& VC-1

Ecosystem

Encoders

Servers

Solutions

Core IP /SDKs

Web Experiences / RIA

WebBrowser(Win & Mac)

DesktopApplications

HD-DVD

IPTV

MediaCenter

WindowsMediaPlayer

Emerging

Xbox360

MediaDevices

Phones

ConsumerElectronicsDevices

VC-1OpenStandard

VC-1

Other Media Clients

Page 7: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Die Streaming Plattform ist vollkommen renoviert

Create

Expression Media Encoder for

publishing with Silverlight

Expression Blend for creating

media experiences

+ Existing ecosystem of WMV technology partners / solution

providers

Experience

Interactivity, video, and animation in

browser and/or full screen

Seamless, Fast Installation for End

Users

Consistent experience on Mac

and Windows

Distribute

Up to 2x streaming scalability overWindows Server

2003

New Secure content delivery

over SSL and Cache/Proxy

support

New IIS7 Media Pack with bit-rate throttling for lower

cost for downloaded media

Page 8: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Erstellen Sie Ihre eigenen Inhalte mit Microsoft Expression Encoder Quality

• Stunning video quality up to HD (720p) & 5.1 sound

• DVD-like interactivity and overlaysFlexible Development

• Integrate w/ existing AJAX frameworks

• SMPTE-standard VC-1, WMV & MP3Delivery

• Live Streaming or On-Demand• Performance, scale and cost

advantages over other solutions

Page 9: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Demo: EncoderExpression Encoder vs. Windows Media Encoder

Page 10: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Whether you are designing rich standards-based websites, ultimate experiences on the desktop, or managing digital assets and content, Expression professional design tools give you the flexibility and freedom to bring your vision to reality.

The professional

Webdesign tool

The professional Interactive design tool

The professional

Graphicdesign tool

The professionalAsset

Managementtool

Page 11: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Tipps zum Encoden

For consumer-quality video capture, use a device that support USB 2.0 or Firewire (1394)

For professional quality, use a high-quality video capture device that supports at least standard definition and up to 720p

Page 12: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Delivering Rich Media

Page 13: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Medien können vom Webserveroder den Mediaservices kommen

Page 14: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Die Funktionsweise eines Webservers…

Web server: Block delivery•Web server measured in block throughput•Browser measured in rendering WEB

Server

http

Page 15: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

…unterscheidet sich von Media Services

Media server: stream delivery•Media server measured in stream reliability•Client “measured” in smart buffering

Media Service

IIS 7.0 & MP

rtsp / http (throttle)

Page 16: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Windows Server 2008 unterstützt beide Verteiloptionen optimal

Windows Server 2008

Leverage existing Web sites and optimize bandwidth usage with new bit rate throttling

IIS7 + IIS Media Pack

Built-in bit rate throttling, plus live streaming and powerful administrative control over rich media delivery

WMS

Page 17: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Demo: NetzwerktrafficWebserver vs. Windows Media Services

Page 18: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Drop-off point in videos:

microsoft.com = 38%

Typical video site < 20%

Warum überhaupt der Aufwand?

Bytes De-liv-

ered

0%

20%

40%

60%

80%

100%

Watched Unwatched

Bytes De-liv-

ered

0%

20%

40%

60%

80%

100%

Watched Unwatched

ThrottledNot ThrottledWasted bandwidth

Page 19: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Windows 20008 Rich Media Verteilung

Windows Server 2008

“A type of streaming in which the audio or video file begins to play after a certain minimum amount of data has been transferred...”IIS + IIS Media Pack provides:

Consolidated web site managementBit rate throttlingExtending existing IIS7 Web sites

Scenario:You are hosting Web sites for customers who also want to provide media downloads

Progressive Download“Multimedia that is continuously received by, and normally displayed to, the end user while it is being delivered by provider.”

Windows Media Server:Live streaming Built-in bit rate throttlingFast forward/fast rewindBuilt-in proxy/cacheAdvanced fast start

Scenario:You want to broadcast a live event, like a baseball game (MLB).

Streaming

Page 20: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .
Page 21: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Media Service s bieten Hochverfügbarkeit

Page 22: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Wieviele Clients können bedient werden?

Page 23: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Welche Bandbreiten sind realistisch (UC)?• 5.1 sound ab 128 Kbps

• HD Movie content deutlich höher (700 Kbps+)

• Benötigte Netzwerk Kapazität = Content bit rate x Clients

Content bit rate ~ Dateigrösse / Spielzeit [sec]

Beispiel:2 Mbyte Datei ~ 16,000,000 bits; 1½ Minuten Spieldauer (90 sec)Netzwerkkapazität pro Stream: ~ 180 Kbpsbei 500 gleichzeitigen Zuschauern: 90 Mbps (100 Mbps reicht nicht!)

• Fast streaming Technologie für bessere Client Experience• Fast start (höhere Bandbreite bis Cache gefüllt)• Advanced start (Player startet bevor Cache gefüllt)• Fast Cache: Schnelleres Nachfüllen des Cache• Variable Bit Rate

Page 24: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Progressive Download Tips

Adjust bandwidth limit per connection to 110% of content bit-rate to accommodate network glitches.

Set initial burst time to be =>2 times the pre-roll value of your content for faster startup

Page 25: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Ergebnisse aus dem Testlab*…

* Whitepaper “Optimizing Microsoft Windows Media Services 9 Series”, Microsoft

Page 26: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Prozessoren sind nicht alles*

Bottleneck is most often Disk I/O (Windows Server caches files, though!)Avoid processor utilization >25 % avg. to allow peaks for other tasks (connections)

100mbit card: 1 proc1gbit card: 2 procWireless clients: 4 procs

* Whitepaper “Optimizing Microsoft Windows Media Services 9 Series”, Microsoft

Page 27: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Tipps für Windows Media Services• Bessere Skalierung durch

• Trennung Encoder / Streaming Server• 2 publishing points wg. Connections Belastung

• Bessere Netzanbindung (full duplex)• Mehr Server• Management Pack zur Überwachung mit OpsMgr

• Beispiele (bei gleicher Hardware)• X64 bietet rund 40% mehr Skalierung (Caching)• Windows 2003 Scalable Networking Pack: nochmals 40%• Windows 2008 network offload technologies verdoppelt

Skalierung• Windows 2008 Server Core: erhöhte Verfügbarkeit

(weniger Patches)

Page 28: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Weitere Streaming Performance Tipps

Disable buffering on broadcast publishing points for synchronous events

Set a higher acceleration bandwidth limit when serving high bit-rate content (the default is 3.5Mbps)

If you set up both IIS and WMS on the same box, assign the WMS server to a different port or IP address to avoid HTTP port 80 contention

Page 29: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Demo: Tuning Windows Media Services

Windows Media Services in Windows 2003 SP2

Page 30: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Die Entscheidung Webserver / Media Services hängt aber auch von weiteren Faktoren abMedia Services• Zwingend für

Livestreaming• Encoder Roll-over

• Multicast fähig• Weltweite Content

Netzwerke• Höhere Skalierung

• protocol roll-over• Client feedback (VBR)

• Bessere Bandbreitennutzung• Smart Caching• Smart Start• Smart Forward

• Kaum Proxy Unterstützung• Eigener Cache-Server

Web Server• Ideal für download &

play• Hohe Bitraten, kleinere

Files• Unabhängig vom

Webserver• Vorteile Windows 2008

• Kann Proxyserver passieren• http vs. rtsp

• Kein Feedback vom Client• Keine variable Bandbreite• Kein Smart caching• “Kein” Smart start

• Bandbreiten Verluste• Zuviel Content übertragen

Page 31: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Und wenn Sie nicht selber streamen möchten:Silverlight Streaming by Windows LiveProvides developers a free, scalability-on-demand solution for Silverlight

• Free, 4GB hosting and streaming• You build the application, we deliver the scale• 700 kbps peak (4min video max or 300 kbps /

10min)• You can use playlists to connect files, though

Creation ExperienceSilverlight Streaming

Windows Live Platform

http://silverlight.live.com

Page 32: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Fassen wir zusammen:• Vector graphics, media, text, animation, and overlays• Consistent experiences, fast install on Mac and

Windows• Industry standard video format from HD to mobile• Works with millions of hours of content, WMV and VC-

1

Cross-PlatformMedia

Experiences

• Simple integration with existing Web technologies• Role-specific tools for designers, developers,

encoders• Up to 15x faster encoding w/ Tarari accelerators• Works with existing Windows Media solutions and

tools

Flexible Development, Collaborative

Tools

• 2x scalability of Windows Server 2003 with “Longhorn”

• Proven 99.999% reliability of Windows Media Streaming

• Optional Microsoft PlayReady™ content access forMac, Windows, & Devices

• Flexible ad-insertion solutions with video & animation

Efficient Delivery, New Revenue Opportunities

Microsoft Confidential, DO NOT disclose until April 16th, 2007, 12:01 am EST

Page 33: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Studien (RampRate) sprechen für Windows Servern

Windows Media Services Flash Media Server 2.0$0

$500

$1,000

$1,500

$2,000

$2,500

$3,000

$3,500

$4,000

$4,500

ERP of a Media Streaming Server

“The majority of survey respondents report higher costs with Flash,even at bulk rates” (Source: RampRate 04/2007)

80% of respondents would be interested in deploying a solution that offers strengths of Windows Media with the cross-platform interactivity of Flash(Source: RampRate 04/2007)

“Scalability with Flash has been reported by customers as 3-4 times lower than WMS” (Source: RampRate 04/2007)

Cost of an entry-level streaming server is nearly 50% lower for Windows Media

when compared to Flash + Linux

Microsoft Confidential, DO NOT disclose until April 16th, 2007, 12:01 am EST

Page 34: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

Ein Kostenvergleich der Plattformen zeigt dies auchFeature Silverlight .NET 3.0 Adobe Flash 9

Rich 2D animation/graphics w/ audio and video

Industry standard video codec

Scalable video format from HD to mobile

Hardware-assisted editing and encoding solutions

XML (XAML) -Based Presentation layer for SEO

Choice of standards-based and high-performance languages

E2E Server & Application Platform

Media Server Licensing (Unlimited Bandwidth) $999 $999 $4500

Content Access Protection (DRM)

Client side playlists for ad-insertion

Robust Video Publishing Tools and 3rd Party Ecosystem

High-performance, multi-core enabled client

Scalable Full Screen video up to HD (720p)

Native support for device-based video

Offline, Document support

Client Size ~2MB ~50MB ~2MB

Supported Operating SystemsWindows

/MacWindows Windows/Mac/

Linux

11/19/2006

E

xp

eri

en

ce D

eliver

Cre

ate

Page 35: Streaming mit Microsoft Frank Koch (Bern) Technologieberater Developer & Platform Group Microsoft Schweiz GmbH .

© 2007 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.