<http://schema.org/articleBody>
"  On September 29, at the statistical height of its popularity, the music video for Psy&amp;#039;s &amp;quot;Gangnam Style&amp;quot; received 12.8 million views on YouTube. That translates to an average of 8900 streaming requests for the video per minute, or 148 per second. And it&amp;#039;s not as though Psy&amp;#039;s was the only viral video on YouTube that day. Several other videos were trending, including Carly Rae Jepsen&amp;#039;s &amp;quot;Call Me Maybe,&amp;quot; One Direction&amp;#039;s &amp;quot;Live While We&amp;#039;re Young,&amp;quot; dramatic helmet-cam footage from a soldier in a firefight in Afghanistan, and grainy cellphone video of lightning hitting a car\u2014which were, collectively, also getting millions of views. &amp;quot;YouTube as a site gets traffic at a level every day that would DDoS a large percentage of other websites,&amp;quot; says Rushabh Doshi, a software engineer at YouTube, referring to the distributed denial of service attacks that hackers routinely use to overload and incapacitate websites. It&amp;#039;s a measure of the success of the YouTube platform that all those video streams were served up without any instability to the site. But serving huge volumes of video is only one-half of the back-end engineering challenge for YouTube, which Google bought in 2006. The site must ingest huge quantities of video uploaded 24 hours a day around the world. That&amp;#039;s Doshi&amp;#039;s specialty\u2014he is the tech lead for uploads. &amp;quot;Everything at YouTube is made immensely more complicated because of the scale at which we operate. We get 72 hours of video uploaded every minute. That&amp;#039;s like 36 full-length movies being uploaded to your site every minute.&amp;quot; When Doshi joined YouTube in 2007, he says the site was getting 6 hours of video per minute. In the past five years, then, the site has seen a 10-fold increase in volume. But, Doshi says, the amount of data has exploded at an even higher rate. &amp;quot;The insane part is that there has been this huge shift going on from people capturing video at 240p resolution with low-bit-rate cameras to modern consumer devices that are 1080p with 25- to 30-megabit-per-second video streams,&amp;quot; he says. &amp;quot;That really explodes the amount of data that you need to process.&amp;quot; Data Deluge Digital video has fundamentally changed the Web in the past half-decade, and no company has been more central to that evolution than YouTube. It democratized and popularized video sharing. It provided an opportunity for expression and protest for citizens of oppressive regimes, such as those in Iran, Libya, and Syria. It has also provided a vehicle through which the provocateurs of one culture can incite outrage in another; the video that prompted riots and mayhem throughout the Muslim world was spread through YouTube. And YouTube has made thousands and thousands of cats temporarily famous. With the ascendance of social media, sites and services such as Facebook, Twitter, and Instagram get most of the attention these days. But, according to Web analytics firm Alexa, the only sites that get more traffic than YouTube are Google and Facebook. The site has become so synonymous with online video that it&amp;#039;s easy to overlook what a technological marvel it is. The site can ingest video directly from pretty much any source: phones, tablets, connected cameras, computer webcams, what have you. And engineers at the site have worked hard to make some of the complexities of digital video\u2014codecs, bit rate, resolution\u2014invisible to users, doing all of the transcoding and processing on the back end.  YouTube&amp;#039;s upload page, for instance, is embedded with software that can automatically upload and transcode multiple HD video files in real time. To decrease latency, the uploaded video is usually sent to whichever Google data center is geographically closest to the user. &amp;quot;We absolutely obsess over speed,&amp;quot; Doshi says. &amp;quot;One key insight is that you don&amp;#039;t have to wait to have the entire video to start processing it. The other key insight is that we can split up the video into smaller chunks and start processing each chunk separately. This plays really well to Google&amp;#039;s strengths\u2014we have big data centers with lots of computers, so we have the CPU power to throw at it. Instead of trying to process one video on one computer, we break it up and distribute it.&amp;quot; The task is made even more complex by the process the company uses to make uploading faster. When you break up a video into discrete sections, distribute it, and then transcode it on different machines, you run the risk of an inconsistent end result. &amp;quot;The devil is in the details,&amp;quot; Doshi says. He didn&amp;#039;t reveal too much about the process, except to hint that after the different transcodes, there is a final video-processing pass. &amp;quot;When you stitch the whole video back together, it has to behave more or less as if it were transcoded on one machine, so it doesn&amp;#039;t have weird jumps or large color changes.&amp;quot; Search and Discovery All this happens in the background as thousands of people upload video at the same time. However, YouTube faces another challenge beyond just processing videos: The site also wants those videos to be tagged with data and easily searchable once they&amp;#039;ve arrived. But users are inconsistent with the information they volunteer with their videos. Cristos Goodrow is YouTube&amp;#039;s engineering director for search and discovery. If you&amp;#039;ve ever found some obscure piece of footage you were searching desperately for or serendipitously stumbled upon something delightful, you have him to thank. Then again, if you are frustratingly lost in a morass of cat clips and teenybopper music videos, that&amp;#039;s his fault too. Goodrow says that being part of the world&amp;#039;s most dominant search provider has its advantages\u2014YouTube uses much of Google&amp;#039;s search technology\u2014but he points out that there are many things that make video search different. &amp;quot;At Google, people are often looking for information, and more often they want navigational or canonical results,&amp;quot; Goodrow says. &amp;quot;The other day, I wanted to get passports for my kids, and if I type &amp;quot;Passport,&amp;quot; there&amp;#039;s a clear result that I&amp;#039;d want, which is the U.S. Passport Agency. It doesn&amp;#039;t change that often, and that&amp;#039;s what everybody wants.&amp;quot; The demand for video, he says, is far more subject to trends. &amp;quot;There are old videos that people search for and want,&amp;quot; he says. &amp;quot;But for very broad queries they tend to want newer videos all the time.&amp;quot; There is also a chronic problem of labeling. Often, users aren&amp;#039;t at all specific when they name their videos (&amp;quot;Crazy Jump!&amp;quot;), or they give their videos names that are personally relevant yet not unique (&amp;quot;John&amp;#039;s Phone Unboxing&amp;quot;). People searching for a video aren&amp;#039;t necessarily specific enough, either. So Goodrow&amp;#039;s team uses the search algorithms to try and match the query contextually to the video. &amp;quot;We could fill a thousand search result pages with results from the term &amp;#039;funny video,&amp;#039; &amp;quot; he says. &amp;quot;Some of those videos don&amp;#039;t get much attention or aren&amp;#039;t that funny. Others are so funny that people link to them on their blogs, or maybe they make it onto the Yahoo homepage or something like that. Those are most likely to be the funniest of the funny videos.&amp;quot; Yet there are perils to relying upon the wisdom of the Web. My own search for Funny Video turned up dozens of videos of people falling down or getting hit in the face (and other places) in incredibly predictable and not-so-funny ways. I was actually surprised to learn that YouTube doesn&amp;#039;t use any sort of face detection or video analytics tools to try to figure out what each video is about, but Goodrow&amp;#039;s asserted that Google&amp;#039;s traditional PageRank algorithm, which assigns values to Web pages based on the other pages that link to them, works well for video as well. Obviously, though, PageRank doesn&amp;#039;t know funny. YouTube may bias results toward the new and trending, but, remarkably, the service never deletes a video, no matter how few people watch it, unless the video&amp;#039;s owner requests it to be taken down. I asked Goodrow why the company wastes valuable storage resources on videos nobody watches. In a typical Google employee&amp;#039;s response, he demurred from commenting on the relative value of one video versus another and gave me a technical answer. &amp;quot;If nobody&amp;#039;s watched a video for a long, long time, we may put it in a system that has higher latency or lower throughput than a system where we put a viral video,&amp;quot; he said. &amp;quot;Then, if someone wants it, they&amp;#039;ll be willing to wait an extra second to get it.&amp;quot; Presumably, 2 extra seconds would be unacceptable. "^^<http://www.w3.org/2001/XMLSchema#string>
<http://www.popularmechanics.com/technology/gadgets/a8387/herding-cats-how-youtube-processes-72-hours-of-video-in-1-minute-14720513/>