Not really relevant to his question, but what Fran was referring to earlier is another nifty trick for youtube-dl + mplayer, especially for those of us that dislike ads:
Francisco said:
I think pony uses mplayer.
Used to, you could directly stream youtube URLs through mplayer. Then a few years back, Youtube changed how .flvs were handled in an effort to prevent this (and other streaming tricks).
youtube-dl was the perfect fix, since it provided a direct link to the .flv URL.
Then Google got crafty, and started making Cookies (something mplayer cannot get on its own) mandatory, to try and force only web browsers. Thankfully, the gentleman behind
youtube-dl fixed that as well.
-11:03:38- Mokou:~ :: aldryic % cat .bin/youtube
mplayer -x 896 -y 504 -cookies -cookies-file /tmp/cookie.txt $(youtube-dl -g --cookies /tmp/cookie.txt "http://www.youtube.com/watch?v=$1")
-11:03:44- Mokou:~ :: aldryic % youtube oLGkyoriqvQ
This only works for those of us using *nix and mplayer, obviously
But it's a very handy way to stream Youtube content directly, without ads or all the other nonsense.