Which is frustrating. Isn't the information needed to do this provided by youtube themselves? This isn't some private key that wasn't supposed to be public; it's literally given out every time you view a video using it.
Also, the "examples" were tests that used a given algorithm, as there may be different methods used on different videos.