Skip to content

What yt-dlp Is

yt-dlp is a command-line program that downloads video and audio from web pages. You give it the address of a page — a talk, a lecture, a song, a film someone has published online — and it saves the media from that page to a file on your machine, in a format you choose.

It hosts nothing itself. When you watch a video in a browser, the site is already sending the picture and sound to your computer as a stream of files; your browser just plays them and throws them away. yt-dlp asks the site for those same streams and keeps them. Everything else it is known for — picking a resolution, pulling out just the audio, saving the subtitles, working through a whole playlist unattended — is bookkeeping around that one act.

yt-dlp is the actively maintained fork of youtube-dl, the older program that did the same job. The name still says YouTube, and YouTube is the site it is most often pointed at, but the program carries small per-site plugins, called extractors, for well over a thousand other sites (1,755 in the version this guide was verified against — chapter 10). Where no extractor fits, a generic one tries the page anyway.

What it is for:

  • Keeping an offline copy of a talk or lecture you are entitled to keep.
  • Archiving your own uploads, or material published under a licence that allows downloading, such as Creative Commons.
  • Turning a video's sound into an audio file for listening on the move.
  • Fetching subtitles as text.

What it is not:

  • Not a player or a library. It saves files; something else plays them.
  • Not a key to locked doors. It fetches what a site offers a visitor. It does not decrypt DRM (the copy-protection used by subscription streaming services), and media behind a login stays behind the login unless you supply your own session — chapter 9 covers that, with its risks.
  • Not a guarantee. Sites change how they serve media, and some actively refuse automated downloaders. This guide shows that happening for real: chapter 10 records the largest video site on the web declining to serve this guide's lab machine at all.

A word on rights, because it belongs up front. Downloading is a copy, and whether you may make that copy depends on the material's licence and your local law — not on whether the command succeeds. The lab behind this guide downloaded only freely licensed material: open movies from the Blender Foundation, a clip from the Internet Archive, and a public talk. Do the same: download what is yours, what is licensed for it, or what you otherwise have the right to keep, and respect each site's terms and rate limits.

The rest of the guide: chapter 2 takes the program apart; chapter 3 installs it; chapter 4 makes the first real download.