33
Introduction to Streaming Video Eric Smith Assistant Director Information Security & Networking Bucknell University This is an interactive session: please connect your laptop to the bucknell_guests wireless network.

Introduction to Streaming Video

  • Upload
    ronny72

  • View
    1.889

  • Download
    2

Embed Size (px)

Citation preview

Page 1: Introduction to Streaming Video

Introduction toStreaming Video

Eric SmithAssistant Director

Information Security & NetworkingBucknell University

This is an interactive session: please connect your laptop to the bucknell_guests wireless network.

Page 2: Introduction to Streaming Video

What is Streaming Video?

Goal: to replicate typical TV broadcasts.

A copy of the content is not (should not) readily obtained by the client.

Playback begins immediately (almost… after buffering).

Transmission of digital audio and videoacross a data network.

Page 3: Introduction to Streaming Video

Challenges

In streaming video, you have to address diverse:

>> Operating Systems>> Bandwidth>> Browsers >> Media Players>> Media Codecs >> Users

TV is easy:Everyone has the same Channel 3.

Page 4: Introduction to Streaming Video

Patron location is not fixed – local versus remote. No control over clients’ hardware or software.

>> Present both high and low bandwidth options.>> Include tools to help the user decide

which option to use.>> Use an operating system-agnostic stream.

The Institutional Repository (IR) Audience

Page 5: Introduction to Streaming Video

Approaches to Streaming Video

HTTP: File Download

Streaming Media Servers

Hybrids

Multicast

Page 6: Introduction to Streaming Video

HTTP “Streaming”: File Download

.AVI (.MOV, etc.) file on a webserver

Client plays the downloaded file

File is saved to theclient’s hard drive

Page 7: Introduction to Streaming Video

HTTP “Streaming”: File Download

Client obtains a full copy of the media file.

Client machine must download entire file before playback begins

Easy – Just put the AVI on your webserver.

Page 8: Introduction to Streaming Video

HTTP “Streaming”: Demo

Test with audience

Copy AVI to webserver

http://www.bucknell.tv/demos

Page 9: Introduction to Streaming Video

Approaches to Streaming Video

HTTP: File Download

Streaming Media Servers

Hybrids

Multicast

Page 10: Introduction to Streaming Video

Streaming Media Servers

Each client’s connection is negotiated with the server on an individual basis

Windows Media (and QuickTime / Real / etc.)

Able to stream live events

You already own the software: Included as part of Window Server 2003/2008

Page 11: Introduction to Streaming Video

Streaming Media ServersWindows Media Services

Files to be streamed must be in a compatible WMV formatClients must use a compatible version of WMP

Mac / Linux users are problematic*

Page 12: Introduction to Streaming Video

Streaming Media Servers: DemoWindows Media Services

Convert source video to WMV

Create publishing point

Test with audience

ffmpeg –b 2000k -i /uploads/StarTrekTOS-TheLightsOfZetar-Clip.avi -acodec wmav2 TrekClip.wmv

Page 13: Introduction to Streaming Video

Approaches to Streaming Video

HTTP: File Download

True Streaming

Hybrids

Multicast

Page 14: Introduction to Streaming Video

HTTP “Streaming” Hybrids

FLV file on a webserver

Playback begins~ immediately

Excess datacached to local disk

Page 15: Introduction to Streaming Video

HTTP “Streaming” Hybrids

Played

Downloaded

Page 16: Introduction to Streaming Video

HTTP Streaming Hybrids Demowww.bucknell.tv

Upload source video to server

Convert to FLV

Test with audience

Page 17: Introduction to Streaming Video

Approaches to Streaming Video

HTTP: File Download

True Streaming

Hybrids

Multicast

Page 18: Introduction to Streaming Video

Multicast Video

Stream is duplicated and distributed by the network

Single AV streamsent to a

multicast IP address

Clients join themulticast group

Page 19: Introduction to Streaming Video

Multicast: Digital CATV Equipment

MPEG2 Encoder

Set-Top Box (STB)

Page 20: Introduction to Streaming Video

BUTV: Bucknell University’s Digital Cable TV

Bucknell

D&E Communications

SubscriptionCATV

Foreign Language &Special Events

Page 21: Introduction to Streaming Video

BUTV: Bucknell University’s Digital Cable TV

D&E Communications Datacenter

State College, PA

Page 22: Introduction to Streaming Video

Multicast Video: Pros and Cons

Requires multicast-aware routers and switches

High bandwidth, broadcast-quality streams

Very efficient use of network bandwidth

Inefficient for single-viewer applications

Disastrous to wireless networks

Does not work across the Internet

Page 23: Introduction to Streaming Video

Multicast Demo

Obtain packet capture

Re-transmit the packets

Test with a BUTV set-top box

Page 24: Introduction to Streaming Video

Automating the Process: www.bucknell.tv

Archival VideoIn IR

FLV Transcoder

Streaming FlashVideo

Page 25: Introduction to Streaming Video

Streaming Video: Bandwidth Issues

Streaming Server [n]

200Mb

320x240 30FPS stream ~500k

Max of 200 clients assuming 50% load

Internet

Page 26: Introduction to Streaming Video

The tubes are full: Akamai to the rescue

34,000 Servers – 70 Countries – 900 NetworksBucknell hosts 5 Akamai servers

Page 27: Introduction to Streaming Video

The tubes are full: Akamai to the rescue

34,000 Servers – 70 Countries – 900 NetworksBucknell hosts 5 Akamai servers

Page 28: Introduction to Streaming Video

The tubes are full: Akamai to the rescue

34,000 Servers – 70 Countries – 900 NetworksBucknell hosts 5 Akamai servers

Page 29: Introduction to Streaming Video

Akamai and Streaming Video

Content is served by the closest Akamai server.All major ISPs host Akamai cache servers.

Page 30: Introduction to Streaming Video

Akamai Streaming Video: Case StudyPatron connecting from a Time-Warner Cable Modem

Streaming directly to Bucknell:41ms Latency24 Router Hops

Streaming through Akamai:10 ms Latency7 Router Hops

Page 31: Introduction to Streaming Video

Akamai Demowww.bucknell.tv/demos

Upload source video to server

Convert to FLV

Upload to Akamai

Prepare HTML Container

Test with Audience

Page 32: Introduction to Streaming Video

References and Resources:

VLC: www.videolan.orgVirtualDub: www.virtualdub.org

FFMPEG: sourceforge.net/projects/ffmpegUbubtu: www.ubuntu.com

Medibuntu: www.medibuntu.orgSWFObject: http://code.google.com/p/swfobject

Akamai: www.akamai.comPSKL: www.pskl.us

Thank you for your attention. Questions?

Page 33: Introduction to Streaming Video

Appendix A: Archival Formats & Key Frames