Speed Thrills - Tackling the YouTube video processing challenge
Few things can be more frustrating than waiting for what feels like years for that amazing video you just shot to finish uploading to the site so you can publish it and share it with your friends. Whether it’s the speed a video plays back, or the speed a video uploads, at YouTube speed matters. Why do we care so much about speed? Because we know that speed can mean the difference between you having a good experience, or you leaving YouTube in search of a better, faster one.
Today, as we look at 2011, we’d like to review our progress in improving the processing and publishing speed for videos. By processing and publishing, we mean what happens behind the scenes between the moment you press the YouTube upload button to the moment that video appears on the site for your friends to see.
Here is the challenge: 35 hours of video are uploaded to YouTube every minute. Over time, the average file size is going up, the average resolution is going up, as people switch to HD cameras and the average duration of the videos is going up. Moreover, an increase in resolution results in a quadratic increase in the number of pixels to be processed - a 1080p HD video has 2M pixels compared to 300k pixels in a 480p (DVD quality) video.
In the last few years the YouTube infrastructure team has tackled this challenge in a variety of different ways. We highlight two of them:
- The first is to overlap uploads and video processing without waiting for the upload to finish. This results in a base quality version of your video going live very quickly after the upload completes, making the link to your video active and shareable.
- The second technique, which we’ve internally codenamed Hydra (after Greek mythology’s nine-headed monster) tackles this problem by leveraging Google’s massive cloud computing capabilities. We split a single video into small chunks and process each chunk simultaneously on different machines. Hydra then reassembles all the processed chunks so that you see a seamless video, processed and published in a fraction of the time it would have taken to do it previously.
As you can see from the above chart, we’re making big strides when it comes to our battle to get videos processed and live faster. Here are some additional stats:- We now process videos seven times faster than we did in 2008.
- We’ve gotten four times faster in the last six months
- 60% of all YouTube videos go live in under a minute as compared to none last year.
We know that there remains a lot for us to do when it comes to improving processing time and reliability and we certainly don’t think we have come close to solving the problem entirely. We have made big strides over the years and our speed is accelerating. When we make another big leap, we’ll post another blog to let you know. Until then, keep uploading!
Krishna Gadepalli, software engineer, recently watched “Satarii IndieGoGo Campaign,” and Wendy Tobagus, software engineer recently watched “Parkour and FreeRunning.”
25 comments:
Other than changing my video quality, what are some ways to increase my upload speed? I currently have to wait 1 hour for a 1 minute video to upload in 720p.
YouTube...you've GOTTA do something about the Pocodot spammers.
@BusRider You can upgrade your internet or not use your upstream at all while uploading. As for the time it takes to upload, that's only something you can fix, not YouTube.
@BusRider Get a faster internet connection. ;)
Great job!
All you guys deserve cookies for your efforts :)
Can I visit HQ again if I bring baked goods? lol.
Awesome change! Way to go YOUTUBE! Love ya! Wanna see what changes u guys bring!
That's wonderful....deserves an applause!.
@BusRider ur file size is waaaay too big man. i upload in 1080p but compress the file so that i dont have to wait an hour lol.
Change your ISP :-)
@BusRider
Yeah i had the same problem
Used to take 90 mins to upload a 10min video
My advise would be to increase your broadband speeds by upgrading your broadband deal
I went from around 1mb Upoload to 6-7mb upload the difference is amazing i can now upload a 15 mins video in HD in around 10 mins MAX before takes up to 2 hours!
lol...Hydra is the my pc's name...multi-core/hdd/nic everything.....lol I had the same idea...now i can encode/decode/encrypt/decrypts in matters of seconds...(I guess had the same idea with parallel tasking)
Does this account for internet upload/download speeds (i.e. bandwidth)?
@busrider you may want to look at your Internet provider on that one. I can upload a 1080p vlog at a 5 minute length or more in an hour or less. Also your file size may be too large, try a different compression method.
BusRider, check your upload speed at http://www.speakeasy.net/speedtest/ or another site. Could be your computer or your Internet Service provider. See if your ISP offers a faster connection.
@YouTube
Why not give users a toolbar or separate application that will transcode the video on their own computer before you even upload it?
That way the server can just check the file, make sure it's in the appropriate format and publish it.
If the file isn't the correct format, fall back onto the current online transcoding system.
This frees up resources for your servers to process the videos that people don't transcode themselves.
Just an idea
Kane
and for the video editor i think you should add more in like slow motion because its hard for people to find it and set it up
very nice YouTube, I really appreciate some features of the site's processing connection. But yeah you did a good job making it speed up. ;) other than that all the things are ok, but I do like the upload speed.
Last thing can you please fix the upload rejection for Users who has been enabled to upload longer than 15 minutes. all non-partnered users are getting that problem. :(
@Busrider - that's down to your ISP - I get 18Mbit down, bit 1mbit for Uplaods (though the next package up offers 2Mbit uploads)
It took me three hours to load a video to Youtube, when it finally finished uploaded, the video was playing in fast forwarded mode, but the audio was playing normal. Please help
@BusRider - It should be noted, first of all, that this blog post refers to the time needed to process videos *after* upload is done. Increasing upload speed relies in part on the speed of your particular connection, and my sense is that YouTube is not always optimal on upload speed, especially during hours of peak upload volume.
I guess the only way is improving your internet conection, that way you will have a better upload rate.
Now fix the randomly stripping of people's unlimited upload time and we're in business.
Can't wait until you're so fast you can broadcast live! I know you're working on it now...I just know it!
You guys experimenting with GPU processing/transcoding of video?
whta you all complaining about a 720p video that takes 1hour 1 minute im uploading a 10 minite video and it says it fill finish uploading 452 minutes!!!!!
Post a Comment