youtube-dl Usage

Usage: youtube-dl [OPTIONS] URL [URL...]

Options:

General Options:

-h, --help                           Print this help text and exit

--version                            Print program version and exit

-U, --update                         Update this program to latest version. Make sure that you have sufficient
                                     permissions (run with sudo if needed)

-i, --ignore-errors                  Continue on download errors, for example to skip unavailable videos in a
                                     playlist

--abort-on-error                     Abort downloading of further videos (in the playlist or the command line) if
                                     an error occurs

--dump-user-agent                    Display the current browser identification

--list-extractors                    List all supported extractors

--extractor-descriptions             Output descriptions of all supported extractors

--force-generic-extractor            Force extraction to use the generic extractor

--default-search PREFIX              Use this prefix for unqualified URLs. For example "gvsearch2:" downloads two
                                     videos from google videos for youtube-dl "large apple". Use the value "auto"
                                     to let youtube-dl guess ("auto_warning" to emit a warning when guessing).
                                     "error" just throws an error. The default value "fixup_error" repairs broken
                                     URLs, but emits an error if this is not possible instead of searching.

--ignore-config                      Do not read configuration files. When given in the global configuration file
                                     /etc/youtube-dl.conf: Do not read the user configuration in
                                     ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on Windows)

--config-location PATH               Location of the configuration file; either the path to the config or its
                                     containing directory.

--flat-playlist                      Do not extract the videos of a playlist, only list them.

--mark-watched                       Mark videos watched (YouTube only)

--no-mark-watched                    Do not mark videos watched (YouTube only)

--no-color                           Do not emit color codes in output

Network Options:

–proxy URL Use the specified HTTP/HTTPS/SOCKS proxy. To enable SOCKS proxy, specify a proper scheme. For example socks5://127.0.0.1:1080/. Pass in an empty string (–proxy "") for direct connection

Geo Restriction:

–geo-verification-proxy URL Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by –proxy (or none, if the option is not present) is used for the actual downloading.

Video Selection:

Download Options:

-r, –limit-rate RATE Maximum download rate in bytes per second (e.g. 50K or 4.2M)

Filesystem Options:

-a, –batch-file FILE File containing URLs to download (‘-’ for stdin), one URL per line. Lines starting with ‘#’, ‘;’ or ‘]’ are considered as comments and ignored.

Thumbnail Options:

–write-thumbnail Write thumbnail image to disk

Verbosity / Simulation Options:

Workarounds:

–encoding ENCODING Force the specified encoding (experimental)

Video Format Options:

-f, –format FORMAT Video format code, see the “FORMAT SELECTION” for all the info

Subtitle Options:

–write-sub Write subtitle file

Authentication Options:

Adobe Pass Options:

–ap-mso MSO Adobe Pass multiple-system operator (TV provider) identifier, use –ap-list- mso for a list of available MSOs

Post-processing Options:

-x, –extract-audio Convert video files to audio-only files (requires ffmpeg/avconv and ffprobe/avprobe)

Last updated