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.