According to Wikipedia, in April 2006, the number of videos on Youtube was about
83.4 million . But if you click on the link in the note, it now displays "" * "video results 1 - 20 of millions" ("*" ”video results 1 - 20 of millions").
In this way, I found an approximate number of videos on Youtube. The idea is simple. Take this feed:
gdata.youtube.com/feeds/api/videos/- * and determine the number of lines within the <opensearch: totalresults> tag.
And so: the number of videos on Youtube varies between about 141 and 144 million. This number periodically increases and decreases, which indicates that the number roughly corresponds to the truth.
This is a huge pile of videos :) To determine how much space these videos all take, let's calculate it using the following formula:
142,500,000 * (a + b + c + d), where
- a = average size of FLV video, let it be 4 MB, but this is probably far from the truth. There are a lot of short videos on Youtube, and Youtube has a limit of 10 minutes. Nevertheless, this is an approximate figure.
- b = average size of MP4 video, even if it is 4 MB. There are many factors that influence this figure, one of which is that I don’t know when Youtube started generating MP4, and whether they generated them for all videos or not.
- c = approximate size of all images that are attached to the rollers. Let it be, say 50 KB. Small thumbnails and large screenshots do not take up much space.
- d = average size of original videos uploaded to Youtube. They can be deleted immediately after coding in FLV, or most likely Youtube keeps them for several months, or if they are really insane, then they keep ALL original videos. Take an approximate random number - 50 MB.
So, just FLV and MP4 files, as well as images take approximately ((4 MB) + (4 MB) + (50 KB)) * 142 500 000 =
1.06818788 petabyte .
And if Youtube stores ALL original videos from the very beginning of existence, then our number grows to ((4 MB) + (4 MB) + (50 MB) + (50 KB)) * 142 500 000 =
7.70386123 petabyte .
Just not counting the video, I wonder how big the base is with Youtube. Depending on how the data is archived over time, I would add another 1-2 TB, and this figure is insignificant with the space occupied by the video. I am sure that the database is mysql, broken into many pieces for better performance, and probably “spiced up” with various
Google patches . Watch a presentation on
Youtube extensibility and take a look at this
article if you want to know more.
PS I also forgot that Youtube generates 3gp, so I would add a little more space :)
From the translator: Please do not kick much, in principle this is my first translation, and I either dropped or rewritten a few phrases and turns.
Link to the original post.
Link to the original translation in my blog