Sponsored

Not the solution you were looking for?

We’ll help you out!

How to Extract Audio from YouTube Videos and Save it as mp3, wav using youtube-dl command-line tool in Linux?

This tutorial will guide you to install a simple command-line utility called youtube-dl that allows you to extract audio from your favorite YouTube videos. The utility can be installed easily on any Linux platform that supports Python Interpreter (version 2.6, 2.7 or 3.2+). If you don’t have Python installed, then here’s the tutorial that can help you to install Python. However, youtube-dl can be used on Windows platform as well (you’ll need to download corresponding Windows executable that includes Python). Another important prerequisite is – ffmpeg.

Download and Install youtube-dl

Note: If you don’t have Python-pip installed, then click this link to install it.

Are you getting this error?

It seems like, the site that’s hosting youtube-dl has SSL certificate issue (at the time of writing this article – 23 Feb 2016). So probably, the above commands might throw an error message as shown below:

SSL: certificate subject name '*.aries.uberspace.de' does not match target host name 'yt-dl.org'

Also the command, youtube-dl will fail with the below error message:

$ youtube-dl --help
/usr/local/bin/youtube-dl: line 1: --2016-02-23: command not found
/usr/local/bin/youtube-dl: line 2: Resolving: command not found
/usr/local/bin/youtube-dl: line 3: Connecting: command not found
/usr/local/bin/youtube-dl: line 3: 95.143.172.170: command not found
/usr/local/bin/youtube-dl: line 3: :443...: command not found
/usr/local/bin/youtube-dl: line 4: *.aries.uberspace.de doesnt: command not found
/usr/local/bin/youtube-dl: line 4: ERROR:: command not found
/usr/local/bin/youtube-dl: line 6: Unable: command not found

I hope the issue might be temporary and it should be resolved. If not, you may download the executable from HTTP site instead of HTTPS as shown below: