youtube-dl — Download Videos and Audio – Linux CLI

Video is ready, Click Here to View ×


sudo youtube-dl -U
youtube-dl url
youtube-dl -F url
youtube-dl -f 243+171 url
youtube-dl -g url
mplayer $(youtube-dl -g url)

yt2mp3() { youtube-dl -c –restrict-filenames –extract-audio –audio-format mp3 -o “%(title)s.%(ext)s” $@ ;}

youtube-dl – download videos from or other video platforms
youtube-dl is a small command-line program to download videos from and a few more sites. It…


  1. please help me, i dont understand the "yt2mp3() { youtube-dl -c –restrict-filenames –extract-audio –audio-format mp3 -o "%(title)s.%(ext)s" $@ ;}". is it like a function/or something, and where do i create this "yt2mp3" thing at, and i dont have the command "which"

  2. Go to a video on youtube, then click on the URL twice and insert the letters ss before youtube (and after the first dot) then hit enter. It will take you to a page ( to download the video in different qualities. But if this doesn't work for whatever reason, or you need more options, youtube-dl seems pretty awesome.

  3. Good video as usual, although I use youtubedl from time to time I always wondered why you could only download the audio to .webm format(or M4a) and not .mp3  So I would have to download it to .webm then convert with ffmpeg so thanks for showing me how to do it in one step.

Leave a Reply

Your email address will not be published.