Clicky

Skip to content

yt-dlp

This is a fantastic tool for downloading videos or audio files from platforms like Youtube, Vimeo and others – straight from the command line! The yt-dlp tool offers hundreds of possible combinations. Below is the one I use to extract the audio from a given Youtube URL. The output is a file in the AAC format, including a thumbnail and the available metadata. Type this:

sh
yt-dlp -x --audio-format aac --audio-quality 0 --embed-thumbnail --embed-metadata -o "%(title)s.%(ext)s" https://www.youtube.com/watch?v=iA9H3uW2JKw

Then you just wait a couple of seconds and... ta-daaa!

yt-dlp 1

A fresh audio file pops up, on any directory of your choice:

yt-dlp 1

Of course, depending on how you use yt-dlp, it may be considered a form of "piracy", so make sure you're not infringing any laws when using this powerful tool. The official documentation is available on this repo.