SlideShare uma empresa Scribd logo
1 de 8
Baixar para ler offline
Rethinking Large Video Files
         in the Cloud
          STRATEGIES FOR ELIMINATING BANDWIDTH
                      BOTTLENECKS




About Zencoder
Zencoder is the largest and fastest cloud-based encoding service in the world.  
Its products enable content providers to quickly transcode and publish video to
consumers on virtually any Internet connected device, including web, mobile, and TV.

To learn more about Zencoder, visit http://zencoder.com
or contact us at info@zencoder.com
Eliminating Bandwidth Bottlenecks
Bandwidth is a problem for high-bitrate video. Cloud-based transcoding has enormous
advantages over on-premise transcoding: better ROI, faster speeds, and massive
scalability. But professional video content is often stored at 30-100 Mbps (or more),
resulting in very large files. Conventional wisdom holds that these files are too large to
transfer over the public Internet.

                            Figure 1. Common professional video formats.

Format                         Bitrate        Size (per hour)       Transfer time (lossy TCP)[1]
DNxHD 36                       36 Mbps        15.8 GB               1.65 hours
ProRes 422, SD PAL             41 Mbps        18.0 GB               1.88 hours
AVC Intra 100                  100 Mbps       43.9 GB               4.59 hours
DNxHD 220                      220 Mbps       96.7 GB               10.09 hours
ProRes 4444 HD                 330 Mbps       145.0 GB              15.14 hours
[1]   Actual TCP transfer at 21.8 Mbps over a 1000 Mbps connection with 10ms delay and 0.1% packet loss.


This problem becomes even worse when considering the size of an entire content
library. If a publisher creates two hours of high bitrate 50 Mbps video each day, they will
have a library of 32,000 GB after two years. What happens if it becomes necessary to
transcode the entire library for a new mobile device or a new resolution? Even though a
scalable transcoding system can transcode 32,000 GB of content in just a few hours,
moving that content over the public internet at 100 Mbps would take over 30 days.

Fortunately, there are solutions to these problems, and major media organizations like
Netflix and PBS are embracing cloud-based services. In this chapter of 12 Patterns of
High Volume Video Encoding, we will discuss four techniques used by major publishers
to eliminate these bandwidth bottlenecks and efficiently transcode video in the cloud.




                                                   -1-
1. Store video content close to video processing
The easiest way to eliminate bandwidth bottlenecks is to locate hosting and transcoding
together. For example, if your transcoding system is run on Amazon EC2, and you
archive your video with Amazon S3, you have free, near-instant transfer between
storage and processing. (This isn't always possible, so if your storage and transcoding
are in separate places, the next point will help.)

                             Fig 2. Time to Transfer 45 GB of Video
                                               (in hours)



           TCP                                                                         4.59




         Cloud        0.10


         Transfer time of 1 hour of 100 Mbit/s video. TCP achieves 22 Mbit/s transfer over a
         1 Gbit/s line in typical network conditions (10ms delay, 0.1% packet loss). In-cloud
         transfer represents tested speeds of 1 Gbit/s between Amazon S3 and Zencoder.



     To eliminate bandwidth bottlenecks, store video close to transcoding.




                                                -2-
2. Use accelerated file transfer
When transferring files over long distances, standard TCP transfer protocols like FTP
and HTTP under-utilize bandwidth significantly. For example, a 100 Mbps connection
may actually only transfer 10 Mbps over TCP, given a small amount of latency and
packet loss. This is due to the structure of the TCP protocol, which scales back
bandwidth utilization when it thinks the network is over-utilized. This is useful for general
internet traffic, because it ensures that everyone has fair access to limited bandwidth.
But it is counter-productive when transferring large files over a dedicated connection.
When it is necessary to transfer high-bitrate content over the Internet, use accelerated
file transfer technology. Aspera and other providers offer UDP-based transfer protocols,
which perform significantly better than TCP over most network conditions.
If Aspera or other UDP-based file transfer technologies aren’t an option, consider
transferring files via multiple TCP connections to make up for some of the inefficiencies
of TCP.

                               Fig 3. Time to Transfer 45 GB of Video
                                                 (in hours)


             TCP                                                                       4.59




          Aspera        0.20



         Transfer time of 1 hour of 100 Mbit/s video. TCP achieves 22 Mbit/s transfer over a
         1 Gbit/s line in typical network conditions (10ms delay, 0.1% packet loss). Aspera
         achieves 509 Mbit/s transfer over the same network conditions.


      To maximize bandwidth utilization, use file transfer technologies like
      Aspera, UDP, or multiple TCP connections.




                                                -3-
