the DownloadHelper addon for firefox. It will download youtube videos and many others. Granted, there are some that it will not work with.
For command line use in Ubuntu (Linux), I use youtube-dl. It will even take a list to download a series of video's.
Want DP delivered to your inbox daily? Subscribe here: