[Edit: See the update for this piece.]
You might think that downloading videos from sites like YouTube would be easy, but there’s a lot of malware out there pretending to be video downloading apps, and several legitimate apps or browser extensions have limitations.
Here’s one solution. It’s a bit clunky and involves using the command-line but it works very well and it’s ultimately simple to use. It’ll even automatically download the high-res versions of the YouTube videos in a nice MP4 format ready for playback in QuickTime Player, or transferring to your iPhone/iPad via iTunes.
Follow these steps to download and install the necessary app, and to update periodically (see below).
- Open the Terminal app, which you’ll find in the Utilities folder of the Applications list in Finder.
- Paste in the following, which will download the command-line app we need – youtube-dl:
curl https://yt-dl.org/latest/youtube-dl -o ~/youtube-dl
- Paste in the following command to actually install the app and make it ready for use – you’ll need to type your login password when prompted:
sudo mv youtube-dl /usr/local/bin/;sudo chmod a+rx /usr/local/bin/youtube-dl
Downloading a YouTube (or other site’s) movie
Downloading a movie is now easy.
- Go to the webpage of the video and copy the entire URL to the clipboard.
- Open Terminal again, type youtube-dl, tap Space, and then paste in the URL. You should end-up with something looking like this:
- Watch the progress display as the movie is now downloaded. It’ll be deposited in your home directory, which you can view by opening a Finder window and clicking Go > Home on the menu.
Keeping youtube-dl up to date
Because sites frequently change their layout and video delivery techniques you’ll need to keep youtube-dl up-to-date by repeating the initial setup steps above if you find the app reports an error downloading. Before following the steps above, however, type the following into the Terminal window to remove the old version of the app:
sudo rm /usr/local/bin/youtube-dl
If you want to be very clever and open the movie from the command-line too, just type open, followed by the filename. This will open the movie in the system default movie player which for most of us is QuickTime Player.
youtube-dl is a very sophisticated tool. With a little configuration it can login to password-protected sites, for example. Google for tutorials.