youtube-dl is a command-line program that downloads videos from YouTube.com and additional video platforms. It needs a Python interpreter and runs on Unix, Windows, and macOS.
Overview
youtube-dl fetches video and audio from YouTube and a set of other supported sites through a single command-line interface. You pass URLs and options on the command line; the tool handles extraction, format selection, and saving files according to your templates and filters.
Installation paths include placing a binary on the PATH, pip, Homebrew on macOS, MacPorts, or a Windows executable that bundles Python. The program is not tied to one operating system as long as a supported Python version is available.
A large option surface covers playlists, geo restrictions, proxies, authentication via netrc, output naming templates, format and quality choice, subtitles, and post-processing with ffmpeg or avconv. Configuration files can store defaults for repeated use on Linux, macOS, and Windows.
Developers can embed youtube-dl in other software; the public domain release allows modification and redistribution. For site-specific behavior, built-in extractors cover many platforms, and listing or describing extractors is supported from the CLI.
Key features
- Multi-site video extraction
- Playlist and video selection filters
- Configurable output templates
- Proxy and geo-bypass options
- Subtitle download and conversion
- ffmpeg post-processing integration
- Persistent configuration files
- netrc-based authentication
Use cases
- Download single videos by URL
- Grab selected playlist items
- Archive videos with metadata
- Automate downloads via config
- Extract audio or specific formats