Home

Awesome

Read my blog post for details about this: It allows you to playback Youtube videos with their annotations, offline (via MPlayer). In what follows, change 'o0BgAp11C9s' to whatever your Youtube video id is (the last part of the Youtube video URL).

  1. You download your video from youtube (via youtube-dl):

    $ youtube-dl -o vimPower.flv 'http://www.youtube.com/watch?v=o0BgAp11C9s'

  2. You then download the video's annotation data:

    $ wget -O annotations.xml 'http://www.youtube.com/annotations_auth/read2?feat=TCS&video_id=o0BgAp11C9s'

Update, October 2013: The service URL has now moved to:

$ wget -O annotations.xml 'https://www.youtube.com/annotations_invideo?features=0&legacy=1&video_id=o0BgAp11C9s'

3. Then you run my tiny Python script:

$ youtubeAnnotations.py annotations.xml vimPower.flv

The script then...

The script worked fine for my VIM video, and I have also tested it on a few other Youtube videos. You can also see the results in a full-HD version of the same video. If you do decide to use this script, please remember that you must also patch your MPlayer, since the <tt>bmovl</tt> filter is currently (2012/03) broken.

Enjoy!