Input Sources
File containing URLs to download (”-” for stdin), one URL per lineLines starting with ”#”, ”;” or ”]” are considered as comments and ignoredExample:
Do not read URLs from batch file
Output Path Configuration
The paths where the files should be downloadedFormat:
[TYPES:]PATHSpecify the type of file and the path separated by a colon ”:”. All the same TYPES as --output are supported. Additionally, you can also provide “home” (default) and “temp” paths.All intermediary files are first downloaded to the temp path and then the final files are moved over to the home path after download is finished.This option is ignored if --output is an absolute path.Example:Output filename templateFormat:
[TYPES:]TEMPLATESee “OUTPUT TEMPLATE” for detailsExample:Placeholder for unavailable fields in
--outputFilename Restrictions
Restrict filenames to only ASCII characters, and avoid ”&” and spaces in filenames
Allow Unicode characters, ”&” and spaces in filenames
Force filenames to be Windows-compatible
Sanitize filenames only minimally
Limit the filename length (excluding extension) to the specified number of charactersExample:
File Overwrite Behavior
Do not overwrite any files
Overwrite all video and metadata filesThis option includes
--no-continueDo not overwrite the video, but overwrite related files
Resume partially downloaded files/fragments
Do not resume partially downloaded fragments. If the file is not fragmented, restart download of the entire file
Use .part files instead of writing directly into output file
Do not use .part files - write directly into output file
File Timestamps
Use the Last-modified header to set the file modification time
Do not use the Last-modified header to set the file modification time
Metadata Files
Write video description to a .description file
Do not write video description
Write video metadata to a .info.json fileThis may contain personal information
Do not write video metadata
Write playlist metadata in addition to the video metadata when using
--write-info-json, --write-description etc.Do not write playlist metadata when using
--write-info-json, --write-description etc.Remove some internal metadata such as filenames from the infojson
Write all fields to the infojson
Comments
Retrieve video comments to be placed in the infojsonThe comments are fetched even without this option if the extraction is known to be quickAlias:
--get-commentsDo not retrieve video comments unless the extraction is known to be quickAlias:
--no-get-commentsJSON file containing the video information (created with the
--write-info-json option)Example:Cookies
Netscape formatted file to read cookies from and dump cookie jar inExample:
Do not read/dump cookies from/to file
The name of the browser to load cookies fromFormat:
BROWSER[+KEYRING][:PROFILE][::CONTAINER]Supported browsers: brave, chrome, chromium, edge, firefox, opera, safari, vivaldi, whaleOptionally:- KEYRING used for decrypting Chromium cookies on Linux
- Name/path of the PROFILE to load cookies from
- CONTAINER name (if Firefox) (“none” for no container)
basictext, gnomekeyring, kwallet, kwallet5, kwallet6Example:Do not load cookies from browser
Cache
Location in the filesystem where yt-dlp can store some downloaded information (such as client ids and signatures) permanentlyDefault:
${XDG_CACHE_HOME}/yt-dlpExample:Disable filesystem caching
Delete all filesystem cache files
Thumbnail Options
Write thumbnail image to diskExample:
Do not write thumbnail image to disk
Write all thumbnail image formats to diskExample:
List available thumbnails of each videoSimulate unless
--no-simulate is usedExample:Internet Shortcut Options
Write an internet shortcut file, depending on the current platform (.url, .webloc or .desktop)The URL may be cached by the OSExample:
Write a .url Windows internet shortcutThe OS caches the URL based on the file path
Write a .webloc macOS internet shortcut
Write a .desktop Linux internet shortcut