Skip to main content

Overview

yt-dlp makes it easy to download videos from thousands of supported sites. This guide covers the fundamental workflows for downloading videos effectively.

Basic Download

The simplest way to download a video is to provide the URL:
By default, yt-dlp downloads the best available quality, equivalent to using -f bestvideo*+bestaudio/best.
yt-dlp will automatically merge video and audio streams when ffmpeg is available, giving you the best quality output.

Selecting Video Quality

1

List available formats

View all available quality options before downloading:
This displays a table showing format codes, resolutions, codecs, and file sizes.
2

Choose a specific format

Download using a format code from the list:
3

Use format selectors

Select formats using criteria instead of specific codes:

Quality Preferences

Download best quality up to a limit

Download Multiple Videos

From a file

Create a text file with URLs (one per line):
urls.txt
Then download all:

Multiple URLs directly

Output Location

Customize where files are saved:

Common Download Scenarios

Download for offline viewing

Quick download (smallest file)

High quality archival

Download with Retries

Network issues can interrupt downloads. Configure retry behavior for reliability.

Resume Interrupted Downloads

yt-dlp automatically resumes partially downloaded files:

Speed Limiting

Control download speed to avoid network congestion:

Batch Download Best Practices

When downloading many videos, use these options to be respectful to servers:
This configuration:
  • Waits 5-15 seconds between downloads
  • Waits 1 second between requests
  • Tracks downloaded videos to avoid duplicates

Troubleshooting

Video unavailable or private

Age-restricted content

Geo-restricted content

Next Steps

Audio Extraction

Extract audio from videos in various formats

Playlists

Download entire playlists and channels

Format Selection

Advanced format selection options

Output Templates

Customize file naming and organization