Download YouTube videos with full control over quality and format settings.
Method 1: Install FFmpeg via winget Important Windows Requirement: yt-dlp requires FFmpeg installed on your system to combine best video and audio streams (or convert to MP3). If you don't have it installed on Windows, you can install it easily using winget:
winget install FFmpeg
Method 2: Install FFmpeg via Chocolatey (Easiest Alternative)
choco install ffmpeg
Method 3: Install FFmpeg via Scoop (Easiest Alternative)
scoop install ffmpeg
The simplest way to download a video:
python scripts/download_video.py "https://www.youtube.com/watch?v=VIDEO_ID"This downloads the video in best available quality as MP4 to DEFAULT DIRECTORY (OS_INSTALLATION/Download/YouTube)
Use -q or --quality to specify video quality:
best(default): Highest quality available1080p: Full HD720p: HD480p: Standard definition360p: Lower qualityworst: Lowest quality available
Example:
python scripts/download_video.py "URL" -q 720pUse -f or --format to specify output format (video downloads only):
mp4(default): Most compatiblewebm: Modern formatmkv: Matroska container
Example:
python scripts/download_video.py "URL" -f webmUse -a or --audio-only to download only audio as MP3:
python scripts/download_video.py "URL" -aUse -o or --output to specify a different output directory:
python scripts/download_video.py "URL" -o /path/to/directory- Download video in 1080p as MP4:
python scripts/download_video.py "https://www.youtube.com/watch?v=VIDEO_ID" -q 1080p- Download audio only as MP3:
python scripts/download_video.py "https://www.youtube.com/watch?v=VIDEO_ID" -a- Download in 720p as WebM to custom directory:
python scripts/download_video.py "https://www.youtube.com/watch?v=VIDEO_ID" -q 720p -f webm -o /custom/pathA powerful YouTube downloader that
- Automatically installs itself if not present
- Retrieves video data prior to downloading
- Chooses the best streams that fit your requirements.
- When necessary, combines audio and video streams.
- Supports many different types of YouTube videos.
- Downloads are automatically saved to
OS_INSTALLATION/Download/YouTube/ - The video title automatically generates the video filename.
- The script automatically installs yt-dlp.
- Playlists are automatically skipped; only individual videos are downloaded.
- Higher quality videos might require more disk space and take longer to download.