Skip to content

Instantly share code, notes, and snippets.

@jamesdeantv
Forked from protrolium/youtube-dl.md
Created October 9, 2018 12:49
Show Gist options
  • Save jamesdeantv/07455ace988b3e4334ec276a27eb4b79 to your computer and use it in GitHub Desktop.
Save jamesdeantv/07455ace988b3e4334ec276a27eb4b79 to your computer and use it in GitHub Desktop.
youtube-dl syntax

youtube-dl will output in the current directory

To list available formats

youtube-dl --list-formats URL

To download an entire user/channel

youtube-dl -citw ytuser:<USER> or youtube-dl -citw URL

To download all videos on a playlist

youtube-dl -citw <PLAYLIST URL>

To download a YouTube video as an MP3

youtube-dl -x --audio-format mp3 --audio-quality 320K <VIDEO_URL>

To download best availble video (mp4) and best available audio (m4a) and then merge them together

youtube-dl -citw -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]' <VIDEO_URL>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment