Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Download MP3 from YouTube using YouTube DL

Lê Thành edited this page May 19, 2017 · 1 revision

Requirements

  1. Youtube DL : Download video from YouTube
  2. FFmpeg : Convert video to mp3

Configuration

Linux Mint

Open add-on preferences (about:openwith)

Click Add button, then open following path: /usr/bin/gnome-terminal

In the newly created section, Click Edit button

  • Name : Youtube mp3
  • Arguments :
-e "youtube-dl --extract-audio --audio-format mp3 --audio-quality 0 -o '/home/username/Music/%(title)s.%(ext)s' %s"

Replace /home/username/Music as the path to your output directory

Windows

Create a new directory by name youtube2mp3 (or any name) to contain the installation file. E.g. C:\Users\username\Documents\youtube2mp3

Copy youtube-dl.exe file into youtube2mp3 directory

Extract the downloaded file from FFmpeg, in bin directory, copy two files ffmpeg.exe and ffprobe.exe into youtube2mp3 directory

Adding youtube2mp3 directory to PATH Environment Variable (a.k.a. Windows System PATH)

Open add-on preferences (about:openwith)

Click Add button, then select path to youtube-dl.exe file in youtube2mp3 directory

In the newly created section, Click Edit button

  • Name : Youtube mp3
  • Arguments :
--extract-audio --audio-format mp3 --audio-quality 0 -o "C:/Users/username/Music/%(title)s.%(ext)s" %s

Replace C:/Users/username/Music as the path to your output directory

Translation