How To Install The Youtube Downloader and Extract Audio and Video

How To Install The Youtube Downloader
sudo apt-get install youtube-dl

How To Download And Extract Audio From A Youtube Video

Find the video you want to download by visiting Youtube and searching for it.

Underneath the video there will be a share link.

Click on the share link and select the link that appears with the mouse.

Open a terminal window and type the following command replace the text paste_link_here with the link to the share link:

youtube-dl –extract-audio –audio-format mp3 -l paste_link_here

To paste into a Linux terminal right click and select paste from the menu or press shift and insert at the same time.

The text in the terminal should look something like this:

youtube-dl –extract-audio –audio-format mp3 -l

What this does is download the video from Youtube as a video and then extract just the audio part to MP3.

You are left with just the MP3 file and the video is discarded.

If you want to keep the video as well as the MP3 file add a -k to the command as follows:

youtube-dl –extract-audio –audio-format mp3 -k -l

You will now be left with an MP3 and an MP4 file.

If get URLError: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>

Upgrade it using pip

Step First(if pip is not installed)
Firstly install pip if it is not install
sudo apt-get install python-setuptools
sudo easy_install pip

Second Step(Upgrade youtube-dl)
sudo pip install –upgrade youtube-dl

This entry was posted in Uncategorized. Bookmark the permalink.