Download Command
Thedownload command allows you to download videos from YouTube or other supported platforms using yt-dlp. This is useful when you want to download a video without processing it immediately.
Usage
Arguments
| Argument | Description |
|---|---|
URL | URL to download video from |
Options
| Option | Description | Default |
|---|---|---|
--output-dir TEXT | Output directory for downloaded videos | videos/ |
--quality TEXT | Video quality to download (best, 1080p, 720p, etc.) | best |
--format TEXT | Video format (mp4, webm, etc.) | mp4 |
--audio-only | Download audio only | False |
--subtitles | Download subtitles if available | False |
--language TEXT | Subtitle language code | en |
--help | Show help message and exit | - |
Examples
Download a YouTube video
Download a video with specific quality
Download audio only
Download with subtitles
Output
The command downloads the video to the specified output directory:Supported Platforms
Thedownload command supports various video platforms through yt-dlp, including:
- YouTube
- Vimeo
- Dailymotion
- TikTok
- And many more
Quality Options
The--quality option accepts various formats:
best: Best available qualityworst: Worst available quality- Resolution:
1080p,720p,480p,360p,240p,144p - Format code:
137+140,22, etc. (advanced usage)
Format Options
The--format option specifies the container format:
mp4: MP4 format (most compatible)webm: WebM formatmkv: Matroska formatm4a: M4A audio format (when using--audio-only)mp3: MP3 audio format (when using--audio-only)