youtube-dl is a command line utility to download videos from Youtube and in this tutorial you will learn how to use it.

Table of Contents

Install

There are several ways to install youtube-dl:

sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
sudo pip install --upgrade youtube_dl

Use

youtube-dl https://www.youtube.com/watch?v=1uu9VWBgcBU

Parameters

  • -o <filename>: set a name for the output file.
  • -f FORMAT: specify a quality format. FORMAT is an expression that describes format or formats you would like to download:
    -f "bestvideo[height<=1080,ext=webm]+bestaudio[ext=webm]"
    
    • best: Best quality format.
    • worst: Worst quality format.
    • bestvideo: Best quality video-only format (e.g. DASH video).
    • worstvideo: Worst quality video-only format.
    • bestaudio: Best quality audio only-format.
    • worstaudio: Worst quality audio only-format.
    • height: Height of the video, if known.
    • ext: File extension.
    • More options.

youtube-dlG

A GUI frontend for youtube-dl.

youtube-dlG

Other programs

yt-dlp

yt-dlp is a youtube-dl fork you can install in a similar way than youtube-dl (choose one of the methods):

sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp
sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp
sudo aria2c https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp --dir /usr/local/bin -o yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp
python3 -m pip install -U yt-dlp

Usage is similar to youtube-dl (run yt-dlp -h for more info).

ytDownloader

A graphical video and audio downloader, compatible with several websites.

ytDownloader

If you have any suggestion, feel free to contact me via social media or email.