Download mp3 from Youtube Videos

Welcome back,  In this article I am going to explain how to download mp3 from youtube videos in Linux or windows. 

First go to the folder you need to save your mp3 file. In windows you need to move youtube-dl.exe to the folder you need to save mp3.

Note: this requires ffmpeg or avconv and ffprobe or avprobe

  • Linux / Unix command

youtube-dl –extract-audio –audio-format mp3 <video URL>

  • Windows command

youtube-dl.exe –extract-audio –audio-format mp3 <video URL>

It will take some time depending on your internet connection and size of the video you have give.

Here is the way to install youtube-dl.

  • For Linux

Ubuntu – sudo apt-get install youtube-dl

Fedora – dnf install youtube-dl

  • For UNIX users

sudo curl -L -o /usr/local/bin/youtube-dl

sudo chmod a+rx /usr/local/bin/youtube-dl

If you do not have curl, you can alternatively use a recent wget:

sudo wget -O /usr/local/bin/youtube-dl

sudo chmod a+rx /usr/local/bin/youtube-dl

  • For Windows

Here is the download link for youtube-dl.exe. This requires Microsoft Visual C++ 2010 Redistributable Package (x86) and does not require Python that is already embedded into the binary.

Now installation is completed.

That’s it. Enjoy!!



Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s