Youtube is by far the most popular site for sharing videos. The only problem with uploading your videos to youtube is that there really is no easy way to download those videos back to your computer. Your only option than is to view them online. There are also times when you watch a video so hilarious/interesting that you want to keep a copy for your own use.
To get over these restrictions, a lot of people have written really neat utilities which let the user download videos directly from the site. In this post, we’ll be talking about one such utility for Linux.
Youtube-dl is a console only application which is the simplest utility I’ve found till now for downloading videos from youtube.
To install youtube-dl, if you’re using Ubuntu, use apt-get.
apt-get install youtube-dl
Now, using a browser, browse to the video that you want to download. Copy the URL of the video page.
Now, at the console, give the following command.
youtube-dl <URL of the video>
That’s all. youtube-dl will now download the video to your computer and save it in the default .flv format which Youtube uses to save it’s videos. FLV files can be easily played back on Linux using the excellent VLC media player.