>_ CLI Index
← Back

yt-dlp

Download v2024.12.06

Feature-rich command-line audio/video downloader for hundreds of sites

Agent Support
4/5
Platforms
macoslinuxwindows

Agent Usage Example

shell
yt-dlp -f 'bestvideo[height<=720]+bestaudio' --merge-output-format mp4 'https://example.com/video'

Installation

brew install yt-dlp

yt-dlp is a powerful command-line media downloader that supports hundreds of websites. A maintained fork of youtube-dl with significant improvements, it handles video and audio extraction with fine-grained control over format selection, quality, subtitles, and metadata.

AI agents leverage yt-dlp to download media for processing pipelines — extracting audio for transcription, fetching video for analysis, or archiving content. Its format selection syntax allows precise control: agents can request specific resolutions, codecs, or audio-only streams, and yt-dlp handles the merging automatically.

Beyond basic downloading, yt-dlp supports SponsorBlock integration, chapter extraction, subtitle downloading in multiple formats, and playlist handling. Its --print flag can extract metadata without downloading, making it useful for gathering information about media content before deciding how to process it.

Related Tools