Everything You Ever Wanted To Know About Online Video - TSSJS 2011


Published on

This presentation takes you through the nitty-gritty of online video and what it takes to build a high-traffic video portal. How do you get content, encode it properly and deliver it to a CMS and CDN? How do you program the backend infrastructure to handle load and high-availability? I'll talk about various clients (Flash, HTML5, iPhone, iPad, Android, Sony) and lessons I've learned implementing applications on them.

Published in: Technology, Business

Everything You Ever Wanted To Know About Online Video - TSSJS 2011

  1. 1. EVERYTHING YOU EVER WANTED TO KNOW ABOUT ONLINE VIDEO Matt Raible http://raibledesigns.com Images by Stuck in Customs - http://www.flickr.com/photos/stuckincustoms © 2010 Raible Designs
  2. 2. INTRODUCTIONSDo you watch video online?Do you have cable orsatellite?Netflix Subscriber?Do you think online videowill replace cable/satellite?
  3. 3. Blogger on raibledesigns.com Father, Skier, Cyclist Web Framework ConnoisseurMontana Native Founder of AppFuse Who is Matt Raible?
  4. 4. SESSION AGENDAOnline Video HistoryCreating VideoPublishing VideoA Case StudyConclusionQ and A
  5. 5. BROADCAST TVBroadcast TV is Going The Way of the Dinosaur52 percent of U.S. television viewers watch live broadcastTV compared to online and time-shifting alternatives.The younger people are, the less time they spend on livetelevision.Two major forces are at work here: The huge growth in video content being made available. The growth in all kinds of devices to deliver that content. September 13, 2010 http://www.kikabink.com/news/why-broadcast-tv-is-going-the-way-of-the-dinosaur/
  6. 6. ONLINE LIVE TV In the past year, U.S. audiences spent a whopping 648 percent more time watching live television on the Internet. The growth in time spent on such sites as YouTube and Hulu is up 68% and 75%, respectively. Viewers tend to spend more time watching live TV than non-live TV online. Top online live TV providers: USTREAM, Justin.tv and LivestreamSeptember 14, 2010 http://www.kikabink.com/news/online-live-tv-consumption-up-648-percent-more-bad-news-for-tv-networks/
  7. 7. HOW PEOPLE WATCHOnline Video: approximately 70% of global online consumerswatch online video.Mobile Video: is already used by 11% of global onlineconsumers.Tablet PCs: are expanding the definition of mobile video.Television: is a universally important platform for videoconsumption.“Over the Top” TV: televisions with Internet connections aregaining interest.August 4, 2010 http://blog.nielsen.com/nielsenwire/global/report-how-we-watch-the-global-state-of-video-consumption/
  8. 8. NETFLIXNetflix Has Added 8 Times As Many Subscribers in 2010 As Top Pay-TV Operators, Combined November 5, 2010 http://videonuze.com/blogs/?2010-11-05/
  9. 9. HISTORY OF ONLINE VIDEO http://www.youtube.com/watch?v=jM0lF-LHWqg
  10. 10. ONLINE VIDEO TIMELINE http://www.flickr.com/photos/mraible/5174466473
  11. 11. CREATINGHow does one create video?
  12. 12. TYPES OF PROVIDERSNetflixHuluXFinity TV (Comcast)ABC, CBS, NBC, FoxiTunesYouTube
  13. 13. NO, RAW PROVIDERS!YouNetworksMovie Studios
  14. 14. DO IT YOURSELFJust Do It!SD or HD?Pick a CameraLighting and ContentBackgroundsCamera SettingsDon’t Burn Down your House http://blog.vidcompare.com/online-video/tag/online-video-production/
  15. 15. VIDEO CONTAINER FORMATSMPEG 1 / MPEG 2 - .mpgMPEG 4 - .mp4QuickTime - .movFlash Video - .flvOgg - .ogvWebM - .webmAudio Video Interleave - .avi
  16. 16. WATCHING A VIDEOVideo Player does 3 things at once: Interprets the container format for available tracks and data to decode next. Decodes the video stream and displays images on screen. Decodes the audio stream and sends sound to speakers. http://diveintohtml5.org/video.html
  17. 17. VIDEO CODECSHundreds (~230) ofvideo codecs.Most Relevant: H.264 Theora VP8
  18. 18. AUDIO CODECSHundreds of audiocodecs.For the web, only 3: MP3 AAC Vorbis
  19. 19. ENCODING PROFILESBaseline Profile Video Conferencing and MobileMain Profile Consumer BroadcastExtended Profile Streaming VideoHigh Profile HD DVD and Blu-ray Discs
  20. 20. BIT RATE AND VIDEO16 kbit/s – videophone quality (minimum necessary for a consumer-acceptable "talking head" picture using various video compressionschemes)128 – 384 kbit/s – business-oriented videoconferencing quality usingvideo compression1.15 Mbit/s – VCD quality (using MPEG1 compression)3.5 Mbit/s - Standard-definition television quality (with bit-ratereduction from MPEG-2 compression)9.8 Mbit/s – DVD (using MPEG2 compression)8 to 15 Mbit/s – HDTV quality (with bit-rate reduction from MPEG-4AVC compression) http://en.wikipedia.org/wiki/Bit_rate
  21. 21. BIT RATE AND VIDEO19 Mbit/s approximate - HDV 720p (using MPEG2compression)24 Mbit/s max - AVCHD (using MPEG4 AVC compression)25 Mbit/s approximate - HDV 1080i (using MPEG2compression)29.4 Mbit/s max – HD DVD40 Mbit/s max – Blu-ray Disc (using MPEG2, AVC or VC-1compression) http://en.wikipedia.org/wiki/Bit_rate
  22. 22. ENCODING SOFTWAREOgg Video Firefogg ffmpeg2theoraH.264 Video HandBrakeWebM ffmpeg 0.6+
  23. 23. ENCODING SOFTWAREiMovieFinal Cut ProAdobe PremierePinnacle StudioAfter AffectsWindows Movie Maker
  24. 24. PUBLISHINGHow does one publish video?
  25. 25. EDIT AND PUBLISH http://www.youtube.com/watch?v=wEC9JKQVoj0
  26. 26. YOUTUBE EMBEDhttp://www.youtube.com/watch?v=g1ZjqHX2q7EClick Embed and copy code to your website
  27. 27. YOUTUBE EMBEDhttp://www.youtube.com/watch?v=g1ZjqHX2q7ENew! Click Embed and copy iframe code
  28. 28. YOUTUBE DOWNLOADhttp://www.youtube.com/watch?v=g1ZjqHX2q7EUse Firebug or Web Inspector to copy large file URL.Paste URL in browser to download .flv.Install Perian for QuickTime Player.Open .flv, save as .mov then embed in Keynote.
  30. 30. YOUTUBES 50 BEST VIDEOShttp://bit.ly/youtube-best50-2010
  31. 31. CHARLIE BIT MY FINGER - AGAIN!http://www.youtube.com/watch?v=_OBlgSz8sSM
  32. 32. D AV I D A F T E R D E N T I S Thttp://www.youtube.com/watch?v=txqiwrbYGrs
  33. 33. DOUBLE RAINBOWhttp://www.youtube.com/watch?v=OQSNhk5ICTI
  34. 34. http://www.youtube.com/watch?v=oHg5SJYRHA0
  35. 35. W H AT A B O U T C O M M E R C I A L V I D E O ?
  36. 36. OV PLATFORMSContent IngestEncodingStorageContent ManagementAnalyticsPlayback
  37. 37. OV PLATFORM PROVIDERSBrightcovethePlatformMagnifyOoyalaKaltura** open source platform http://www.vidcompare.com/find-online-video.php?searchType=cat&cat=2
  38. 38. CHOOSING AN OVPhttp://blog.vidcompare.com/online-video/4-vector-video-personality-matching-your-use-case-to-an-ovp/
  39. 39. MAJOR MEDIA MAKER Good solutions for the Major Media Maker are Brightcove,  Kaltura,  Ooyala, or building your own solution with JW Player or Flowplayer.http://blog.vidcompare.com/online-video/4-vector-video-personality-matching-your-use-case-to-an-ovp/
  40. 40. SOCIAL MEDIA MAVEN Good solutions for the Social Media Maven might be self server video players like Vimeo or Viddler,   or more full featured video discovery solutions like VodPod or Magnify.net.http://blog.vidcompare.com/online-video/4-vector-video-personality-matching-your-use-case-to-an-ovp/
  41. 41. BRAND BUILDING DESTINATION Good solutions for you include solutions with integrated social media tools, robust API’s, a diverse mix of on-page players,  and database driven video library pages. For an open source solution,  Kaltura offers some of these features,   as does Ooyala,  and Magnify.net powers these solutions.http://blog.vidcompare.com/online-video/4-vector-video-personality-matching-your-use-case-to-an-ovp/
  42. 42. MONETIZATION MONSTER For the hard core revenue driven site,  the number one, two and three concern is ad serving. Among the solutions for this complex integration are Brightcove,  Magnify and Ooyala.http://blog.vidcompare.com/online-video/4-vector-video-personality-matching-your-use-case-to-an-ovp/
  43. 43. CONTENT DELIVERY NETWORKPuts data close to clientOptimize capacity percustomerImproved streamquality & performanceSecurity for videosWeb Caching
  44. 44. COMMERCIAL CDNSAkamaiCDNetworksLimelightCacheflyLevel 3
  45. 45. ANALYTICSTrack page and videoviewsAnalyze and optimize2 Types: log files andpage taggingA/B Testing
  46. 46. ANALYTICS TOOLSLogfile-based: AWStats WebalizerHosted Solutions: Omniture Google Analytics Webtrends
  47. 47. ADVERTISINGIt’s how you make $$ onthe web.Good advertising isinformation.
  48. 48. ADVERTISINGhttp://www.marketingcharts.com/print/share-of-ad-spending-by-medium-december-2009-12352/
  49. 49. AD PROVIDERSGoogle AdSenseDoubleClickLightningcastFreeWheelScanScout
  50. 50. THE INGEST PROCESS http://www.cscglobaltech.com/services/video-ingestion.html
  51. 51. T H E V I D E O P L AY E R
  52. 52. HTML5HTML5 is a set of web standards being developed bythe "Web Hypertext Application Technology WorkingGroup"The HTML5 standard includes many new features formore dynamic web applications and interfaces. Onesuch component being specified and implemented isthe <video> element.
  53. 53. BROWSER CODEC SUPPORT http://diveintohtml5.org/video.html#what-works
  54. 54. HTML CODEProgressive download: <video src="video.mp4"></video>HTTP Live Streaming: <video src="http://live.stream.com/channel/ index.m3u8"></video>
  55. 55. THE <VIDEO> TAGUse “width” and “height” to size video.Use “controls” attribute to show native controls.Use “preload” to enable pre-loading of video.Use “autoplay” to play video when page loads.Can control video player with JavaScript: play() and pause() methods currentTime, volume and muted properties
  57. 57. OPEN SOURCE HTML5 VIDEO PLAYERSFlareVideo - MITVideo JS - LGPLProjekktor - GPLKaltura HTML5 VideoPlayer - MITJW Player for HTML5 -free for non-commercialSource: http://www.net-kit.com/20-html5-video-players/
  58. 58. FLASH VIDEOFlash Video was introduced in Flash Player 6 (2002)Adobe claims: 98% of U.S. web users have Flash installed. 99.3% percent of all Internet desktop users.Flash very low % on mobile devices b/c of Apple.W3C Interest Group for Web on TV
  59. 59. TOP VIDEO SITESSource: http://comscore.com
  60. 60. MAJORITY OF ONLINEVIDEO NOW IN HTML5 http://www.readwriteweb.com/archives/html5_video_market_penetration.php
  61. 61. OPEN SOURCE FLASH VIDEO PLAYERSOpen Video Player (OVP) Business-friendly licenseFlowplayer GPL or CommercialStrobe Media Playback BSDJW Player Non-commercial or $$
  62. 62. MEDIA STREAMINGReal Time Messaging Protocol (RTMP) Proprietary protocol by Adobe Requires Flash Media ServerHTTP Live Streaming Developed by Apple, submitting to IETFHTTP Dynamic Streaming Adobe’s implementation of HTTP Live StreamingProgressive Download
  63. 63. FLASH VS. HTML5 PERFhttp://www.readwriteweb.com/archives/does_html5_really_beat_flash_surprising_results_of_new_tests.php
  64. 64. OTHER OPTIONSIt’s really a question of native vs.web.iPad/iPhone, useMPMoviePlayerViewControllerAndroid, use MediaPlayerWebapp with HTML5 is the mostportable, but HTML5 video might notbe ready for primetime...
  65. 65. HULUHTML5 Isn’t Ready for Prime Time“HTML5 lacks maturity in reporting, advertising andcontent security.” http://gigaom.com/video/hulu-html5-isnt-ready-for-prime-time/
  66. 66. NETFLIXNetflix: No Plans for HTML5 Video“The Silverlight player is used for PC/Mac playbackonly, and the basic HTML5 Video doesn’t have a viableDRM solution at this point.” http://gigaom.com/video/netflix-no-plans-for-html5-video/
  67. 67. IS THERE HOPE?W3C will try to address commercial video requirementsbefore HTML5 spec completion.W3C is aiming for HTML5 spec completion by May 2011.W3C only defines web document language, notprotocols, so MP4 video and DRM are outside of theirdomain.TimedTracks just got accepted from WHATWG intoW3C HTML5.
  68. 68. A CASE STUDYBuilding an Online Video Web Application
  69. 69. T W C I PA D A P P R E L E A S E D Y E S T E R D AY#2 in the App Store
  70. 70. QUESTIONS?Contact Information http://raibledesigns.com http://twitter.com/mraibleDownload Presentation http://slideshare.net/mraible