Question: How can I download YouTube Videos on Linux?, What’s the best YouTube Downloader for Linux users?. Annie is the fastest Video downloader for Linux written in Go. It is simple, clean and works out of the box. If you’re tired of other Linux Video Downloaders, then this tool is for you.

Video downloading is helpful when you want to download Video tutorials, lectures and entertainment material for offline watching.

Install Annie YouTube Video Downloader in Linux

It is easy to install Annie Video Downloader on Ubuntu, Debian, Linux Mint, Arch Linux, Void Linux, Fedora, and any other Linux distribution. Just grab the latest binary file and you’re good to go.

Check the Annie release page for the latest release and take note of the version number. Below are the commands to download the latest release.

curl -s \
   | grep browser_download_url \
   | grep Linux_64-bit \
   | cut -d '"' -f 4 \
   | wget -qi -

Uncompress the file after downloading.

tar xvf annie_*_Linux_64-bit.tar.gz

Move the annie file to /usr/local/bin directory.

$ sudo mv annie /usr/local/bin
$ annie -v
annie: version 0.9.4, A fast, simple and clean video downloader.

Install FFmpeg

Annie Video Downloader requires FFmpeg to operate. Install FFmpeg on your Linux distribution by following the documentation provided.

Installation examples:

Install FFmpeg on Ubuntu / Debian / Linux Mint:

To install FFmpeg on Ubuntu / Debian / Linux Mint, run:

sudo apt-get -y install ffmpeg

Install FFmpeg on Arch Linux:

Install FFmpeg on Arch Linux by running the command:

sudo pacman -S ffmpeg

Install FFmpeg on Fedora:

For Fedora, use our guide below:

How to Install FFmpeg on Fedora

For CentOS 7:

sudo yum -y install epel-release
sudo rpm -v --import
sudo rpm -Uvh
sudo yum install ffmpeg ffmpeg-devel

How to use Annie YouTube Video Downloader

After the installation of Annie and FFmpeg, you can begin your YouTube videos downloading.

Annie usage syntax:

$ annie [OPTIONS] URL [URL…] 

Downloading a single YouTube Video with Annie

$ annie
Site: YouTube
Title: Westlife - Hello My Love
Type: video
[137] -------------------
Quality: 1080p video/mp4; codecs="avc1.640028"
Size: 46.72 MiB (48987310 Bytes)
# download with: annie -f 137 …
46.72 MiB / 46.72 MiB [================================] 100.00% 40.38 GiB/s 0s
Merging video parts into Westlife - Hello My Love.mp4

If the URL contains special characters, wrap it in quotation marks.

$ annie 'https://…'

Check for available quality of video without downloading

To check for available Video qualities without downloading, use the -i option.

$ annie -i

 Site:      YouTube
 Title:     Westlife - Hello My Love
 Type:      video
 Streams:   # All available quality
     [137]  -------------------
     Quality:         1080p video/mp4; codecs="avc1.640028"
     Size:            46.72 MiB (48987310 Bytes)
     # download with: annie -f 137 ...

     [248]  -------------------
     Quality:         1080p video/webm; codecs="vp9"
     Size:            42.15 MiB (44195822 Bytes)
     # download with: annie -f 248 ...

     [247]  -------------------
     Quality:         720p video/webm; codecs="vp9"
     Size:            17.26 MiB (18095837 Bytes)
     # download with: annie -f 247 ...

Download a specific Video stream

Use annie -f stream "URL" to download a specific stream listed in the output of -i option.

Download Playlist Videos

You can also tell Annie to download all Videos in a playlist by passing the -p option.

annie -p <URL>

You can use the -start-end or -items option to specify the download range of the list:

    	Playlist video to start at (default 1)
    	Playlist video to end at (default is last)
    	Playlist video items to download. Separated by commas like: 1,5,6

Download from multiple URLs

You can also download multiple URLs at once. Separate the URLs list with a space.

$ annie

You can also save URLs in a file and reference the file while downloading.

$ annie -F ./videourls.txt

When Annie is rerun with the same arguments, it is able to resume interrupted download.

Download Subtitles

To download Video Captions, use the -C option.

$ annie -C

Downloading regular file

With Annie, download of regular files is supported provided you have file URL.

$ annie
annie doesn't support this URL right now, but it will try to download it directly
Site: Universal
Title: alpine-standard-3
Type: application/octet-stream
[default] -------------------
Size: 104.00 MiB (109051904 Bytes)
# download with: annie -f default …
104.00 MiB / 104.00 MiB [============================] 100.00% 1.25 MiB/s 1m23s

Annie can be used to download Videos from other sites such as Tumblr, Vimeo, Facebook, Twitter e.t.c. Check the complete list of supported websites.

More reading:

How To Convert mp4/mkv/WebM to mp3 on Linux with FFmpeg

How to Install Lightworks Video Editor on Ubuntu LTS

How to use ytdl-webserver Webserver for downloading youtube videos

Install Persepolis Download Manager on Ubuntu / Linux Mint