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
Downloads the video from the provided URL.Code:yt-dlp <URL> - Download with Best Quality
Selects and downloads the best available quality of the video.Code:yt-dlp -f 'best' <URL> - Download Audio Only
Downloads only the best available audio from the video.Code:yt-dlp -f 'bestaudio' <URL> - Output Filename Template
Specifies the output filename template for the downloaded video.Code:yt-dlp -o '%(title)s.%(ext)s' <URL> - Extract Audio and Convert to MP3
Extracts the audio and converts it to MP3 format.Code:yt-dlp --extract-audio --audio-format mp3 <URL> - Specify Download Directory
Downloads the video to the specified directory.Code:yt-dlp -o '~/Downloads/%(title)s.%(ext)s' <URL> - Download Playlist
Downloads all videos from a playlist, with filenames reflecting the playlist index.Code:yt-dlp -o '%(playlist_index)s - %(title)s.%(ext)s' <URL> - Download Specific Video Format
Downloads a specific video and audio format combination, such as 1080p video with the best available audio.Code:yt-dlp -f '137+bestaudio' <URL> - Restrict Filenames
Restricts filenames to only ASCII characters.Code:yt-dlp --restrict-filenames <URL> - Limit Download Rate
Limits the download rate to 1 Megabyte per second.Code:yt-dlp -r 1M <URL> - Embed Subtitles
Embeds available subtitles into the video.Code:yt-dlp --embed-subs <URL> - Download Subtitles
Downloads the subtitles along with the video.Code:yt-dlp --write-subs <URL> - Skip Download if File Exists
Skips downloading the video if the file already exists.Code:yt-dlp -ic <URL> - Download Part of a Video
Downloads a specific section of the video between 10:00 and 20:00.Code:yt-dlp --download-sections '*10:00-20:00' <URL> - Verbose Mode
Increases the verbosity of the output for debug purposes.Code:yt-dlp -v <URL> - List Formats Available for Download
Lists all available formats for download.Code:yt-dlp -F <URL> - Authenticate with Username and Password
Authenticates using the specified username and password (useful for private videos).Code:yt-dlp --username <USERNAME> --password <PASSWORD> <URL> - Ignore Errors
Continues downloading if errors occur.Code:yt-dlp --ignore-errors <URL> - Download Age-Restricted Videos
Bypasses age restrictions when downloading videos.Code:yt-dlp --age-limit 18 <URL> - Proxy Server
Uses the specified proxy server for downloading.Code:yt-dlp --proxy <PROXY_URL> <URL> - Concurrent Downloads
Specifies the number of concurrent downloads.Code:yt-dlp -N 3 <URL> - Post Processing Options
Passes specified arguments to postprocessors.Code:yt-dlp --postprocessor-args "-strict -2" <URL> - Custom User Agent
Specifies a custom user agent.Code:yt-dlp --user-agent "<USER_AGENT>" <URL> - Add Metadata
Embeds metadata into the video file.Code:yt-dlp --add-metadata <URL> - Limit File Size
Specifies the maximum file size for the downloaded video.Code:yt-dlp --max-filesize 50M <URL>
For more, check out the repo. What others am I leaving out?