Skip to content

Instantly share code, notes, and snippets.

@lohenyumnam
Last active February 15, 2018 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lohenyumnam/a4b4746d435d9b027001c40437ac677f to your computer and use it in GitHub Desktop.
Save lohenyumnam/a4b4746d435d9b027001c40437ac677f to your computer and use it in GitHub Desktop.

Select the Video and Audio quality with the following command

youtube-dl -F <VideoURL>

To download the video with particular Video and Audio or Audio only just type

youtube-dl -f <AudioQuality> + <VideoQuality> <VideoURL>

Download the mp3 only

You can download the mp3 directly from youtube without converting using ffmpeg

youtube-dl --extract-audio --audio-format mp3 <video URL>

How to download a youtube playlist with numbered prefix via youtube-dl?

youtube-dl -o "%(playlist_index)s-%(title)s.%(ext)s" <playlist_link>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment