Sunday, January 21, 2018

How to download youtube video as MP3

How to download youtube video as MP3

On lubuntu/ubuntu you can use the youtube-dl command line tool for downloading youtube videos, you probably already know that, but you probably don't know that you can also download the video as mp3.

The youtube-dl command line interface is not available out of the box on lubuntu, so you need to install it first. Please read my article about how to install youtube-dl on lubuntu, if you interested.

Assuming you already have youtube-dl tool in your system, you can do this to download a video as mp3:
youtube-dl --extract-audio --audio-format mp3 [youtube-video-url]
Example:
youtube-dl --extract-audio --audio-format mp3 https://www.youtube.com/watch?v=h9DEMJE7PUA
youtube-dl --extract-audio --audio-format mp3 https://www.youtube.com/watch?v=rQO8escJC78
youtube-dl --extract-audio --audio-format mp3 https://www.youtube.com/watch?v=fTjm59DFifg

No comments:

Post a Comment