Annotating YouTube videos programmatically | I want to be able to display a normal YouTube video with overlaid annotations, consisting of coloured rectangles for each frame. The only requirement is that this should be done programmatically. 


YouTube has annotations now, but require you to use their front end to create them by hand. I want to be able to generate them. What's the best way of doing this?


Some ideas:



> 
> 1. Build your own Flash player (ew?)
> 2. Somehow draw over the YouTube Flash player. Will this work?
> 3. Reverse engineer & hijack YouTube's annotation system. Either messing with the local files or redirecting its attempt to download
>  the annotations. (using Greasemonkey? Firefox plugin?)
> 
> 
> 


Idea that doesn't count: 



> 
> download the video
> 
> 
>