3. Transfer once, encode many
For video to be viewable on multiple devices over various connection speeds,
different video resolutions, bitrates, and codecs are needed. Many web and
mobile publishers create 10-20 versions of each file. So when doing high-volume
encoding, it is important that a file is only transferred once, and each transcode is
then performed in parallel.
When using this approach, you can effectively divide the transfer time by the
number of encodes to determine the net transfer time. For example, if transfer
takes 6 minutes, but you perform 10 transcodes in the cloud, the net transfer
required for each transcode is only 36 seconds.

                               Fig 4. Time to Transfer and Encode 10 Outputs
                                                         (in hours)

        On-premise (serial)




       Cloud (TCP, parallel)




    Cloud (Aspera, parallel)


                                 0            1.25           2.50           3.75            5.00


                         Transfer time                       Encoding time

      Transfer and encoding time of 10 outputs of 1 Hour 50 Mbit/s video at 2x realtime encoding speed.



     To achieve maximum efficiency, transfer a high quality file to the cloud
     only once, and then perform multiple encodes in parallel.




                                                -4-
4. Syndicate from the cloud after transcoding
Whether you transcode in the cloud or on-premise, some bandwith is required. In one
case, a high-bitrate mezzanine file is sent to the cloud for transcoding. In the other
case, when transcoding on-premise, several transcoded files are sent directly to a CDN,
publishing platform, or to partners like iTunes or Hulu. Both cases require outbound
bandwidth, and in many cases, syndicating from the cloud requires less overall
bandwidth than syndicating from an on-premise system.
For example, it is not uncommon for broadcast video to be syndicated at high bitrates. If
a broadcaster uses a 100 Mbps mezzanine format, and then syndicates that content to
five partners at 50 Mbps, it is clearly more efficient to only send the original file out of
the network for transcoding, and let the transcoding system handle the other transfers.
       Scenario A: high-bitrate syndication
       • Input file: 100 Mbps
       • Syndicated output: ∑(50 + 50 + 50 + 50 + 50) = 250 Mbps
In this scenario, 150 Mbps of egress bandwidth is saved by syndicating content from
the cloud.


Fig 5. Comparing Bandwidth Requirements of On-Premise and Cloud
                           Encoding




                                           -5-
Not everyone syndicates high-bitrate content, of course. But even when encoding low-
bitrate web and mobile video, multiple small files adds up. The example below shows
actual bitrates recommended for a major OTT video device, encoded to 10 bitrates, for
both MP4 and HTTP Live Streaming.
       Scenario B: low-bitrate syndication
       • Input file: 50 Mbps
       • Syndicated output: ∑(9 + 6 + 4.5 + 3.4 + 2.25 + 1.5 + 1.1 + 0.75 + 0.55 + 0.35 + 9
        + 6 + 4.5 + 3.4 + 2.25 + 1.5 + 1.1 + 0.75 + 0.55 + 0.35) = 58.8 Mbps


Even in this scenario, sending a 50 Mbps file to the cloud requires less overall
bandwidth than transcoding internally and delivering all 20 formats separately; and the
original is maintained in the cloud for subsequent transcoding.


       To save transfer bandwidth, syndicate content from external encoding
       system.


Conclusion
While transferring high-bitrate video can be a challenge, the correct approach to cloud
transcoding can mitigate these problems. High volume publishers should follow these
four basic guidelines:
   ‣    Store content in the cloud
   ‣    Use accelerated file transfer technology
   ‣    Ingest each file once to a parallel cloud transcoding system
   ‣    Syndicate directly from the cloud
By implementing these recommendations, media companies of all types can offload
video processing to the cloud, and realize the benefits of scale, flexibility, and ROI
provided by cloud transcoding.




                                            -6-
Appendix: Bandwidth Growth
There is one important fundamental driver that is helping to solve the bandwidth
problem: cheaper and wider bandwidth. Neilsen's Law of Internet Bandwidth has
tracked accurately from 1983 to the present, and states that high-end Internet
connection speeds will increase by 50% per year. Video bitrates are growing at a slower
rate, and so sending high-bitrate content over the Internet will become less of a problem
over time.


     Fig 6. Average Internet Connectivity and Sample Streaming Bitrates




