intro to compressing audio & video with flash and html5 eldc2011

84
Video & Audio [email protected] Twitter.com/NickFloro Introduction to Compressing Are you on Twitter? Why not? Join today and participate in the conference backchannel #eldc2011 Flash & HTML5

Upload: nick-floro

Post on 09-May-2015

1.298 views

Category:

Technology


1 download

DESCRIPTION

Presented at ELDC2011 in Utah 2011.

TRANSCRIPT

Page 1: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Video & Audio

[email protected]/NickFloro

Introduction to Compressing

Are you on Twitter? Why not?Join today and participate in the conference backchannel #eldc2011

Flash & HTML5

Page 2: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

A file that tells the computer what kind of media to present and when to present it.

• Video• Audio• Text• Flash• Interactivity• Tracks

Flash & HTML 5

Page 3: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

1991

Page 4: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

1999

Page 5: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 6: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 7: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 8: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Capture to delivery and beyondThe Production Process

Authoring DeliveryVideo / Audio Assets Compression

Page 9: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

QuickTime takes you from capture to delivery and beyondA Complete Solution

Delivery

Edit and Compose Playback

Capture Archive

Page 10: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

ß

Page 11: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 12: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Standards Matter

MP3/AAC

Player

SurroundSoundCD

DigitalCameraDVDStereo

VideoCameraHDTV

Page 13: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Standards Are Everywhere

MPEG-1/MPEG-4

audio

MPEG-2RedBook JPEGAC-3FM DVNTSC/

PAL

Page 14: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

The foundation for all digital mediaFamily of MPEG Standards

MPEG-1VHS Quality

1.5 Mbps1992

MPEG-2DVD Quality

6 Mbps1994

MPEG-4Wireless, Internet

Scalable1998

Page 15: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Video

Page 16: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

• Original DV 60 sec 266mb

• MPEG-4 = 450k to 7.8mb

• Flash 8+ = 450k to 7.8mb

• 60 minutes of Video = 16gb

• 60 minutes compressed = 480mb

MPEG-4: The MPEG for the InternetThe standard for the digital media revolution

Page 17: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

PixelsGuidelines for Compression

DV 720 x 486

720P 1280 x 720

HD 1080i 1920 x 1080

Page 18: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Content PlacementGuidelines for Compression

320 x 240

Page 19: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Selecting a SizeGuidelines for Compression

320 x 240

512 x 384

640 x 480

Page 20: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 21: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 22: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 23: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 24: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 25: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Frame RateGuidelines for Compression

29.97 fps

Page 26: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Frame RateGuidelines for Compression

29.97 fps 15 fps

Page 27: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Tips & Hints

Key Frames: 4 x fps

Guidelines for Compression

Page 28: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Guidelines for Compression2 Pass Variable Bit Rate

Page 29: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Guidelines for Compression2 Pass Variable Bit Rate

Page 30: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Tips & Hints

• Frame Rate: 15 fps– Key Frames: 4 x fps

• Data Rate Target 800-1200 kbs

• 2 Pass Variable Bit Rate

• QuickTime: Sorenson 3 / H264

• Flash: Spark / On2 Pro / H264

Guidelines for Compression

WebM

Page 31: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Easy Access to VideoFlip $100 to $200

Page 32: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Smart Phones

Page 33: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Audio

Page 34: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Selecting a MicrophoneUSB Connects Directly to Computer

Samson CO1U USB Condenser Microphone $70

Logitech USB Desktop Microphone $20

Logitech ClearChat Pro USB Headset $40

Blue Microphones Yeti USB Microphone $149

Blue Microphones Snowball USB Microphone $89

Page 35: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Audacity http://audacity.sourceforge.net/

EasyVoipRecorder Recorder (Windows) http://www.easyvoiprecorder.org/

Hot Recorder (Windows) http://www.hotrecorder.com/

Call Recorder (Mac OS X) http://www.ecamm.com/mac/callrecorder/

SkypeRecord Directly

Page 36: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Stereo or MonoGuidelines for Compression

Page 38: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

• 11mb 16bit 44khz Stereo

• 2.8mb 16bit 22khz Mono

• 500k MP3 64k 44khz Mono

Compressing Audio60 Seconds

Page 39: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Compressing Audio60 Minutes

