工具介绍
<!-- MANPAGE: BEGIN EXCLUDED SECTION -->
<div align="center">
</div>
<!-- MANPAGE: END EXCLUDED SECTION -->
yt-dlp is a feature-rich command-line audio/video downloader with support for thousands of sites. The project is a fork of youtube-dl based on the now inactive youtube-dlc.
<!-- MANPAGE: MOVE "USAGE AND OPTIONS" SECTION HERE -->
<!-- MANPAGE: BEGIN EXCLUDED SECTION -->
* INSTALLATION
* Detailed instructions
* Release Files
* Update
* Dependencies
* Compile
* USAGE AND OPTIONS
* General Options
* Network Options
* Geo-restriction
* Video Selection
* Download Options
* Filesystem Options
* Thumbnail Options
* Internet Shortcut Options
* Verbosity and Simulation Options
* Workarounds
* Video Format Options
* Subtitle Options
* Authentication Options
* Post-processing Options
* SponsorBlock Options
* Extractor Options
* Preset Aliases
* CONFIGURATION
* Configuration file encoding
* Authentication with netrc
* Notes about environment variables
* OUTPUT TEMPLATE
* Output template examples
* FORMAT SELECTION
* Filtering Formats
* Sorting Formats
* Format Selection examples
* MODIFYING METADATA
* Modifying metadata examples
* EXTRACTOR ARGUMENTS
* PLUGINS
* Installing Plugins
* Developing Plugins
* EMBEDDING YT-DLP
* Embedding examples
* CHANGES FROM YOUTUBE-DL
* New features
* Differences in default behavior
* Deprecated options
* CONTRIBUTING
* Opening an Issue
* Developer Instructions
* WIKI
* FAQ
<!-- MANPAGE: END EXCLUDED SECTION -->
INSTALLATION
<!-- MANPAGE: BEGIN EXCLUDED SECTION -->
<!-- MANPAGE: END EXCLUDED SECTION -->
You can install yt-dlp using the binaries, pip or one using a third-party package manager. See the wiki for detailed instructions
<!-- MANPAGE: BEGIN EXCLUDED SECTION -->
RELEASE FILES
Recommended
File|Description
:---|:---
yt-dlp|Platform-independent zipimport binary. Needs Python (recommended for **Linux/BSD**)
yt-dlp.exe|Windows (Win8+) standalone x64 binary (recommended for **Windows**)
yt-dlp_macos|Universal MacOS (10.15+) standalone executable (recommended for **MacOS**)
Alternatives
File|Description
:---|:---
yt-dlp_linux|Linux (glibc 2.17+) standalone x86_64 binary
yt-dlp_linux.zip|Unpackaged Linux (glibc 2.17+) x86_64 executable (no auto-update)
yt-dlp_linux_aarch64|Linux (glibc 2.17+) standalone aarch64 binary
yt-dlp_linux_aarch64.zip|Unpackaged Linux (glibc 2.17+) aarch64 executable (no auto-update)
yt-dlp_linux_armv7l.zip|Unpackaged Linux (glibc 2.31+) armv7l executable (no auto-update)
yt-dlp_musllinux|Linux (musl 1.2+) standalone x86_64 binary
yt-dlp_musllinux.zip|Unpackaged Linux (musl 1.2+) x86_64 executable (no auto-update)
yt-dlp_musllinux_aarch64|Linux (musl 1.2+) standalone aarch64 binary
yt-dlp_musllinux_aarch64.zip|Unpackaged Linux (musl 1.2+) aarch64 executable (no auto-update)
yt-dlp_x86.exe|Windows (Win8+) standalone x86 (32-bit) binary
yt-dlp_win_x86.zip|Unpackaged Windows (Win8+) x86 (32-bit) executable (no auto-update)
yt-dlp_arm64.exe|Windows (Win10+) standalone ARM64 binary
yt-dlp_win_arm64.zip|Unpackaged Windows (Win10+) ARM64 executable (no auto-update)
yt-dlp_win.zip|Unpackaged Windows (Win8+) x64 executable (no auto-update)
yt-dlp_macos.zip|Unpackaged MacOS (10.15+) executable (no auto-update)
Misc
File|Description
:---|:---
yt-dlp.tar.gz|Source tarball
SHA2-512SUMS|GNU-style SHA512 sums
SHA2-512SUMS.sig|GPG signature file for SHA512 sums
SHA2-256SUMS|GNU-style SHA256 sums
SHA2-256SUMS.sig|GPG signature file for SHA256 sums
The public key that can be used to verify the GPG signatures is available here
Example usage:
Licensing
While yt-dlp is licensed under the Unlicense, many of the release files contain code from other projects with different licenses.
Most notably, the PyInstaller-bundled executables include GPLv3+ licensed code, and as such the combined work is licensed under GPLv3+.
The zipimport Unix executable (`yt-dlp`) and release tarball (`yt-dlp.tar.gz`) contain ISC licensed code from `meriyah` and MIT licensed code from `astring`.
See THIRD_PARTY_LICENSES.txt for more details.
The git repository, the PyPI source distribution and the PyPI built distribution (wheel) only contain code licensed under the Unlicense.
<!-- MANPAGE: END EXCLUDED SECTION -->
**Note**: The manpages, shell completion (autocomplete) files etc. are available inside the source tarball
UPDATE
You can use `yt-