Download mp3 from Youtube Videos

Share with your friends!

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 https://yt-dl.org/downloads/latest/youtube-dl -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 https://yt-dl.org/downloads/latest/youtube-dl -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

Your email address will not be published. Required fields are marked *