30mb660mb60 minutes Compressed MP3 Audio

60 minutes of Uncompressed Audio

Page 40: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 41: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Podcasts on the GoAudioBoo & iPhone

Page 42: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Tips & Hints

• 16 bit Mono 22 khz

• MP3 64kbit/s Mono 22khz

Guidelines for Compression

Page 43: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Setting up a StudioCosts

Computer $1,199 Software $994 Camera / Studio $1,470

Premiere CS4 $699 or Final Cut $995

Boris Chroma FX $295

Sanyo HD $400 16gb Video SD $55

Green Screen $200

Lavalier Microphone $295Tripod $125

Flood Lighting $395

Apple iMac $1,199

MacBook Pro $1,199

Page 44: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Percentage of Browser Enabled ViewersBrowser Technologies

Adobe Flash Player

Microsoft Windows Media Player

Apple QuickTime Player

0 25 50 75 100

67.7

83.4

99.1

Page 45: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

New Form FactorsDelivering Content Everywhere

Page 46: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Select a format for deliveryFlash vs HTML5

Flash H264 / Google WebMMPEG 4

Page 47: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Fast StartWeb Delivery: HTTP Streaming

Development Standard Web Server

Clients

Page 48: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 49: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 50: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 51: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

QuickTime Streaming ServerWeb Delivery: RTP/RTSP Streaming

Development Streaming Server Client

Web Server

Page 52: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

QuickTime Pro

Sorenson Squeeze

Telestream Episode

Final Cut Pro

Flash

Compressing Content

Page 53: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Dozens of professional features

• Hint movies for streaming• Automate with AppleScript• Edit movie clips from digital

cameras• Convert and resize pictures• Enhance movies and stills with

filters and effects

QuickTime Pro

Page 54: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

HandBrakeOpenSource for Mac/Win/Linux

• MPEG-4• H.264

Page 55: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

One Tool for Everything

• MPEG-4• Flash SWF• Flash FLV• QuickTime• Real media• MPEG 1/2• MP3 Audio

Telestream Episode

Page 56: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Authoring & Delivery

• Flash SWF• Flash FLV

Flash CS5

Page 57: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

NLE

• Batch• QuickTime• Effects• Filters• Tools

Final Cut

Page 58: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Video Compression

Flash

Page 59: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

<!-- flash movie & bullets --> <div id="flashholder"> <div id="flash"> <script language="javascript"> if (AC_FL_RunContent == 0) { alert("This page requires AC_RunActiveContent.js."); } else { AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width', '320', 'height', '310', 'src', '../FLV_Player', 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'align', 'middle', 'play', 'true', 'loop', 'true', 'scale', 'showall', 'wmode', 'window', 'devicefont', 'false', 'id', 'FLV_Player', 'bgcolor', '#ffffff', 'name', 'FLV_Player', 'menu', 'true', 'allowFullScreen', 'false', 'allowScriptAccess','always', 'movie', '../FLV_Player', 'salign', '' ); //end AC code } </script> <noscript>

Page 60: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

// HTML 5 makes<video> as easyas <img>// HTML 5 makes <video> as easy as <img>

Page 61: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

HTML 5 OptionsVideo Compression

Flash H264MPEG 4

Ogg Theora WebM

Page 62: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

<video src="http://example.com/myMovie.ogg" controls>Your browser does not support the video element.</video>

Embedding Video

Page 63: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

<video controls><source src="foo.ogg" type="video/ogg"><source src="foo.mp4">Your browser does not support the video element.</video>

var v = document.getElementsByTagName("video")[0];v.play();

Embedding Video

Page 64: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Resources

Page 65: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Compression for Great Video and Audio, Master Tips and Common Sense

Page 67: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

http://www.telestream.net/episode/overview.htm

Page 70: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Screencasts 101 Mini-Session

www.jingproject.com

Page 72: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 73: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 74: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 75: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 76: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011
Page 80: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

www.twitter.com

Page 82: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Download the Presentation at:http://www.slideshare.net/nickfloro

Page 83: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

www.launchcycle.com

Page 84: Intro to Compressing Audio & Video with Flash and HTML5 eldc2011

Thank You

Nick Florosealworks interactive studios

[email protected]

twitter.com/NickFloro

Download the Presentation at:http://www.slideshare.net/nickfloro