Youtube Design - Video Publishing and Delivery
Momen Negm
Chief Technology Officer @ T-Vencubator | Data Scientist, Generative AI | Tech entrepreneur - Engineering leader
"Publishing videos on YouTube is a multifaceted procedure encompassing several stages. This discussion will address:
Video Upload - Original Storage
When a video is uploaded to YouTube, instead of being transferred as a single, large file, it is first divided into smaller, manageable segments or "blocks." This segmentation happens client-side, before the upload to YouTube's servers begins. The size of these blocks can vary, optimized for the best balance between upload speed and reliability.
Once the video blocks are uploaded, they are stored in what is referred to as the "Original storage." This storage system is designed to be highly durable and ensuring that the original, unaltered video data is preserved safely.
The original storage serves multiple purposes:
The original storage system is built on a distributed storage infrastructure, capable of handling petabytes of data.
Once a video is uploaded to YouTube and stored in the original storage, it undergoes a complex process involving transcoding, storage in a transcoded format, and distribution through Content Delivery Networks (CDNs).
The Transcoding Process
Transcoding is the core of YouTube's video processing system, converting the original video file into multiple formats and resolutions. A multi-stage video transcoding process prepares uploaded videos for distribution and streaming.
Pre-Transcoding Filtering Processor
Before any video is transcoded, it undergoes a pre-processing or filtering stage. This initial step is crucial for optimizing the transcoding process and ensuring quality control.
领英推荐
Encoding Processor
The core of the process, transcoding, is where the actual conversion of video files into multiple formats and resolutions takes place. This ensures that videos can be streamed over different network conditions to various devices.
Upload Processor
Once videos are transcoded, they need to be delivered to viewers as efficiently as possible. This is where CDNs come into play.
Content Delivery Networks (IXP and ISP)
CDNs are the backbone of YouTube's video delivery system. They are distributed networks of servers that cache content like video files closer to where users are located. When a user clicks on a video, the request is routed to the nearest CDN server holding the cached content, significantly reducing the delivery time
Internet Exchange Points (IXPs)
IXPs are physical infrastructure through which Internet Service Providers (ISPs) exchange internet traffic between their networks. YouTube leverages IXPs to efficiently distribute its content across different ISPs, enhancing the speed and reliability of video streaming.
Internet Service Providers (ISPs) and ISP Caches
ISPs connect users to the internet and play a crucial role in the final delivery of YouTube videos to viewers. They provide: