GitHub link.
yt-dlp is a fast, powerful tool for downloading YouTube videos, playlists, and more. It’s forked from youtube-dl, continuously updated with better performance and new features.
yt-dlp?NOTE: If the installation method not listed, check out the official installation guide: link
pip, nightly versionPATH.Check the version:
Download a single video:
Choose custom formats:
NOTE: This is just the flag, not the whole command!
This selects the best video MP4 and audio M4A, and merges them into a single MP4 file.
Export cookies from your browser using browser tools or an extension like EditThisCookie. Save them to your desired path, for me it's ~/Downloads/cookies.txt and use:
NOTE: This is just the flag, not the whole command!
Embed metadata and thumbnails for richer downloads:
NOTE: This is just the flag, not the whole command!
Download an entire playlist with:
This command downloads all playlist videos at once.
Customise file names:
NOTE: This is just the flag, not the whole command!
Use placeholders like %(playlist_index)s for organised file names.
If a download fails, run the command again—yt-dlp will resume automatically.
Add verbosity for troubleshooting:
NOTE: This is just the flag, not the whole command!
I hereby recommend only downloading videos you own or have permission to download. Remember to respect the platform Terms of Service. Respect copyright law in your jurisdiction.
yt‑dlp is a flexible, powerful solution for anyone needing downloads from YouTube or supported sites. With format selection, metadata embedding, and playlist support, it fits both casual and advanced workflows. Especially for homelabbers like me 😏.