But it isn’t enough to wait for internet bandwidth to improve. The right architecture,
covered in the body of this document, is still required to efficiently transcode high bitrate
content and large libraries.




                                            -7-

Mais conteúdo relacionado

Último

Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 

Último (20)

Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 

Destaque

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Destaque (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

Rethinking Large Video Files in the Cloud: Strategies for Eliminating Bandwidth Bottlenecks

  • 1. Rethinking Large Video Files in the Cloud STRATEGIES FOR ELIMINATING BANDWIDTH BOTTLENECKS About Zencoder Zencoder is the largest and fastest cloud-based encoding service in the world.   Its products enable content providers to quickly transcode and publish video to consumers on virtually any Internet connected device, including web, mobile, and TV. To learn more about Zencoder, visit http://zencoder.com or contact us at info@zencoder.com
  • 2. Eliminating Bandwidth Bottlenecks Bandwidth is a problem for high-bitrate video. Cloud-based transcoding has enormous advantages over on-premise transcoding: better ROI, faster speeds, and massive scalability. But professional video content is often stored at 30-100 Mbps (or more), resulting in very large files. Conventional wisdom holds that these files are too large to transfer over the public Internet. Figure 1. Common professional video formats. Format Bitrate Size (per hour) Transfer time (lossy TCP)[1] DNxHD 36 36 Mbps 15.8 GB 1.65 hours ProRes 422, SD PAL 41 Mbps 18.0 GB 1.88 hours AVC Intra 100 100 Mbps 43.9 GB 4.59 hours DNxHD 220 220 Mbps 96.7 GB 10.09 hours ProRes 4444 HD 330 Mbps 145.0 GB 15.14 hours [1] Actual TCP transfer at 21.8 Mbps over a 1000 Mbps connection with 10ms delay and 0.1% packet loss. This problem becomes even worse when considering the size of an entire content library. If a publisher creates two hours of high bitrate 50 Mbps video each day, they will have a library of 32,000 GB after two years. What happens if it becomes necessary to transcode the entire library for a new mobile device or a new resolution? Even though a scalable transcoding system can transcode 32,000 GB of content in just a few hours, moving that content over the public internet at 100 Mbps would take over 30 days. Fortunately, there are solutions to these problems, and major media organizations like Netflix and PBS are embracing cloud-based services. In this chapter of 12 Patterns of High Volume Video Encoding, we will discuss four techniques used by major publishers to eliminate these bandwidth bottlenecks and efficiently transcode video in the cloud. -1-
  • 3. 1. Store video content close to video processing The easiest way to eliminate bandwidth bottlenecks is to locate hosting and transcoding together. For example, if your transcoding system is run on Amazon EC2, and you archive your video with Amazon S3, you have free, near-instant transfer between storage and processing. (This isn't always possible, so if your storage and transcoding are in separate places, the next point will help.) Fig 2. Time to Transfer 45 GB of Video (in hours) TCP 4.59 Cloud 0.10 Transfer time of 1 hour of 100 Mbit/s video. TCP achieves 22 Mbit/s transfer over a 1 Gbit/s line in typical network conditions (10ms delay, 0.1% packet loss). In-cloud transfer represents tested speeds of 1 Gbit/s between Amazon S3 and Zencoder. To eliminate bandwidth bottlenecks, store video close to transcoding. -2-
  • 4. 2. Use accelerated file transfer When transferring files over long distances, standard TCP transfer protocols like FTP and HTTP under-utilize bandwidth significantly. For example, a 100 Mbps connection may actually only transfer 10 Mbps over TCP, given a small amount of latency and packet loss. This is due to the structure of the TCP protocol, which scales back bandwidth utilization when it thinks the network is over-utilized. This is useful for general internet traffic, because it ensures that everyone has fair access to limited bandwidth. But it is counter-productive when transferring large files over a dedicated connection. When it is necessary to transfer high-bitrate content over the Internet, use accelerated file transfer technology. Aspera and other providers offer UDP-based transfer protocols, which perform significantly better than TCP over most network conditions. If Aspera or other UDP-based file transfer technologies aren’t an option, consider transferring files via multiple TCP connections to make up for some of the inefficiencies of TCP. Fig 3. Time to Transfer 45 GB of Video (in hours) TCP 4.59 Aspera 0.20 Transfer time of 1 hour of 100 Mbit/s video. TCP achieves 22 Mbit/s transfer over a 1 Gbit/s line in typical network conditions (10ms delay, 0.1% packet loss). Aspera achieves 509 Mbit/s transfer over the same network conditions. To maximize bandwidth utilization, use file transfer technologies like Aspera, UDP, or multiple TCP connections. -3-
  • 5. 3. Transfer once, encode many For video to be viewable on multiple devices over various connection speeds, different video resolutions, bitrates, and codecs are needed. Many web and mobile publishers create 10-20 versions of each file. So when doing high-volume encoding, it is important that a file is only transferred once, and each transcode is then performed in parallel. When using this approach, you can effectively divide the transfer time by the number of encodes to determine the net transfer time. For example, if transfer takes 6 minutes, but you perform 10 transcodes in the cloud, the net transfer required for each transcode is only 36 seconds. Fig 4. Time to Transfer and Encode 10 Outputs (in hours) On-premise (serial) Cloud (TCP, parallel) Cloud (Aspera, parallel) 0 1.25 2.50 3.75 5.00 Transfer time Encoding time Transfer and encoding time of 10 outputs of 1 Hour 50 Mbit/s video at 2x realtime encoding speed. To achieve maximum efficiency, transfer a high quality file to the cloud only once, and then perform multiple encodes in parallel. -4-
  • 6. 4. Syndicate from the cloud after transcoding Whether you transcode in the cloud or on-premise, some bandwith is required. In one case, a high-bitrate mezzanine file is sent to the cloud for transcoding. In the other case, when transcoding on-premise, several transcoded files are sent directly to a CDN, publishing platform, or to partners like iTunes or Hulu. Both cases require outbound bandwidth, and in many cases, syndicating from the cloud requires less overall bandwidth than syndicating from an on-premise system. For example, it is not uncommon for broadcast video to be syndicated at high bitrates. If a broadcaster uses a 100 Mbps mezzanine format, and then syndicates that content to five partners at 50 Mbps, it is clearly more efficient to only send the original file out of the network for transcoding, and let the transcoding system handle the other transfers. Scenario A: high-bitrate syndication • Input file: 100 Mbps • Syndicated output: ∑(50 + 50 + 50 + 50 + 50) = 250 Mbps In this scenario, 150 Mbps of egress bandwidth is saved by syndicating content from the cloud. Fig 5. Comparing Bandwidth Requirements of On-Premise and Cloud Encoding -5-
  • 7. Not everyone syndicates high-bitrate content, of course. But even when encoding low- bitrate web and mobile video, multiple small files adds up. The example below shows actual bitrates recommended for a major OTT video device, encoded to 10 bitrates, for both MP4 and HTTP Live Streaming. Scenario B: low-bitrate syndication • Input file: 50 Mbps • Syndicated output: ∑(9 + 6 + 4.5 + 3.4 + 2.25 + 1.5 + 1.1 + 0.75 + 0.55 + 0.35 + 9 + 6 + 4.5 + 3.4 + 2.25 + 1.5 + 1.1 + 0.75 + 0.55 + 0.35) = 58.8 Mbps Even in this scenario, sending a 50 Mbps file to the cloud requires less overall bandwidth than transcoding internally and delivering all 20 formats separately; and the original is maintained in the cloud for subsequent transcoding. To save transfer bandwidth, syndicate content from external encoding system. Conclusion While transferring high-bitrate video can be a challenge, the correct approach to cloud transcoding can mitigate these problems. High volume publishers should follow these four basic guidelines: ‣ Store content in the cloud ‣ Use accelerated file transfer technology ‣ Ingest each file once to a parallel cloud transcoding system ‣ Syndicate directly from the cloud By implementing these recommendations, media companies of all types can offload video processing to the cloud, and realize the benefits of scale, flexibility, and ROI provided by cloud transcoding. -6-
  • 8. Appendix: Bandwidth Growth There is one important fundamental driver that is helping to solve the bandwidth problem: cheaper and wider bandwidth. Neilsen's Law of Internet Bandwidth has tracked accurately from 1983 to the present, and states that high-end Internet connection speeds will increase by 50% per year. Video bitrates are growing at a slower rate, and so sending high-bitrate content over the Internet will become less of a problem over time. Fig 6. Average Internet Connectivity and Sample Streaming Bitrates But it isn’t enough to wait for internet bandwidth to improve. The right architecture, covered in the body of this document, is still required to efficiently transcode high bitrate content and large libraries. -7-