How to Extract Audio YouTube Video to Audio Mp3 via terminal in Ubuntu

SHARE :Share on Google+12Share on Facebook3Tweet about this on Twitter2Share on StumbleUpon0Pin on Pinterest0Share on Reddit0Share on LinkedIn0

Do you want to extract audio youtube video? well, in this guide I will show you little tips how to convert YouTube video to MP3 audio files using the command line in Ubuntu. small command-line program we will use to convert YouTube video to MP3 audio files is youtube-dl and ffmpeg.

youtube-dl is a small command-line program to download videos from and other sites that don’t provide direct links to the videos served. youtube-dl allows the user, among other things, to choose a specific video quality to download (if available) or let the program automatically determine the best quality video to grab. It supports downloading entire playlists and all videos from a given user. Currently supported sites are, Youtube, Photobucket, Dailymotion, Metacafe, Facebook, Yahoo!, and

ffmpeg is the package contains the ffplay multimedia player, the ffserver streaming server and the ffmpeg audio and video encoder. They support most existing file formats (AVI, MPEG, OGG, Matroska, ASF…) and encoding formats (MPEG, DivX, MPEG4, AC3, DV)

Install youtube-dl and ffmpeg

Open terminal adn then running command below :

sudo apt-get install youtube-dl ffmpeg lame libavcodec-extra-53 

To convert a YouTube video to mp3, runing this command on terminal:

youtube-dl youtube-url --extract-audio --audio-format mp3  


youtube-dl --extract-audio --audio-format mp3

That’s it! :)

You may also like...

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.