software

Downloading YouTube videos

1 min read

To save a YouTube video locally to watch offline later, there are several options, but the one I use most often is youtube-dl. Since I use Linux, usually a variant of Ubuntu or Ubuntu itself (or at least that is what I have installed, and I will use Xubuntu 11.04 as the reference), installing it is just:

text
sudo apt-get install youtube-dl

To see the options and how to use it, we can run

text
man youtube-dl.

But for a quick start, just use the youtube-dl command followed by the video URL. A note for the absent-minded… the video URL is the address shown in the browser’s address bar. If you get the error “ERROR: no fmt_url_map or co information found in video info” while downloading, update youtube-dl with the command:

text
sudo youtube-dl --update

I got this last tip from the discussion about the error on the youtube-dl project’s GitHub here.

#youtube