I use
And now, the top 25 best uses of
For more, check out the repo. What others am I leaving out?
yt-dlp
infrequently enough that I have to look up all of the options and features every single time I use it. So I'm putting a few of the most useful options here to be easily accessible to others. While it has YouTube in the name, here is the list of currently supported sites.And now, the top 25 best uses of
yt-dlp
- Basic Video Download
Code:yt-dlp <URL>
- Download with Best Quality
Code:yt-dlp -f 'best' <URL>
- Download Audio Only
Code:yt-dlp -f 'bestaudio' <URL>
- Output Filename Template
Code:yt-dlp -o '%(title)s.%(ext)s' <URL>
- Extract Audio and Convert to MP3
Code:yt-dlp --extract-audio --audio-format mp3 <URL>
- Specify Download Directory
Code:yt-dlp -o '~/Downloads/%(title)s.%(ext)s' <URL>
- Download Playlist
Code:yt-dlp -o '%(playlist_index)s - %(title)s.%(ext)s' <URL>
- Download Specific Video Format
Code:yt-dlp -f '137+bestaudio' <URL>
- Restrict Filenames
Code:yt-dlp --restrict-filenames <URL>
- Limit Download Rate
Code:yt-dlp -r 1M <URL>
- Embed Subtitles
Code:yt-dlp --embed-subs <URL>
- Download Subtitles
Code:yt-dlp --write-subs <URL>
- Skip Download if File Exists
Code:yt-dlp -ic <URL>
- Download Part of a Video
Code:yt-dlp --download-sections '*10:00-20:00' <URL>
- Verbose Mode
Code:yt-dlp -v <URL>
- List Formats Available for Download
Code:yt-dlp -F <URL>
- Authenticate with Username and Password
Code:yt-dlp --username <USERNAME> --password <PASSWORD> <URL>
- Ignore Errors
Code:yt-dlp --ignore-errors <URL>
- Download Age-Restricted Videos
Code:yt-dlp --age-limit 18 <URL>
- Proxy Server
Code:yt-dlp --proxy <PROXY_URL> <URL>
- Concurrent Downloads
Code:yt-dlp -N 3 <URL>
- Post Processing Options
Code:yt-dlp --postprocessor-args "-strict -2" <URL>
- Custom User Agent
Code:yt-dlp --user-agent "<USER_AGENT>" <URL>
- Add Metadata
Code:yt-dlp --add-metadata <URL>
- Limit File Size
Code:yt-dlp --max-filesize 50M <URL>
For more, check out the repo. What others am I leaving out?