{"id":13394724,"url":"https://github.com/yt-dlp/yt-dlp","last_synced_at":"2026-03-18T01:22:26.664Z","repository":{"id":36978237,"uuid":"307260205","full_name":"yt-dlp/yt-dlp","owner":"yt-dlp","description":"A feature-rich command-line audio/video downloader","archived":false,"fork":false,"pushed_at":"2025-05-11T08:01:14.000Z","size":54126,"stargazers_count":111510,"open_issues_count":1909,"forks_count":8764,"subscribers_count":597,"default_branch":"master","last_synced_at":"2025-05-12T14:42:04.193Z","etag":null,"topics":["python","sponsorblock","video-downloader","youtube-dl","youtube-dlc","youtube-downloader","yt-dlp"],"latest_commit_sha":null,"homepage":"https://discord.gg/H5MNcFW63r","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yt-dlp.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"supportedsites.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://github.com/yt-dlp/yt-dlp/blob/master/Collaborators.md#collaborators"]}},"created_at":"2020-10-26T04:22:55.000Z","updated_at":"2025-05-12T14:41:40.000Z","dependencies_parsed_at":"2024-03-14T22:31:13.650Z","dependency_job_id":"3b05a379-8eba-4595-b374-7c11313208a5","html_url":"https://github.com/yt-dlp/yt-dlp","commit_stats":{"total_commits":20090,"total_committers":1315,"mean_commits":"15.277566539923955","dds":0.6977600796416128,"last_synced_commit":"0c4e0fbcade0fc92d14c2a6d63e360fe067f6192"},"previous_names":[],"tags_count":114,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yt-dlp%2Fyt-dlp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yt-dlp%2Fyt-dlp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yt-dlp%2Fyt-dlp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yt-dlp%2Fyt-dlp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yt-dlp","download_url":"https://codeload.github.com/yt-dlp/yt-dlp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253756686,"owners_count":21959288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","sponsorblock","video-downloader","youtube-dl","youtube-dlc","youtube-downloader","yt-dlp"],"created_at":"2024-07-30T17:01:29.539Z","updated_at":"2026-03-18T01:22:26.636Z","avatar_url":"https://github.com/yt-dlp.png","language":"Python","funding_links":["https://github.com/yt-dlp/yt-dlp/blob/master/Collaborators.md#collaborators"],"categories":["Python","cli","Entertainment","Honorable Mentions 🏆","Command Line Utilities","🎬 Media Downloaders","CLI","Uncategorized","Overview","\u003ca id=\"unofficial-community\"\u003e\u003c/a\u003e⚠️ Unofficial \u0026 Community APIs","Alternatives to `curl`","🔬 Image, Video \u0026 Media Forensics","\u003cimg src=\"https://files.catbox.moe/c1m5gk.svg\" alt=\"image.png\" width=\"30\" height=\"30\"\u003e yt-dlp","HarmonyOS","下载","Utilites","网络服务","下载工具","python","DOWNLOADER","Tools","Tools for LMS Content Creation","Repos","Application Recommendation","Recently Updated","[🧑‍💻 dev](https://github.com/stars/ketsapiwiq/lists/dev)","Utility","MultiOS","Developer Tools","\u003ca name=\"transfer\"\u003e\u003c/a\u003eData transfer","Media Tools \u0026 Archiving","Command Line Tools","Download utilities","Table of Contents","CLI Applications","Downloading and Serving","📱 Social Media / Content","Media \u0026 Entertainment","YouTube Bots \u0026 APIs","CLI Tools","Media","Scripts","Utilities","🛠️ Developer Tools","App-Liste","Media Tools"],"sub_categories":["Video","Downloaders","Internet","Ruby","Uncategorized","YouTube","📚 Additional Resources","Windows Manager","视频与流媒体下载","网络服务_其他","其他","Python","🤖 Automation Tools","[May 05, 2025](/content/2025/05/05/README.md)","Video Converters and Compressors","CLI \u0026 Terminal","General","Media Downloader","Directory Navigation","YouTube video to GIF","Multimedia","FFmpeg-Based Tools"],"readme":"\u003c!-- MANPAGE: BEGIN EXCLUDED SECTION --\u003e\n\u003cdiv align=\"center\"\u003e\n\n[![YT-DLP](https://raw.githubusercontent.com/yt-dlp/yt-dlp/master/.github/banner.svg)](#readme)\n\n[![Release version](https://img.shields.io/github/v/release/yt-dlp/yt-dlp?color=brightgreen\u0026label=Download\u0026style=for-the-badge)](#installation \"Installation\")\n[![PyPI](https://img.shields.io/badge/-PyPI-blue.svg?logo=pypi\u0026labelColor=555555\u0026style=for-the-badge)](https://pypi.org/project/yt-dlp \"PyPI\")\n[![Donate](https://img.shields.io/badge/_-Donate-red.svg?logo=githubsponsors\u0026labelColor=555555\u0026style=for-the-badge)](Maintainers.md#maintainers \"Donate\")\n[![Discord](https://img.shields.io/discord/807245652072857610?color=blue\u0026labelColor=555555\u0026label=\u0026logo=discord\u0026style=for-the-badge)](https://discord.gg/H5MNcFW63r \"Discord\")\n[![Supported Sites](https://img.shields.io/badge/-Supported_Sites-brightgreen.svg?style=for-the-badge)](supportedsites.md \"Supported Sites\")\n[![License: Unlicense](https://img.shields.io/badge/-Unlicense-blue.svg?style=for-the-badge)](LICENSE \"License\")\n[![CI Status](https://img.shields.io/github/actions/workflow/status/yt-dlp/yt-dlp/core.yml?branch=master\u0026label=Tests\u0026style=for-the-badge)](https://github.com/yt-dlp/yt-dlp/actions \"CI Status\")\n[![Commits](https://img.shields.io/github/commit-activity/m/yt-dlp/yt-dlp?label=commits\u0026style=for-the-badge)](https://github.com/yt-dlp/yt-dlp/commits \"Commit History\")\n[![Last Commit](https://img.shields.io/github/last-commit/yt-dlp/yt-dlp/master?label=\u0026style=for-the-badge\u0026display_timestamp=committer)](https://github.com/yt-dlp/yt-dlp/pulse/monthly \"Last activity\")\n\n\u003c/div\u003e\n\u003c!-- MANPAGE: END EXCLUDED SECTION --\u003e\n\nyt-dlp is a feature-rich command-line audio/video downloader with support for [thousands of sites](supportedsites.md). The project is a fork of [youtube-dl](https://github.com/ytdl-org/youtube-dl) based on the now inactive [youtube-dlc](https://github.com/blackjack4494/yt-dlc).\n\n\u003c!-- MANPAGE: MOVE \"USAGE AND OPTIONS\" SECTION HERE --\u003e\n\n\u003c!-- MANPAGE: BEGIN EXCLUDED SECTION --\u003e\n* [INSTALLATION](#installation)\n    * [Detailed instructions](https://github.com/yt-dlp/yt-dlp/wiki/Installation)\n    * [Release Files](#release-files)\n    * [Update](#update)\n    * [Dependencies](#dependencies)\n    * [Compile](#compile)\n* [USAGE AND OPTIONS](#usage-and-options)\n    * [General Options](#general-options)\n    * [Network Options](#network-options)\n    * [Geo-restriction](#geo-restriction)\n    * [Video Selection](#video-selection)\n    * [Download Options](#download-options)\n    * [Filesystem Options](#filesystem-options)\n    * [Thumbnail Options](#thumbnail-options)\n    * [Internet Shortcut Options](#internet-shortcut-options)\n    * [Verbosity and Simulation Options](#verbosity-and-simulation-options)\n    * [Workarounds](#workarounds)\n    * [Video Format Options](#video-format-options)\n    * [Subtitle Options](#subtitle-options)\n    * [Authentication Options](#authentication-options)\n    * [Post-processing Options](#post-processing-options)\n    * [SponsorBlock Options](#sponsorblock-options)\n    * [Extractor Options](#extractor-options)\n    * [Preset Aliases](#preset-aliases)\n* [CONFIGURATION](#configuration)\n    * [Configuration file encoding](#configuration-file-encoding)\n    * [Authentication with netrc](#authentication-with-netrc)\n    * [Notes about environment variables](#notes-about-environment-variables)\n* [OUTPUT TEMPLATE](#output-template)\n    * [Output template examples](#output-template-examples)\n* [FORMAT SELECTION](#format-selection)\n    * [Filtering Formats](#filtering-formats)\n    * [Sorting Formats](#sorting-formats)\n    * [Format Selection examples](#format-selection-examples)\n* [MODIFYING METADATA](#modifying-metadata)\n    * [Modifying metadata examples](#modifying-metadata-examples)\n* [EXTRACTOR ARGUMENTS](#extractor-arguments)\n* [PLUGINS](#plugins)\n    * [Installing Plugins](#installing-plugins)\n    * [Developing Plugins](#developing-plugins)\n* [EMBEDDING YT-DLP](#embedding-yt-dlp)\n    * [Embedding examples](#embedding-examples)\n* [CHANGES FROM YOUTUBE-DL](#changes-from-youtube-dl)\n    * [New features](#new-features)\n    * [Differences in default behavior](#differences-in-default-behavior)\n    * [Deprecated options](#deprecated-options)\n* [CONTRIBUTING](CONTRIBUTING.md#contributing-to-yt-dlp)\n    * [Opening an Issue](CONTRIBUTING.md#opening-an-issue)\n    * [Developer Instructions](CONTRIBUTING.md#developer-instructions)\n* [WIKI](https://github.com/yt-dlp/yt-dlp/wiki)\n    * [FAQ](https://github.com/yt-dlp/yt-dlp/wiki/FAQ)\n\u003c!-- MANPAGE: END EXCLUDED SECTION --\u003e\n\n\n# INSTALLATION\n\n\u003c!-- MANPAGE: BEGIN EXCLUDED SECTION --\u003e\n[![Windows](https://img.shields.io/badge/-Windows_x64-blue.svg?style=for-the-badge\u0026logo=windows)](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe)\n[![Unix](https://img.shields.io/badge/-Linux/BSD-red.svg?style=for-the-badge\u0026logo=linux)](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp)\n[![MacOS](https://img.shields.io/badge/-MacOS-lightblue.svg?style=for-the-badge\u0026logo=apple)](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos)\n[![PyPI](https://img.shields.io/badge/-PyPI-blue.svg?logo=pypi\u0026labelColor=555555\u0026style=for-the-badge)](https://pypi.org/project/yt-dlp)\n[![Source Tarball](https://img.shields.io/badge/-Source_tar-green.svg?style=for-the-badge)](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.tar.gz)\n[![Other variants](https://img.shields.io/badge/-Other-grey.svg?style=for-the-badge)](#release-files)\n[![All versions](https://img.shields.io/badge/-All_Versions-lightgrey.svg?style=for-the-badge)](https://github.com/yt-dlp/yt-dlp/releases)\n\u003c!-- MANPAGE: END EXCLUDED SECTION --\u003e\n\nYou can install yt-dlp using [the binaries](#release-files), [pip](https://pypi.org/project/yt-dlp) or one using a third-party package manager. See [the wiki](https://github.com/yt-dlp/yt-dlp/wiki/Installation) for detailed instructions\n\n\n\u003c!-- MANPAGE: BEGIN EXCLUDED SECTION --\u003e\n## RELEASE FILES\n\n#### Recommended\n\nFile|Description\n:---|:---\n[yt-dlp](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp)|Platform-independent [zipimport](https://docs.python.org/3/library/zipimport.html) binary. Needs Python (recommended for **Linux/BSD**)\n[yt-dlp.exe](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe)|Windows (Win8+) standalone x64 binary (recommended for **Windows**)\n[yt-dlp_macos](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos)|Universal MacOS (10.15+) standalone executable (recommended for **MacOS**)\n\n#### Alternatives\n\nFile|Description\n:---|:---\n[yt-dlp_linux](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux)|Linux (glibc 2.17+) standalone x86_64 binary\n[yt-dlp_linux.zip](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux.zip)|Unpackaged Linux (glibc 2.17+) x86_64 executable (no auto-update)\n[yt-dlp_linux_aarch64](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux_aarch64)|Linux (glibc 2.17+) standalone aarch64 binary\n[yt-dlp_linux_aarch64.zip](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux_aarch64.zip)|Unpackaged Linux (glibc 2.17+) aarch64 executable (no auto-update)\n[yt-dlp_linux_armv7l.zip](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux_armv7l.zip)|Unpackaged Linux (glibc 2.31+) armv7l executable (no auto-update)\n[yt-dlp_musllinux](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_musllinux)|Linux (musl 1.2+) standalone x86_64 binary\n[yt-dlp_musllinux.zip](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_musllinux.zip)|Unpackaged Linux (musl 1.2+) x86_64 executable (no auto-update)\n[yt-dlp_musllinux_aarch64](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_musllinux_aarch64)|Linux (musl 1.2+) standalone aarch64 binary\n[yt-dlp_musllinux_aarch64.zip](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_musllinux_aarch64.zip)|Unpackaged Linux (musl 1.2+) aarch64 executable (no auto-update)\n[yt-dlp_x86.exe](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_x86.exe)|Windows (Win8+) standalone x86 (32-bit) binary\n[yt-dlp_win_x86.zip](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_win_x86.zip)|Unpackaged Windows (Win8+) x86 (32-bit) executable (no auto-update)\n[yt-dlp_arm64.exe](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_arm64.exe)|Windows (Win10+) standalone ARM64 binary\n[yt-dlp_win_arm64.zip](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_win_arm64.zip)|Unpackaged Windows (Win10+) ARM64 executable (no auto-update)\n[yt-dlp_win.zip](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_win.zip)|Unpackaged Windows (Win8+) x64 executable (no auto-update)\n[yt-dlp_macos.zip](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos.zip)|Unpackaged MacOS (10.15+) executable (no auto-update)\n\n#### Misc\n\nFile|Description\n:---|:---\n[yt-dlp.tar.gz](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.tar.gz)|Source tarball\n[SHA2-512SUMS](https://github.com/yt-dlp/yt-dlp/releases/latest/download/SHA2-512SUMS)|GNU-style SHA512 sums\n[SHA2-512SUMS.sig](https://github.com/yt-dlp/yt-dlp/releases/latest/download/SHA2-512SUMS.sig)|GPG signature file for SHA512 sums\n[SHA2-256SUMS](https://github.com/yt-dlp/yt-dlp/releases/latest/download/SHA2-256SUMS)|GNU-style SHA256 sums\n[SHA2-256SUMS.sig](https://github.com/yt-dlp/yt-dlp/releases/latest/download/SHA2-256SUMS.sig)|GPG signature file for SHA256 sums\n\nThe public key that can be used to verify the GPG signatures is [available here](https://github.com/yt-dlp/yt-dlp/blob/master/public.key)\nExample usage:\n```\ncurl -L https://github.com/yt-dlp/yt-dlp/raw/master/public.key | gpg --import\ngpg --verify SHA2-256SUMS.sig SHA2-256SUMS\ngpg --verify SHA2-512SUMS.sig SHA2-512SUMS\n```\n\n#### Licensing\n\nWhile yt-dlp is licensed under the [Unlicense](LICENSE), many of the release files contain code from other projects with different licenses.\n\nMost notably, the PyInstaller-bundled executables include GPLv3+ licensed code, and as such the combined work is licensed under [GPLv3+](https://www.gnu.org/licenses/gpl-3.0.html).\n\nThe zipimport Unix executable (`yt-dlp`) contains [ISC](https://github.com/meriyah/meriyah/blob/main/LICENSE.md) licensed code from [`meriyah`](https://github.com/meriyah/meriyah) and [MIT](https://github.com/davidbonnet/astring/blob/main/LICENSE) licensed code from [`astring`](https://github.com/davidbonnet/astring).\n\nSee [THIRD_PARTY_LICENSES.txt](THIRD_PARTY_LICENSES.txt) for more details.\n\nThe git repository, the source tarball (`yt-dlp.tar.gz`), the PyPI source distribution and the PyPI built distribution (wheel) only contain code licensed under the [Unlicense](LICENSE).\n\n\u003c!-- MANPAGE: END EXCLUDED SECTION --\u003e\n\n**Note**: The manpages, shell completion (autocomplete) files etc. are available inside the [source tarball](https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.tar.gz)\n\n\n## UPDATE\nYou can use `yt-dlp -U` to update if you are using the [release binaries](#release-files)\n\nIf you [installed with pip](https://github.com/yt-dlp/yt-dlp/wiki/Installation#with-pip), simply re-run the same command that was used to install the program\n\nFor other third-party package managers, see [the wiki](https://github.com/yt-dlp/yt-dlp/wiki/Installation#third-party-package-managers) or refer to their documentation\n\n\u003ca id=\"update-channels\"\u003e\u003c/a\u003e\n\nThere are currently three release channels for binaries: `stable`, `nightly` and `master`.\n\n* `stable` is the default channel, and many of its changes have been tested by users of the `nightly` and `master` channels.\n* The `nightly` channel has releases scheduled to build every day around midnight UTC, for a snapshot of the project's new patches and changes. This is the **recommended channel for regular users** of yt-dlp. The `nightly` releases are available from [yt-dlp/yt-dlp-nightly-builds](https://github.com/yt-dlp/yt-dlp-nightly-builds/releases) or as development releases of the `yt-dlp` PyPI package (which can be installed with pip's `--pre` flag).\n* The `master` channel features releases that are built after each push to the master branch, and these will have the very latest fixes and additions, but may also be more prone to regressions. They are available from [yt-dlp/yt-dlp-master-builds](https://github.com/yt-dlp/yt-dlp-master-builds/releases).\n\nWhen using `--update`/`-U`, a release binary will only update to its current channel.\n`--update-to CHANNEL` can be used to switch to a different channel when a newer version is available. `--update-to [CHANNEL@]TAG` can also be used to upgrade or downgrade to specific tags from a channel.\n\nYou may also use `--update-to \u003crepository\u003e` (`\u003cowner\u003e/\u003crepository\u003e`) to update to a channel on a completely different repository. Be careful with what repository you are updating to though, there is no verification done for binaries from different repositories.\n\nExample usage:\n\n* `yt-dlp --update-to master` switch to the `master` channel and update to its latest release\n* `yt-dlp --update-to stable@2023.07.06` upgrade/downgrade to release to `stable` channel tag `2023.07.06`\n* `yt-dlp --update-to 2023.10.07` upgrade/downgrade to tag `2023.10.07` if it exists on the current channel\n* `yt-dlp --update-to example/yt-dlp@2023.09.24` upgrade/downgrade to the release from the `example/yt-dlp` repository, tag `2023.09.24`\n\n**Important**: Any user experiencing an issue with the `stable` release should install or update to the `nightly` release before submitting a bug report:\n```\n# To update to nightly from stable executable/binary:\nyt-dlp --update-to nightly\n\n# To install nightly with pip:\npython -m pip install -U --pre \"yt-dlp[default]\"\n```\n\nWhen running a yt-dlp version that is older than 90 days, you will see a warning message suggesting to update to the latest version.\nYou can suppress this warning by adding `--no-update` to your command or configuration file.\n\n## DEPENDENCIES\nPython versions 3.10+ (CPython) and 3.11+ (PyPy) are supported. Other versions and implementations may or may not work correctly.\n\n\u003c!-- Python 3.5+ uses VC++14 and it is already embedded in the binary created\n\u003c!x-- https://www.microsoft.com/en-us/download/details.aspx?id=26999 --x\u003e\nOn Windows, [Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)](https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x86.exe) is also necessary to run yt-dlp. You probably already have this, but if the executable throws an error due to missing `MSVCR100.dll` you need to install it manually.\n--\u003e\n\nWhile all the other dependencies are optional, `ffmpeg`, `ffprobe`, `yt-dlp-ejs` and a supported JavaScript runtime/engine are highly recommended\n\n### Strongly recommended\n\n* [**ffmpeg** and **ffprobe**](https://www.ffmpeg.org) - Required for [merging separate video and audio files](#format-selection), as well as for various [post-processing](#post-processing-options) tasks. License [depends on the build](https://www.ffmpeg.org/legal.html)\n\n    There are bugs in ffmpeg that cause various issues when used alongside yt-dlp. Since ffmpeg is such an important dependency, we provide [custom builds](https://github.com/yt-dlp/FFmpeg-Builds#ffmpeg-static-auto-builds) with patches for some of these issues at [yt-dlp/FFmpeg-Builds](https://github.com/yt-dlp/FFmpeg-Builds). See [the readme](https://github.com/yt-dlp/FFmpeg-Builds#patches-applied) for details on the specific issues solved by these builds\n\n    **Important**: What you need is ffmpeg *binary*, **NOT** [the Python package of the same name](https://pypi.org/project/ffmpeg)\n\n* [**yt-dlp-ejs**](https://github.com/yt-dlp/ejs) - Required for full YouTube support. Licensed under [Unlicense](https://github.com/yt-dlp/ejs/blob/main/LICENSE), bundles [MIT](https://github.com/davidbonnet/astring/blob/main/LICENSE) and [ISC](https://github.com/meriyah/meriyah/blob/main/LICENSE.md) components.\n\n    A JavaScript runtime/engine like [**deno**](https://deno.land) (recommended), [**node.js**](https://nodejs.org), [**bun**](https://bun.sh), or [**QuickJS**](https://bellard.org/quickjs/) is also required to run yt-dlp-ejs. See [the wiki](https://github.com/yt-dlp/yt-dlp/wiki/EJS).\n\n### Networking\n* [**certifi**](https://github.com/certifi/python-certifi)\\* - Provides Mozilla's root certificate bundle. Licensed under [MPLv2](https://github.com/certifi/python-certifi/blob/master/LICENSE)\n* [**brotli**](https://github.com/google/brotli)\\* or [**brotlicffi**](https://github.com/python-hyper/brotlicffi) - [Brotli](https://en.wikipedia.org/wiki/Brotli) content encoding support. Both licensed under MIT \u003csup\u003e[1](https://github.com/google/brotli/blob/master/LICENSE) [2](https://github.com/python-hyper/brotlicffi/blob/master/LICENSE) \u003c/sup\u003e\n* [**websockets**](https://github.com/aaugustin/websockets)\\* - For downloading over websocket. Licensed under [BSD-3-Clause](https://github.com/aaugustin/websockets/blob/main/LICENSE)\n* [**requests**](https://github.com/psf/requests)\\* - HTTP library. For HTTPS proxy and persistent connections support. Licensed under [Apache-2.0](https://github.com/psf/requests/blob/main/LICENSE)\n\n#### Impersonation\n\nThe following provide support for impersonating browser requests. This may be required for some sites that employ TLS fingerprinting.\n\n* [**curl_cffi**](https://github.com/lexiforest/curl_cffi) (recommended) - Python binding for [curl-impersonate](https://github.com/lexiforest/curl-impersonate). Provides impersonation targets for Chrome, Edge and Safari. Licensed under [MIT](https://github.com/lexiforest/curl_cffi/blob/main/LICENSE)\n  * Can be installed with the `curl-cffi` extra, e.g. `pip install \"yt-dlp[default,curl-cffi]\"`\n  * Currently included in most builds *except* `yt-dlp` (Unix zipimport binary), `yt-dlp_x86` (Windows 32-bit) and `yt-dlp_musllinux_aarch64`\n\n\n### Metadata\n\n* [**mutagen**](https://github.com/quodlibet/mutagen)\\* - For `--embed-thumbnail` in certain formats. Licensed under [GPLv2+](https://github.com/quodlibet/mutagen/blob/master/COPYING)\n* [**AtomicParsley**](https://github.com/wez/atomicparsley) - For `--embed-thumbnail` in `mp4`/`m4a` files when `mutagen`/`ffmpeg` cannot. Licensed under [GPLv2+](https://github.com/wez/atomicparsley/blob/master/COPYING)\n* [**xattr**](https://github.com/xattr/xattr), [**pyxattr**](https://github.com/iustin/pyxattr) or [**setfattr**](http://savannah.nongnu.org/projects/attr) - For writing xattr metadata (`--xattrs`) on **Mac** and **BSD**. Licensed under [MIT](https://github.com/xattr/xattr/blob/master/LICENSE.txt), [LGPL2.1](https://github.com/iustin/pyxattr/blob/master/COPYING) and [GPLv2+](http://git.savannah.nongnu.org/cgit/attr.git/tree/doc/COPYING) respectively\n\n### Misc\n\n* [**pycryptodomex**](https://github.com/Legrandin/pycryptodome)\\* - For decrypting AES-128 HLS streams and various other data. Licensed under [BSD-2-Clause](https://github.com/Legrandin/pycryptodome/blob/master/LICENSE.rst)\n* [**phantomjs**](https://github.com/ariya/phantomjs) - Used in some extractors where JavaScript needs to be run. No longer used for YouTube. To be deprecated in the near future. Licensed under [BSD-3-Clause](https://github.com/ariya/phantomjs/blob/master/LICENSE.BSD)\n* [**secretstorage**](https://github.com/mitya57/secretstorage)\\* - For `--cookies-from-browser` to access the **Gnome** keyring while decrypting cookies of **Chromium**-based browsers on **Linux**. Licensed under [BSD-3-Clause](https://github.com/mitya57/secretstorage/blob/master/LICENSE)\n* Any external downloader that you want to use with `--downloader`\n\n### Deprecated\n\n* [**rtmpdump**](http://rtmpdump.mplayerhq.hu) - For downloading `rtmp` streams. ffmpeg can be used instead with `--downloader ffmpeg`. Licensed under [GPLv2+](http://rtmpdump.mplayerhq.hu)\n* [**mplayer**](http://mplayerhq.hu/design7/info.html) or [**mpv**](https://mpv.io) - For downloading `rstp`/`mms` streams. ffmpeg can be used instead with `--downloader ffmpeg`. Licensed under [GPLv2+](https://github.com/mpv-player/mpv/blob/master/Copyright)\n\nTo use or redistribute the dependencies, you must agree to their respective licensing terms.\n\nThe standalone release binaries are built with the Python interpreter and the packages marked with **\\*** included.\n\nIf you do not have the necessary dependencies for a task you are attempting, yt-dlp will warn you. All the currently available dependencies are visible at the top of the `--verbose` output\n\n\n## COMPILE\n\n### Standalone PyInstaller Builds\nTo build the standalone executable, you must have Python and `pyinstaller` (plus any of yt-dlp's [optional dependencies](#dependencies) if needed). The executable will be built for the same CPU architecture as the Python used.\n\nYou can run the following commands:\n\n```\npython devscripts/install_deps.py --include-extra pyinstaller\npython devscripts/make_lazy_extractors.py\npython -m bundle.pyinstaller\n```\n\nOn some systems, you may need to use `py` or `python3` instead of `python`.\n\n`python -m bundle.pyinstaller` accepts any arguments that can be passed to `pyinstaller`, such as `--onefile/-F` or `--onedir/-D`, which is further [documented here](https://pyinstaller.org/en/stable/usage.html#what-to-generate).\n\n**Note**: Pyinstaller versions below 4.4 [do not support](https://github.com/pyinstaller/pyinstaller#requirements-and-tested-platforms) Python installed from the Windows store without using a virtual environment.\n\n**Important**: Running `pyinstaller` directly **instead of** using `python -m bundle.pyinstaller` is **not** officially supported. This may or may not work correctly.\n\n### Platform-independent Binary (UNIX)\nYou will need the build tools `python` (3.10+), `zip`, `make` (GNU), `pandoc`\\* and `pytest`\\*.\n\nAfter installing these, simply run `make`.\n\nYou can also run `make yt-dlp` instead to compile only the binary without updating any of the additional files. (The build tools marked with **\\*** are not needed for this)\n\n### Related scripts\n\n* **`devscripts/install_deps.py`** - Install dependencies for yt-dlp.\n* **`devscripts/update-version.py`** - Update the version number based on the current date.\n* **`devscripts/set-variant.py`** - Set the build variant of the executable.\n* **`devscripts/make_changelog.py`** - Create a markdown changelog using short commit messages and update `CONTRIBUTORS` file.\n* **`devscripts/make_lazy_extractors.py`** - Create lazy extractors. Running this before building the binaries (any variant) will improve their startup performance. Set the environment variable `YTDLP_NO_LAZY_EXTRACTORS` to something nonempty to forcefully disable lazy extractor loading.\n\nNote: See their `--help` for more info.\n\n### Forking the project\nIf you fork the project on GitHub, you can run your fork's [build workflow](.github/workflows/build.yml) to automatically build the selected version(s) as artifacts. Alternatively, you can run the [release workflow](.github/workflows/release.yml) or enable the [nightly workflow](.github/workflows/release-nightly.yml) to create full (pre-)releases.\n\n# USAGE AND OPTIONS\n\n\u003c!-- MANPAGE: BEGIN EXCLUDED SECTION --\u003e\n    yt-dlp [OPTIONS] [--] URL [URL...]\n\nTip: Use `CTRL`+`F` (or `Command`+`F`)  to search by keywords\n\u003c!-- MANPAGE: END EXCLUDED SECTION --\u003e\n\n\u003c!-- Auto generated --\u003e\n## General Options:\n    -h, --help                      Print this help text and exit\n    --version                       Print program version and exit\n    -U, --update                    Update this program to the latest version\n    --no-update                     Do not check for updates (default)\n    --update-to [CHANNEL]@[TAG]     Upgrade/downgrade to a specific version.\n                                    CHANNEL can be a repository as well. CHANNEL\n                                    and TAG default to \"stable\" and \"latest\"\n                                    respectively if omitted; See \"UPDATE\" for\n                                    details. Supported channels: stable,\n                                    nightly, master\n    -i, --ignore-errors             Ignore download and postprocessing errors.\n                                    The download will be considered successful\n                                    even if the postprocessing fails\n    --no-abort-on-error             Continue with next video on download errors;\n                                    e.g. to skip unavailable videos in a\n                                    playlist (default)\n    --abort-on-error                Abort downloading of further videos if an\n                                    error occurs (Alias: --no-ignore-errors)\n    --list-extractors               List all supported extractors and exit\n    --extractor-descriptions        Output descriptions of all supported\n                                    extractors and exit\n    --use-extractors NAMES          Extractor names to use separated by commas.\n                                    You can also use regexes, \"all\", \"default\"\n                                    and \"end\" (end URL matching); e.g. --ies\n                                    \"holodex.*,end,youtube\". Prefix the name\n                                    with a \"-\" to exclude it, e.g. --ies\n                                    default,-generic. Use --list-extractors for\n                                    a list of extractor names. (Alias: --ies)\n    --default-search PREFIX         Use this prefix for unqualified URLs. E.g.\n                                    \"gvsearch2:python\" downloads two videos from\n                                    google videos for the search term \"python\".\n                                    Use the value \"auto\" to let yt-dlp guess\n                                    (\"auto_warning\" to emit a warning when\n                                    guessing). \"error\" just throws an error. The\n                                    default value \"fixup_error\" repairs broken\n                                    URLs, but emits an error if this is not\n                                    possible instead of searching\n    --ignore-config                 Don't load any more configuration files\n                                    except those given to --config-locations.\n                                    For backward compatibility, if this option\n                                    is found inside the system configuration\n                                    file, the user configuration is not loaded.\n                                    (Alias: --no-config)\n    --no-config-locations           Do not load any custom configuration files\n                                    (default). When given inside a configuration\n                                    file, ignore all previous --config-locations\n                                    defined in the current file\n    --config-locations PATH         Location of the main configuration file;\n                                    either the path to the config or its\n                                    containing directory (\"-\" for stdin). Can be\n                                    used multiple times and inside other\n                                    configuration files\n    --plugin-dirs DIR               Path to an additional directory to search\n                                    for plugins. This option can be used\n                                    multiple times to add multiple directories.\n                                    Use \"default\" to search the default plugin\n                                    directories (default)\n    --no-plugin-dirs                Clear plugin directories to search,\n                                    including defaults and those provided by\n                                    previous --plugin-dirs\n    --js-runtimes RUNTIME[:PATH]    Additional JavaScript runtime to enable,\n                                    with an optional location for the runtime\n                                    (either the path to the binary or its\n                                    containing directory). This option can be\n                                    used multiple times to enable multiple\n                                    runtimes. Supported runtimes are (in order\n                                    of priority, from highest to lowest): deno,\n                                    node, quickjs, bun. Only \"deno\" is enabled\n                                    by default. The highest priority runtime\n                                    that is both enabled and available will be\n                                    used. In order to use a lower priority\n                                    runtime when \"deno\" is available, --no-js-\n                                    runtimes needs to be passed before enabling\n                                    other runtimes\n    --no-js-runtimes                Clear JavaScript runtimes to enable,\n                                    including defaults and those provided by\n                                    previous --js-runtimes\n    --remote-components COMPONENT   Remote components to allow yt-dlp to fetch\n                                    when required. This option is currently not\n                                    needed if you are using an official\n                                    executable or have the requisite version of\n                                    the yt-dlp-ejs package installed. You can\n                                    use this option multiple times to allow\n                                    multiple components. Supported values:\n                                    ejs:npm (external JavaScript components from\n                                    npm), ejs:github (external JavaScript\n                                    components from yt-dlp-ejs GitHub). By\n                                    default, no remote components are allowed\n    --no-remote-components          Disallow fetching of all remote components,\n                                    including any previously allowed by\n                                    --remote-components or defaults.\n    --flat-playlist                 Do not extract a playlist's URL result\n                                    entries; some entry metadata may be missing\n                                    and downloading may be bypassed\n    --no-flat-playlist              Fully extract the videos of a playlist\n                                    (default)\n    --live-from-start               Download livestreams from the start.\n                                    Currently experimental and only supported\n                                    for YouTube, Twitch, and TVer\n    --no-live-from-start            Download livestreams from the current time\n                                    (default)\n    --wait-for-video MIN[-MAX]      Wait for scheduled streams to become\n                                    available. Pass the minimum number of\n                                    seconds (or range) to wait between retries\n    --no-wait-for-video             Do not wait for scheduled streams (default)\n    --mark-watched                  Mark videos watched (even with --simulate)\n    --no-mark-watched               Do not mark videos watched (default)\n    --color [STREAM:]POLICY         Whether to emit color codes in output,\n                                    optionally prefixed by the STREAM (stdout or\n                                    stderr) to apply the setting to. Can be one\n                                    of \"always\", \"auto\" (default), \"never\", or\n                                    \"no_color\" (use non color terminal\n                                    sequences). Use \"auto-tty\" or \"no_color-tty\"\n                                    to decide based on terminal support only.\n                                    Can be used multiple times\n    --compat-options OPTS           Options that can help keep compatibility\n                                    with youtube-dl or youtube-dlc\n                                    configurations by reverting some of the\n                                    changes made in yt-dlp. See \"Differences in\n                                    default behavior\" for details\n    --alias ALIASES OPTIONS         Create aliases for an option string. Unless\n                                    an alias starts with a dash \"-\", it is\n                                    prefixed with \"--\". Arguments are parsed\n                                    according to the Python string formatting\n                                    mini-language. E.g. --alias get-audio,-X \"-S\n                                    aext:{0},abr -x --audio-format {0}\" creates\n                                    options \"--get-audio\" and \"-X\" that takes an\n                                    argument (ARG0) and expands to \"-S\n                                    aext:ARG0,abr -x --audio-format ARG0\". All\n                                    defined aliases are listed in the --help\n                                    output. Alias options can trigger more\n                                    aliases; so be careful to avoid defining\n                                    recursive options. As a safety measure, each\n                                    alias may be triggered a maximum of 100\n                                    times. This option can be used multiple times\n    -t, --preset-alias PRESET       Applies a predefined set of options. e.g.\n                                    --preset-alias mp3. The following presets\n                                    are available: mp3, aac, mp4, mkv, sleep.\n                                    See the \"Preset Aliases\" section at the end\n                                    for more info. This option can be used\n                                    multiple times\n\n## Network Options:\n    --proxy URL                     Use the specified HTTP/HTTPS/SOCKS proxy. To\n                                    enable SOCKS proxy, specify a proper scheme,\n                                    e.g. socks5://user:pass@127.0.0.1:1080/.\n                                    Pass in an empty string (--proxy \"\") for\n                                    direct connection\n    --socket-timeout SECONDS        Time to wait before giving up, in seconds\n    --source-address IP             Client-side IP address to bind to\n    --impersonate CLIENT[:OS]       Client to impersonate for requests. E.g.\n                                    chrome, chrome-110, chrome:windows-10. Pass\n                                    --impersonate=\"\" to impersonate any client.\n                                    Note that forcing impersonation for all\n                                    requests may have a detrimental impact on\n                                    download speed and stability\n    --list-impersonate-targets      List available clients to impersonate.\n    -4, --force-ipv4                Make all connections via IPv4\n    -6, --force-ipv6                Make all connections via IPv6\n    --enable-file-urls              Enable file:// URLs. This is disabled by\n                                    default for security reasons.\n\n## Geo-restriction:\n    --geo-verification-proxy URL    Use this proxy to verify the IP address for\n                                    some geo-restricted sites. The default proxy\n                                    specified by --proxy (or none, if the option\n                                    is not present) is used for the actual\n                                    downloading\n    --xff VALUE                     How to fake X-Forwarded-For HTTP header to\n                                    try bypassing geographic restriction. One of\n                                    \"default\" (only when known to be useful),\n                                    \"never\", an IP block in CIDR notation, or a\n                                    two-letter ISO 3166-2 country code\n\n## Video Selection:\n    -I, --playlist-items ITEM_SPEC  Comma-separated playlist_index of the items\n                                    to download. You can specify a range using\n                                    \"[START]:[STOP][:STEP]\". For backward\n                                    compatibility, START-STOP is also supported.\n                                    Use negative indices to count from the right\n                                    and negative STEP to download in reverse\n                                    order. E.g. \"-I 1:3,7,-5::2\" used on a\n                                    playlist of size 15 will download the items\n                                    at index 1,2,3,7,11,13,15\n    --min-filesize SIZE             Abort download if filesize is smaller than\n                                    SIZE, e.g. 50k or 44.6M\n    --max-filesize SIZE             Abort download if filesize is larger than\n                                    SIZE, e.g. 50k or 44.6M\n    --date DATE                     Download only videos uploaded on this date.\n                                    The date can be \"YYYYMMDD\" or in the format \n                                    [now|today|yesterday][-N[day|week|month|year]].\n                                    E.g. \"--date today-2weeks\" downloads only\n                                    videos uploaded on the same day two weeks ago\n    --datebefore DATE               Download only videos uploaded on or before\n                                    this date. The date formats accepted are the\n                                    same as --date\n    --dateafter DATE                Download only videos uploaded on or after\n                                    this date. The date formats accepted are the\n                                    same as --date\n    --match-filters FILTER          Generic video filter. Any \"OUTPUT TEMPLATE\"\n                                    field can be compared with a number or a\n                                    string using the operators defined in\n                                    \"Filtering Formats\". You can also simply\n                                    specify a field to match if the field is\n                                    present, use \"!field\" to check if the field\n                                    is not present, and \"\u0026\" to check multiple\n                                    conditions. Use a \"\\\" to escape \"\u0026\" or\n                                    quotes if needed. If used multiple times,\n                                    the filter matches if at least one of the\n                                    conditions is met. E.g. --match-filters\n                                    !is_live --match-filters \"like_count\u003e?100 \u0026\n                                    description~='(?i)\\bcats \\\u0026 dogs\\b'\" matches\n                                    only videos that are not live OR those that\n                                    have a like count more than 100 (or the like\n                                    field is not available) and also has a\n                                    description that contains the phrase \"cats \u0026\n                                    dogs\" (caseless). Use \"--match-filters -\" to\n                                    interactively ask whether to download each\n                                    video\n    --no-match-filters              Do not use any --match-filters (default)\n    --break-match-filters FILTER    Same as \"--match-filters\" but stops the\n                                    download process when a video is rejected\n    --no-break-match-filters        Do not use any --break-match-filters (default)\n    --no-playlist                   Download only the video, if the URL refers\n                                    to a video and a playlist\n    --yes-playlist                  Download the playlist, if the URL refers to\n                                    a video and a playlist\n    --age-limit YEARS               Download only videos suitable for the given\n                                    age\n    --download-archive FILE         Download only videos not listed in the\n                                    archive file. Record the IDs of all\n                                    downloaded videos in it\n    --no-download-archive           Do not use archive file (default)\n    --max-downloads NUMBER          Abort after downloading NUMBER files\n    --break-on-existing             Stop the download process when encountering\n                                    a file that is in the archive supplied with\n                                    the --download-archive option\n    --no-break-on-existing          Do not stop the download process when\n                                    encountering a file that is in the archive\n                                    (default)\n    --break-per-input               Alters --max-downloads, --break-on-existing,\n                                    --break-match-filters, and autonumber to\n                                    reset per input URL\n    --no-break-per-input            --break-on-existing and similar options\n                                    terminates the entire download queue\n    --skip-playlist-after-errors N  Number of allowed failures until the rest of\n                                    the playlist is skipped\n\n## Download Options:\n    -N, --concurrent-fragments N    Number of fragments of a dash/hlsnative\n                                    video that should be downloaded concurrently\n                                    (default is 1)\n    -r, --limit-rate RATE           Maximum download rate in bytes per second,\n                                    e.g. 50K or 4.2M\n    --throttled-rate RATE           Minimum download rate in bytes per second\n                                    below which throttling is assumed and the\n                                    video data is re-extracted, e.g. 100K\n    -R, --retries RETRIES           Number of retries (default is 10), or\n                                    \"infinite\"\n    --file-access-retries RETRIES   Number of times to retry on file access\n                                    error (default is 3), or \"infinite\"\n    --fragment-retries RETRIES      Number of retries for a fragment (default is\n                                    10), or \"infinite\" (DASH, hlsnative and ISM)\n    --retry-sleep [TYPE:]EXPR       Time to sleep between retries in seconds\n                                    (optionally) prefixed by the type of retry\n                                    (http (default), fragment, file_access,\n                                    extractor) to apply the sleep to. EXPR can\n                                    be a number, linear=START[:END[:STEP=1]] or\n                                    exp=START[:END[:BASE=2]]. This option can be\n                                    used multiple times to set the sleep for the\n                                    different retry types, e.g. --retry-sleep\n                                    linear=1::2 --retry-sleep fragment:exp=1:20\n    --skip-unavailable-fragments    Skip unavailable fragments for DASH,\n                                    hlsnative and ISM downloads (default)\n                                    (Alias: --no-abort-on-unavailable-fragments)\n    --abort-on-unavailable-fragments\n                                    Abort download if a fragment is unavailable\n                                    (Alias: --no-skip-unavailable-fragments)\n    --keep-fragments                Keep downloaded fragments on disk after\n                                    downloading is finished\n    --no-keep-fragments             Delete downloaded fragments after\n                                    downloading is finished (default)\n    --buffer-size SIZE              Size of download buffer, e.g. 1024 or 16K\n                                    (default is 1024)\n    --resize-buffer                 The buffer size is automatically resized\n                                    from an initial value of --buffer-size\n                                    (default)\n    --no-resize-buffer              Do not automatically adjust the buffer size\n    --http-chunk-size SIZE          Size of a chunk for chunk-based HTTP\n                                    downloading, e.g. 10485760 or 10M (default\n                                    is disabled). May be useful for bypassing\n                                    bandwidth throttling imposed by a webserver\n                                    (experimental)\n    --playlist-random               Download playlist videos in random order\n    --lazy-playlist                 Process entries in the playlist as they are\n                                    received. This disables n_entries,\n                                    --playlist-random and --playlist-reverse\n    --no-lazy-playlist              Process videos in the playlist only after\n                                    the entire playlist is parsed (default)\n    --hls-use-mpegts                Use the mpegts container for HLS videos;\n                                    allowing some players to play the video\n                                    while downloading, and reducing the chance\n                                    of file corruption if download is\n                                    interrupted. This is enabled by default for\n                                    live streams\n    --no-hls-use-mpegts             Do not use the mpegts container for HLS\n                                    videos. This is default when not downloading\n                                    live streams\n    --download-sections REGEX       Download only chapters that match the\n                                    regular expression. A \"*\" prefix denotes\n                                    time-range instead of chapter. Negative\n                                    timestamps are calculated from the end.\n                                    \"*from-url\" can be used to download between\n                                    the \"start_time\" and \"end_time\" extracted\n                                    from the URL. Needs ffmpeg. This option can\n                                    be used multiple times to download multiple\n                                    sections, e.g. --download-sections\n                                    \"*10:15-inf\" --download-sections \"intro\"\n    --downloader [PROTO:]NAME       Name or path of the external downloader to\n                                    use (optionally) prefixed by the protocols\n                                    (http, ftp, m3u8, dash, rstp, rtmp, mms) to\n                                    use it for. Currently supports native,\n                                    aria2c, axel, curl, ffmpeg, httpie, wget.\n                                    You can use this option multiple times to\n                                    set different downloaders for different\n                                    protocols. E.g. --downloader aria2c\n                                    --downloader \"dash,m3u8:native\" will use\n                                    aria2c for http/ftp downloads, and the\n                                    native downloader for dash/m3u8 downloads\n                                    (Alias: --external-downloader)\n    --downloader-args NAME:ARGS     Give these arguments to the external\n                                    downloader. Specify the downloader name and\n                                    the arguments separated by a colon \":\". For\n                                    ffmpeg, arguments can be passed to different\n                                    positions using the same syntax as\n                                    --postprocessor-args. You can use this\n                                    option multiple times to give different\n                                    arguments to different downloaders (Alias:\n                                    --external-downloader-args)\n\n## Filesystem Options:\n    -a, --batch-file FILE           File containing URLs to download (\"-\" for\n                                    stdin), one URL per line. Lines starting\n                                    with \"#\", \";\" or \"]\" are considered as\n                                    comments and ignored\n    --no-batch-file                 Do not read URLs from batch file (default)\n    -P, --paths [TYPES:]PATH        The paths where the files should be\n                                    downloaded. Specify the type of file and the\n                                    path separated by a colon \":\". All the same\n                                    TYPES as --output are supported.\n                                    Additionally, you can also provide \"home\"\n                                    (default) and \"temp\" paths. All intermediary\n                                    files are first downloaded to the temp path\n                                    and then the final files are moved over to\n                                    the home path after download is finished.\n                                    This option is ignored if --output is an\n                                    absolute path\n    -o, --output [TYPES:]TEMPLATE   Output filename template; see \"OUTPUT\n                                    TEMPLATE\" for details\n    --output-na-placeholder TEXT    Placeholder for unavailable fields in\n                                    --output (default: \"NA\")\n    --restrict-filenames            Restrict filenames to only ASCII characters,\n                                    and avoid \"\u0026\" and spaces in filenames\n    --no-restrict-filenames         Allow Unicode characters, \"\u0026\" and spaces in\n                                    filenames (default)\n    --windows-filenames             Force filenames to be Windows-compatible\n    --no-windows-filenames          Sanitize filenames only minimally\n    --trim-filenames LENGTH         Limit the filename length (excluding\n                                    extension) to the specified number of\n                                    characters\n    -w, --no-overwrites             Do not overwrite any files\n    --force-overwrites              Overwrite all video and metadata files. This\n                                    option includes --no-continue\n    --no-force-overwrites           Do not overwrite the video, but overwrite\n                                    related files (default)\n    -c, --continue                  Resume partially downloaded files/fragments\n                                    (default)\n    --no-continue                   Do not resume partially downloaded\n                                    fragments. If the file is not fragmented,\n                                    restart download of the entire file\n    --part                          Use .part files instead of writing directly\n                                    into output file (default)\n    --no-part                       Do not use .part files - write directly into\n                                    output file\n    --mtime                         Use the Last-modified header to set the file\n                                    modification time\n    --no-mtime                      Do not use the Last-modified header to set\n                                    the file modification time (default)\n    --write-description             Write video description to a .description file\n    --no-write-description          Do not write video description (default)\n    --write-info-json               Write video metadata to a .info.json file\n                                    (this may contain personal information)\n    --no-write-info-json            Do not write video metadata (default)\n    --write-playlist-metafiles      Write playlist metadata in addition to the\n                                    video metadata when using --write-info-json,\n                                    --write-description etc. (default)\n    --no-write-playlist-metafiles   Do not write playlist metadata when using\n                                    --write-info-json, --write-description etc.\n    --clean-info-json               Remove some internal metadata such as\n                                    filenames from the infojson (default)\n    --no-clean-info-json            Write all fields to the infojson\n    --write-comments                Retrieve video comments to be placed in the\n                                    infojson. The comments are fetched even\n                                    without this option if the extraction is\n                                    known to be quick (Alias: --get-comments)\n    --no-write-comments             Do not retrieve video comments unless the\n                                    extraction is known to be quick (Alias:\n                                    --no-get-comments)\n    --load-info-json FILE           JSON file containing the video information\n                                    (created with the \"--write-info-json\" option)\n    --cookies FILE                  Netscape formatted file to read cookies from\n                                    and dump cookie jar in\n    --no-cookies                    Do not read/dump cookies from/to file\n                                    (default)\n    --cookies-from-browser BROWSER[+KEYRING][:PROFILE][::CONTAINER]\n                                    The name of the browser to load cookies\n                                    from. Currently supported browsers are:\n                                    brave, chrome, chromium, edge, firefox,\n                                    opera, safari, vivaldi, whale. Optionally,\n                                    the KEYRING used for decrypting Chromium\n                                    cookies on Linux, the name/path of the\n                                    PROFILE to load cookies from, and the\n                                    CONTAINER name (if Firefox) (\"none\" for no\n                                    container) can be given with their\n                                    respective separators. By default, all\n                                    containers of the most recently accessed\n                                    profile are used. Currently supported\n                                    keyrings are: basictext, gnomekeyring,\n                                    kwallet, kwallet5, kwallet6\n    --no-cookies-from-browser       Do not load cookies from browser (default)\n    --cache-dir DIR                 Location in the filesystem where yt-dlp can\n                                    store some downloaded information (such as\n                                    client ids and signatures) permanently. By\n                                    default ${XDG_CACHE_HOME}/yt-dlp\n    --no-cache-dir                  Disable filesystem caching\n    --rm-cache-dir                  Delete all filesystem cache files\n\n## Thumbnail Options:\n    --write-thumbnail               Write thumbnail image to disk\n    --no-write-thumbnail            Do not write thumbnail image to disk (default)\n    --write-all-thumbnails          Write all thumbnail image formats to disk\n    --list-thumbnails               List available thumbnails of each video.\n                                    Simulate unless --no-simulate is used\n\n## Internet Shortcut Options:\n    --write-link                    Write an internet shortcut file, depending\n                                    on the current platform (.url, .webloc or\n                                    .desktop). The URL may be cached by the OS\n    --write-url-link                Write a .url Windows internet shortcut. The\n                                    OS caches the URL based on the file path\n    --write-webloc-link             Write a .webloc macOS internet shortcut\n    --write-desktop-link            Write a .desktop Linux internet shortcut\n\n## Verbosity and Simulation Options:\n    -q, --quiet                     Activate quiet mode. If used with --verbose,\n                                    print the log to stderr\n    --no-quiet                      Deactivate quiet mode. (Default)\n    --no-warnings                   Ignore warnings\n    -s, --simulate                  Do not download the video and do not write\n                                    anything to disk\n    --no-simulate                   Download the video even if printing/listing\n                                    options are used\n    --ignore-no-formats-error       Ignore \"No video formats\" error. Useful for\n                                    extracting metadata even if the videos are\n                                    not actually available for download\n                                    (experimental)\n    --no-ignore-no-formats-error    Throw error when no downloadable video\n                                    formats are found (default)\n    --skip-download                 Do not download the video but write all\n                                    related files (Alias: --no-download)\n    -O, --print [WHEN:]TEMPLATE     Field name or output template to print to\n                                    screen, optionally prefixed with when to\n                                    print it, separated by a \":\". Supported\n                                    values of \"WHEN\" are the same as that of\n                                    --use-postprocessor (default: video).\n                                    Implies --quiet. Implies --simulate unless\n                                    --no-simulate or later stages of WHEN are\n                                    used. This option can be used multiple times\n    --print-to-file [WHEN:]TEMPLATE FILE\n                                    Append given template to the file. The\n                                    values of WHEN and TEMPLATE are the same as\n                                    that of --print. FILE uses the same syntax\n                                    as the output template. This option can be\n                                    used multiple times\n    -j, --dump-json                 Quiet, but print JSON information for each\n                                    video. Simulate unless --no-simulate is\n                                    used. See \"OUTPUT TEMPLATE\" for a\n                                    description of available keys\n    -J, --dump-single-json          Quiet, but print JSON information for each\n                                    URL or infojson passed. Simulate unless\n                                    --no-simulate is used. If the URL refers to\n                                    a playlist, the whole playlist information\n                                    is dumped in a single line\n    --force-write-archive           Force download archive entries to be written\n                                    as far as no errors occur, even if -s or\n                                    another simulation option is used (Alias:\n                                    --force-download-archive)\n    --newline                       Output progress bar as new lines\n    --no-progress                   Do not print progress bar\n    --progress                      Show progress bar, even if in quiet mode\n    --console-title                 Display progress in console titlebar\n    --progress-template [TYPES:]TEMPLATE\n                                    Template for progress outputs, optionally\n                                    prefixed with one of \"download:\" (default),\n                                    \"download-title:\" (the console title),\n                                    \"postprocess:\",  or \"postprocess-title:\".\n                                    The video's fields are accessible under the\n                                    \"info\" key and the progress attributes are\n                                    accessible under \"progress\" key. E.g.\n                                    --console-title --progress-template\n                                    \"download-title:%(info.id)s-%(progress.eta)s\"\n    --progress-delta SECONDS        Time between progress output (default: 0)\n    -v, --verbose                   Print various debugging information\n    --dump-pages                    Print downloaded pages encoded using base64\n                                    to debug problems (very verbose)\n    --write-pages                   Write downloaded intermediary pages to files\n                                    in the current directory to debug problems\n    --print-traffic                 Display sent and read HTTP traffic\n\n## Workarounds:\n    --encoding ENCODING             Force the specified encoding (experimental)\n    --legacy-server-connect         Explicitly allow HTTPS connection to servers\n                                    that do not support RFC 5746 secure\n                                    renegotiation\n    --no-check-certificates         Suppress HTTPS certificate validation\n    --prefer-insecure               Use an unencrypted connection to retrieve\n                                    information about the video (Currently\n                                    supported only for YouTube)\n    --add-headers FIELD:VALUE       Specify a custom HTTP header and its value,\n                                    separated by a colon \":\". You can use this\n                                    option multiple times\n    --bidi-workaround               Work around terminals that lack\n                                    bidirectional text support. Requires bidiv\n                                    or fribidi executable in PATH\n    --sleep-requests SECONDS        Number of seconds to sleep between requests\n                                    during data extraction\n    --sleep-interval SECONDS        Number of seconds to sleep before each\n                                    download. This is the minimum time to sleep\n                                    when used along with --max-sleep-interval\n                                    (Alias: --min-sleep-interval)\n    --max-sleep-interval SECONDS    Maximum number of seconds to sleep. Can only\n                                    be used along with --min-sleep-interval\n    --sleep-subtitles SECONDS       Number of seconds to sleep before each\n                                    subtitle download\n\n## Video Format Options:\n    -f, --format FORMAT             Video format code, see \"FORMAT SELECTION\"\n                                    for more details\n    -S, --format-sort SORTORDER     Sort the formats by the fields given, see\n                                    \"Sorting Formats\" for more details\n    --format-sort-reset             Disregard previous user specified sort order\n                                    and reset to the default\n    --format-sort-force             Force user specified sort order to have\n                                    precedence over all fields, see \"Sorting\n                                    Formats\" for more details (Alias: --S-force)\n    --no-format-sort-force          Some fields have precedence over the user\n                                    specified sort order (default)\n    --video-multistreams            Allow multiple video streams to be merged\n                                    into a single file\n    --no-video-multistreams         Only one video stream is downloaded for each\n                                    output file (default)\n    --audio-multistreams            Allow multiple audio streams to be merged\n                                    into a single file\n    --no-audio-multistreams         Only one audio stream is downloaded for each\n                                    output file (default)\n    --prefer-free-formats           Prefer video formats with free containers\n                                    over non-free ones of the same quality. Use\n                                    with \"-S ext\" to strictly prefer free\n                                    containers irrespective of quality\n    --no-prefer-free-formats        Don't give any special preference to free\n                                    containers (default)\n    --check-formats                 Make sure formats are selected only from\n                                    those that are actually downloadable\n    --check-all-formats             Check all formats for whether they are\n                                    actually downloadable\n    --no-check-formats              Do not check that the formats are actually\n                                    downloadable\n    -F, --list-formats              List available formats of each video.\n                                    Simulate unless --no-simulate is used\n    --merge-output-format FORMAT    Containers that may be used when merging\n                                    formats, separated by \"/\", e.g. \"mp4/mkv\".\n                                    Ignored if no merge is required. (currently\n                                    supported: avi, flv, mkv, mov, mp4, webm)\n\n## Subtitle Options:\n    --write-subs                    Write subtitle file\n    --no-write-subs                 Do not write subtitle file (default)\n    --write-auto-subs               Write automatically generated subtitle file\n                                    (Alias: --write-automatic-subs)\n    --no-write-auto-subs            Do not write auto-generated subtitles\n                                    (default) (Alias: --no-write-automatic-subs)\n    --list-subs                     List available subtitles of each video.\n                                    Simulate unless --no-simulate is used\n    --sub-format FORMAT             Subtitle format; accepts formats preference\n                                    separated by \"/\", e.g. \"srt\" or \"ass/srt/best\"\n    --sub-langs LANGS               Languages of the subtitles to download (can\n                                    be regex) or \"all\" separated by commas, e.g.\n                                    --sub-langs \"en.*,ja\" (where \"en.*\" is a\n                                    regex pattern that matches \"en\" followed by\n                                    0 or more of any character). You can prefix\n                                    the language code with a \"-\" to exclude it\n                                    from the requested languages, e.g. --sub-\n                                    langs all,-live_chat. Use --list-subs for a\n                                    list of available language tags\n\n## Authentication Options:\n    -u, --username USERNAME         Login with this account ID\n    -p, --password PASSWORD         Account password. If this option is left\n                                    out, yt-dlp will ask interactively\n    -2, --twofactor TWOFACTOR       Two-factor authentication code\n    -n, --netrc                     Use .netrc authentication data\n    --netrc-location PATH           Location of .netrc authentication data;\n                                    either the path or its containing directory.\n                                    Defaults to ~/.netrc\n    --netrc-cmd NETRC_CMD           Command to execute to get the credentials\n                                    for an extractor.\n    --video-password PASSWORD       Video-specific password\n    --ap-mso MSO                    Adobe Pass multiple-system operator (TV\n                                    provider) identifier, use --ap-list-mso for\n                                    a list of available MSOs\n    --ap-username USERNAME          Multiple-system operator account login\n    --ap-password PASSWORD          Multiple-system operator account password.\n                                    If this option is left out, yt-dlp will ask\n                                    interactively\n    --ap-list-mso                   List all supported multiple-system operators\n    --client-certificate CERTFILE   Path to client certificate file in PEM\n                                    format. May include the private key\n    --client-certificate-key KEYFILE\n                                    Path to private key file for client\n                                    certificate\n    --client-certificate-password PASSWORD\n                                    Password for client certificate private key,\n                                    if encrypted. If not provided, and the key\n                                    is encrypted, yt-dlp will ask interactively\n\n## Post-Processing Options:\n    -x, --extract-audio             Convert video files to audio-only files\n                                    (requires ffmpeg and ffprobe)\n    --audio-format FORMAT           Format to convert the audio to when -x is\n                                    used. (currently supported: best (default),\n                                    aac, alac, flac, m4a, mp3, opus, vorbis,\n                                    wav). You can specify multiple rules using\n                                    similar syntax as --remux-video\n    --audio-quality QUALITY         Specify ffmpeg audio quality to use when\n                                    converting the audio with -x. Insert a value\n                                    between 0 (best) and 10 (worst) for VBR or a\n                                    specific bitrate like 128K (default 5)\n    --remux-video FORMAT            Remux the video into another container if\n                                    necessary (currently supported: avi, flv,\n                                    gif, mkv, mov, mp4, webm, aac, aiff, alac,\n                                    flac, m4a, mka, mp3, ogg, opus, vorbis,\n                                    wav). If the target container does not\n                                    support the video/audio codec, remuxing will\n                                    fail. You can specify multiple rules; e.g.\n                                    \"aac\u003em4a/mov\u003emp4/mkv\" will remux aac to m4a,\n                                    mov to mp4 and anything else to mkv\n    --recode-video FORMAT           Re-encode the video into another format if\n                                    necessary. The syntax and supported formats\n                                    are the same as --remux-video\n    --postprocessor-args NAME:ARGS  Give these arguments to the postprocessors.\n                                    Specify the postprocessor/executable name\n                                    and the arguments separated by a colon \":\"\n                                    to give the argument to the specified\n                                    postprocessor/executable. Supported PP are:\n                                    Merger, ModifyChapters, SplitChapters,\n                                    ExtractAudio, VideoRemuxer, VideoConvertor,\n                                    Metadata, EmbedSubtitle, EmbedThumbnail,\n                                    SubtitlesConvertor, ThumbnailsConvertor,\n                                    FixupStretched, FixupM4a, FixupM3u8,\n                                    FixupTimestamp and FixupDuration. The\n                                    supported executables are: AtomicParsley,\n                                    FFmpeg and FFprobe. You can also specify\n                                    \"PP+EXE:ARGS\" to give the arguments to the\n                                    specified executable only when being used by\n                                    the specified postprocessor. Additionally,\n                                    for ffmpeg/ffprobe, \"_i\"/\"_o\" can be\n                                    appended to the prefix optionally followed\n                                    by a number to pass the argument before the\n                                    specified input/output file, e.g. --ppa\n                                    \"Merger+ffmpeg_i1:-v quiet\". You can use\n                                    this option multiple times to give different\n                                    arguments to different postprocessors.\n                                    (Alias: --ppa)\n    -k, --keep-video                Keep the intermediate video file on disk\n                                    after post-processing\n    --no-keep-video                 Delete the intermediate video file after\n                                    post-processing (default)\n    --post-overwrites               Overwrite post-processed files (default)\n    --no-post-overwrites            Do not overwrite post-processed files\n    --embed-subs                    Embed subtitles in the video (only for mp4,\n                                    webm and mkv videos)\n    --no-embed-subs                 Do not embed subtitles (default)\n    --embed-thumbnail               Embed thumbnail in the video as cover art\n    --no-embed-thumbnail            Do not embed thumbnail (default)\n    --embed-metadata                Embed metadata to the video file. Also\n                                    embeds chapters/infojson if present unless\n                                    --no-embed-chapters/--no-embed-info-json are\n                                    used (Alias: --add-metadata)\n    --no-embed-metadata             Do not add metadata to file (default)\n                                    (Alias: --no-add-metadata)\n    --embed-chapters                Add chapter markers to the video file\n                                    (Alias: --add-chapters)\n    --no-embed-chapters             Do not add chapter markers (default) (Alias:\n                                    --no-add-chapters)\n    --embed-info-json               Embed the infojson as an attachment to\n                                    mkv/mka video files\n    --no-embed-info-json            Do not embed the infojson as an attachment\n                                    to the video file\n    --parse-metadata [WHEN:]FROM:TO\n                                    Parse additional metadata like title/artist\n                                    from other fields; see \"MODIFYING METADATA\"\n                                    for details. Supported values of \"WHEN\" are\n                                    the same as that of --use-postprocessor\n                                    (default: pre_process)\n    --replace-in-metadata [WHEN:]FIELDS REGEX REPLACE\n                                    Replace text in a metadata field using the\n                                    given regex. This option can be used\n                                    multiple times. Supported values of \"WHEN\"\n                                    are the same as that of --use-postprocessor\n                                    (default: pre_process)\n    --xattrs                        Write metadata to the video file's xattrs\n                                    (using Dublin Core and XDG standards)\n    --concat-playlist POLICY        Concatenate videos in a playlist. One of\n                                    \"never\", \"always\", or \"multi_video\"\n                                    (default; only when the videos form a single\n                                    show). All the video files must have the\n                                    same codecs and number of streams to be\n                                    concatenable. The \"pl_video:\" prefix can be\n                                    used with \"--paths\" and \"--output\" to set\n                                    the output filename for the concatenated\n                                    files. See \"OUTPUT TEMPLATE\" for details\n    --fixup POLICY                  Automatically correct known faults of the\n                                    file. One of never (do nothing), warn (only\n                                    emit a warning), detect_or_warn (the\n                                    default; fix the file if we can, warn\n                                    otherwise), force (try fixing even if the\n                                    file already exists)\n    --ffmpeg-location PATH          Location of the ffmpeg binary; either the\n                                    path to the binary or its containing directory\n    --exec [WHEN:]CMD               Execute a command, optionally prefixed with\n                                    when to execute it, separated by a \":\".\n                                    Supported values of \"WHEN\" are the same as\n                                    that of --use-postprocessor (default:\n                                    after_move). The same syntax as the output\n                                    template can be used to pass any field as\n                                    arguments to the command. If no fields are\n                                    passed, %(filepath,_filename|)q is appended\n                                    to the end of the command. This option can\n                                    be used multiple times\n    --no-exec                       Remove any previously defined --exec\n    --convert-subs FORMAT           Convert the subtitles to another format\n                                    (currently supported: ass, lrc, srt, vtt).\n                                    Use \"--convert-subs none\" to disable\n                                    conversion (default) (Alias: --convert-\n                                    subtitles)\n    --convert-thumbnails FORMAT     Convert the thumbnails to another format\n                                    (currently supported: jpg, png, webp). You\n                                    can specify multiple rules using similar\n                                    syntax as \"--remux-video\". Use \"--convert-\n                                    thumbnails none\" to disable conversion\n                                    (default)\n    --split-chapters                Split video into multiple files based on\n                                    internal chapters. The \"chapter:\" prefix can\n                                    be used with \"--paths\" and \"--output\" to set\n                                    the output filename for the split files. See\n                                    \"OUTPUT TEMPLATE\" for details\n    --no-split-chapters             Do not split video based on chapters (default)\n    --remove-chapters REGEX         Remove chapters whose title matches the\n                                    given regular expression. The syntax is the\n                                    same as --download-sections. This option can\n                                    be used multiple times\n    --no-remove-chapters            Do not remove any chapters from the file\n                                    (default)\n    --force-keyframes-at-cuts       Force keyframes at cuts when\n                                    downloading/splitting/removing sections.\n                                    This is slow due to needing a re-encode, but\n                                    the resulting video may have fewer artifacts\n                                    around the cuts\n    --no-force-keyframes-at-cuts    Do not force keyframes around the chapters\n                                    when cutting/splitting (default)\n    --use-postprocessor NAME[:ARGS]\n                                    The (case-sensitive) name of plugin\n                                    postprocessors to be enabled, and\n                                    (optionally) arguments to be passed to it,\n                                    separated by a colon \":\". ARGS are a\n                                    semicolon \";\" delimited list of NAME=VALUE.\n                                    The \"when\" argument determines when the\n                                    postprocessor is invoked. It can be one of\n                                    \"pre_process\" (after video extraction),\n                                    \"after_filter\" (after video passes filter),\n                                    \"video\" (after --format; before\n                                    --print/--output), \"before_dl\" (before each\n                                    video download), \"post_process\" (after each\n                                    video download; default), \"after_move\"\n                                    (after moving the video file to its final\n                                    location), \"after_video\" (after downloading\n                                    and processing all formats of a video), or\n                                    \"playlist\" (at end of playlist). This option\n                                    can be used multiple times to add different\n                                    postprocessors\n\n## SponsorBlock Options:\nMake chapter entries for, or remove various segments (sponsor,\n    introductions, etc.) from downloaded YouTube videos using the\n    [SponsorBlock API](https://sponsor.ajay.app)\n\n    --sponsorblock-mark CATS        SponsorBlock categories to create chapters\n                                    for, separated by commas. Available\n                                    categories are sponsor, intro, outro,\n                                    selfpromo, preview, filler, interaction,\n                                    music_offtopic, hook, poi_highlight,\n                                    chapter, all and default (=all). You can\n                                    prefix the category with a \"-\" to exclude\n                                    it. See [1] for descriptions of the\n                                    categories. E.g. --sponsorblock-mark\n                                    all,-preview\n                                    [1] https://wiki.sponsor.ajay.app/w/Segment_Categories\n    --sponsorblock-remove CATS      SponsorBlock categories to be removed from\n                                    the video file, separated by commas. If a\n                                    category is present in both mark and remove,\n                                    remove takes precedence. The syntax and\n                                    available categories are the same as for\n                                    --sponsorblock-mark except that \"default\"\n                                    refers to \"all,-filler\" and poi_highlight,\n                                    chapter are not available\n    --sponsorblock-chapter-title TEMPLATE\n                                    An output template for the title of the\n                                    SponsorBlock chapters created by\n                                    --sponsorblock-mark. The only available\n                                    fields are start_time, end_time, category,\n                                    categories, name, category_names. Defaults\n                                    to \"[SponsorBlock]: %(category_names)l\"\n    --no-sponsorblock               Disable both --sponsorblock-mark and\n                                    --sponsorblock-remove\n    --sponsorblock-api URL          SponsorBlock API location, defaults to\n                                    https://sponsor.ajay.app\n\n## Extractor Options:\n    --extractor-retries RETRIES     Number of retries for known extractor errors\n                                    (default is 3), or \"infinite\"\n    --allow-dynamic-mpd             Process dynamic DASH manifests (default)\n                                    (Alias: --no-ignore-dynamic-mpd)\n    --ignore-dynamic-mpd            Do not process dynamic DASH manifests\n                                    (Alias: --no-allow-dynamic-mpd)\n    --hls-split-discontinuity       Split HLS playlists to different formats at\n                                    discontinuities such as ad breaks\n    --no-hls-split-discontinuity    Do not split HLS playlists into different\n                                    formats at discontinuities such as ad breaks\n                                    (default)\n    --extractor-args IE_KEY:ARGS    Pass ARGS arguments to the IE_KEY extractor.\n                                    See \"EXTRACTOR ARGUMENTS\" for details. You\n                                    can use this option multiple times to give\n                                    arguments for different extractors\n\n## Preset Aliases:\nPredefined aliases for convenience and ease of use. Note that future\n    versions of yt-dlp may add or adjust presets, but the existing preset\n    names will not be changed or removed\n\n    -t mp3                          -f 'ba[acodec^=mp3]/ba/b' -x --audio-format\n                                    mp3\n\n    -t aac                          -f\n                                    'ba[acodec^=aac]/ba[acodec^=mp4a.40.]/ba/b'\n                                    -x --audio-format aac\n\n    -t mp4                          --merge-output-format mp4 --remux-video mp4\n                                    -S vcodec:h264,lang,quality,res,fps,hdr:12,a\n                                    codec:aac\n\n    -t mkv                          --merge-output-format mkv --remux-video mkv\n\n    -t sleep                        --sleep-subtitles 5 --sleep-requests 0.75\n                                    --sleep-interval 10 --max-sleep-interval 20\n\n# CONFIGURATION\n\nYou can configure yt-dlp by placing any supported command line option in a configuration file. The configuration is loaded from the following locations:\n\n1. **Main Configuration**:\n    * The file given to `--config-locations`\n1. **Portable Configuration**: (Recommended for portable installations)\n    * If using a binary, `yt-dlp.conf` in the same directory as the binary\n    * If running from source-code, `yt-dlp.conf` in the parent directory of `yt_dlp`\n1. **Home Configuration**:\n    * `yt-dlp.conf` in the home path given to `-P`\n    * If `-P` is not given, the current directory is searched\n1. **User Configuration**:\n    * `${XDG_CONFIG_HOME}/yt-dlp.conf`\n    * `${XDG_CONFIG_HOME}/yt-dlp/config` (recommended on Linux/macOS)\n    * `${XDG_CONFIG_HOME}/yt-dlp/config.txt`\n    * `${APPDATA}/yt-dlp.conf`\n    * `${APPDATA}/yt-dlp/config` (recommended on Windows)\n    * `${APPDATA}/yt-dlp/config.txt`\n    * `~/yt-dlp.conf`\n    * `~/yt-dlp.conf.txt`\n    * `~/.yt-dlp/config`\n    * `~/.yt-dlp/config.txt`\n\n    See also: [Notes about environment variables](#notes-about-environment-variables)\n1. **System Configuration**:\n    * `/etc/yt-dlp.conf`\n    * `/etc/yt-dlp/config`\n    * `/etc/yt-dlp/config.txt`\n\nE.g. with the following configuration file, yt-dlp will always extract the audio, copy the mtime, use a proxy and save all videos under `YouTube` directory in your home directory:\n```\n# Lines starting with # are comments\n\n# Always extract audio\n-x\n\n# Copy the mtime\n--mtime\n\n# Use this proxy\n--proxy 127.0.0.1:3128\n\n# Save all videos under YouTube directory in your home directory\n-o ~/YouTube/%(title)s.%(ext)s\n```\n\n**Note**: Options in a configuration file are just the same options aka switches used in regular command line calls; thus there **must be no whitespace** after `-` or `--`, e.g. `-o` or `--proxy` but not `- o` or `-- proxy`. They must also be quoted when necessary, as if it were a UNIX shell.\n\nYou can use `--ignore-config` if you want to disable all configuration files for a particular yt-dlp run. If `--ignore-config` is found inside any configuration file, no further configuration will be loaded. For example, having the option in the portable configuration file prevents loading of home, user, and system configurations. Additionally, (for backward compatibility) if `--ignore-config` is found inside the system configuration file, the user configuration is not loaded.\n\n### Configuration file encoding\n\nThe configuration files are decoded according to the UTF BOM if present, and in the encoding from system locale otherwise.\n\nIf you want your file to be decoded differently, add `# coding: ENCODING` to the beginning of the file (e.g. `# coding: shift-jis`). There must be no characters before that, even spaces or BOM.\n\n### Authentication with netrc\n\nYou may also want to configure automatic credentials storage for extractors that support authentication (by providing login and password with `--username` and `--password`) in order not to pass credentials as command line arguments on every yt-dlp execution and prevent tracking plain text passwords in the shell command history. You can achieve this using a [`.netrc` file](https://stackoverflow.com/tags/.netrc/info) on a per-extractor basis. For that, you will need to create a `.netrc` file in `--netrc-location` and restrict permissions to read/write by only you:\n```\ntouch ${HOME}/.netrc\nchmod a-rwx,u+rw ${HOME}/.netrc\n```\nAfter that, you can add credentials for an extractor in the following format, where *extractor* is the name of the extractor in lowercase:\n```\nmachine \u003cextractor\u003e login \u003cusername\u003e password \u003cpassword\u003e\n```\nE.g.\n```\nmachine youtube login myaccount@gmail.com password my_youtube_password\nmachine twitch login my_twitch_account_name password my_twitch_password\n```\nTo activate authentication with the `.netrc` file you should pass `--netrc` to yt-dlp or place it in the [configuration file](#configuration).\n\nThe default location of the .netrc file is `~` (see below).\n\nAs an alternative to using the `.netrc` file, which has the disadvantage of keeping your passwords in a plain text file, you can configure a custom shell command to provide the credentials for an extractor. This is done by providing the `--netrc-cmd` parameter, it shall output the credentials in the netrc format and return `0` on success, other values will be treated as an error. `{}` in the command will be replaced by the name of the extractor to make it possible to select the credentials for the right extractor.\n\nE.g. To use an encrypted `.netrc` file stored as `.authinfo.gpg`\n```\nyt-dlp --netrc-cmd 'gpg --decrypt ~/.authinfo.gpg' 'https://www.youtube.com/watch?v=BaW_jenozKc'\n```\n\n\n### Notes about environment variables\n* Environment variables are normally specified as `${VARIABLE}`/`$VARIABLE` on UNIX and `%VARIABLE%` on Windows; but is always shown as `${VARIABLE}` in this documentation\n* yt-dlp also allows using UNIX-style variables on Windows for path-like options; e.g. `--output`, `--config-locations`\n* If unset, `${XDG_CONFIG_HOME}` defaults to `~/.config` and `${XDG_CACHE_HOME}` to `~/.cache`\n* On Windows, `~` points to `${HOME}` if present; or, `${USERPROFILE}` or `${HOMEDRIVE}${HOMEPATH}` otherwise\n* On Windows, `${USERPROFILE}` generally points to `C:\\Users\\\u003cuser name\u003e` and `${APPDATA}` to `${USERPROFILE}\\AppData\\Roaming`\n\n# OUTPUT TEMPLATE\n\nThe `-o` option is used to indicate a template for the output file names while `-P` option is used to specify the path each type of file should be saved to.\n\n\u003c!-- MANPAGE: BEGIN EXCLUDED SECTION --\u003e\n**tl;dr:** [navigate me to examples](#output-template-examples).\n\u003c!-- MANPAGE: END EXCLUDED SECTION --\u003e\n\nThe simplest usage of `-o` is not to set any template arguments when downloading a single file, like in `yt-dlp -o funny_video.flv \"https://some/video\"` (hard-coding file extension like this is _not_ recommended and could break some post-processing).\n\nIt may however also contain special sequences that will be replaced when downloading each video. The special sequences may be formatted according to [Python string formatting operations](https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting), e.g. `%(NAME)s` or `%(NAME)05d`. To clarify, that is a percent symbol followed by a name in parentheses, followed by formatting operations.\n\nThe field names themselves (the part inside the parenthesis) can also have some special formatting:\n\n1. **Object traversal**: The dictionaries and lists available in metadata can be traversed by using a dot `.` separator; e.g. `%(tags.0)s`, `%(subtitles.en.-1.ext)s`. You can do Python slicing with colon `:`; E.g. `%(id.3:7)s`, `%(id.6:2:-1)s`, `%(formats.:.format_id)s`. Curly braces `{}` can be used to build dictionaries with only specific keys; e.g. `%(formats.:.{format_id,height})#j`. An empty field name `%()s` refers to the entire infodict; e.g. `%(.{id,title})s`. Note that all the fields that become available using this method are not listed below. Use `-j` to see such fields\n\n1. **Arithmetic**: Simple arithmetic can be done on numeric fields using `+`, `-` and `*`. E.g. `%(playlist_index+10)03d`, `%(n_entries+1-playlist_index)d`\n\n1. **Date/time Formatting**: Date/time fields can be formatted according to [strftime formatting](https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes) by specifying it separated from the field name using a `\u003e`. E.g. `%(duration\u003e%H-%M-%S)s`, `%(upload_date\u003e%Y-%m-%d)s`, `%(epoch-3600\u003e%H-%M-%S)s`\n\n1. **Alternatives**: Alternate fields can be specified separated with a `,`. E.g. `%(release_date\u003e%Y,upload_date\u003e%Y|Unknown)s`\n\n1. **Replacement**: A replacement value can be specified using a `\u0026` separator according to the [`str.format` mini-language](https://docs.python.org/3/library/string.html#format-specification-mini-language). If the field is *not* empty, this replacement value will be used instead of the actual field content. This is done after alternate fields are considered; thus the replacement is used if *any* of the alternative fields is *not* empty. E.g. `%(chapters\u0026has chapters|no chapters)s`, `%(title\u0026TITLE={:\u003e20}|NO TITLE)s`\n\n1. **Default**: A literal default value can be specified for when the field is empty using a `|` separator. This overrides `--output-na-placeholder`. E.g. `%(uploader|Unknown)s`\n\n1. **More Conversions**: In addition to the normal format types `diouxXeEfFgGcrs`, yt-dlp additionally supports converting to `B` = **B**ytes, `j` = **j**son (flag `#` for pretty-printing, `+` for Unicode), `h` = HTML escaping, `l` = a comma-separated **l**ist (flag `#` for `\\n` newline-separated), `q` = a string **q**uoted for the terminal (flag `#` to split a list into different arguments), `D` = add **D**ecimal suffixes (e.g. 10M) (flag `#` to use 1024 as factor), and `S` = **S**anitize as filename (flag `#` for restricted)\n\n1. **Unicode normalization**: The format type `U` can be used for NFC [Unicode normalization](https://docs.python.org/3/library/unicodedata.html#unicodedata.normalize). The alternate form flag (`#`) changes the normalization to NFD and the conversion flag `+` can be used for NFKC/NFKD compatibility equivalence normalization. E.g. `%(title)+.100U` is NFKC\n\nTo summarize, the general syntax for a field is:\n```\n%(name[.keys][addition][\u003estrf][,alternate][\u0026replacement][|default])[flags][width][.precision][length]type\n```\n\nAdditionally, you can set different output templates for the various metadata files separately from the general output template by specifying the type of file followed by the template separated by a colon `:`. The different file types supported are `subtitle`, `thumbnail`, `description`, `annotation` (deprecated), `infojson`, `link`, `pl_thumbnail`, `pl_description`, `pl_infojson`, `chapter`, `pl_video`. E.g. `-o \"%(title)s.%(ext)s\" -o \"thumbnail:%(title)s\\%(title)s.%(ext)s\"` will put the thumbnails in a folder with the same name as the video. If any of the templates is empty, that type of file will not be written. E.g. `--write-thumbnail -o \"thumbnail:\"` will write thumbnails only for playlists and not for video.\n\n\u003ca id=\"outtmpl-postprocess-note\"\u003e\u003c/a\u003e\n\n**Note**: Due to post-processing (i.e. merging etc.), the actual output filename might differ. Use `--print after_move:filepath` to get the name after all post-processing is complete.\n\nThe available fields are:\n\n - `id` (string): Video identifier\n - `title` (string): Video title\n - `fulltitle` (string): Video title ignoring live timestamp and generic title\n - `ext` (string): Video filename extension\n - `alt_title` (string): A secondary title of the video\n - `description` (string): The description of the video\n - `display_id` (string): An alternative identifier for the video\n - `uploader` (string): Full name of the video uploader\n - `uploader_id` (string): Nickname or id of the video uploader\n - `uploader_url` (string): URL to the video uploader's profile\n - `license` (string): License name the video is licensed under\n - `creators` (list): The creators of the video\n - `creator` (string): The creators of the video; comma-separated\n - `timestamp` (numeric): UNIX timestamp of the moment the video became available\n - `upload_date` (string): Video upload date in UTC (YYYYMMDD)\n - `release_timestamp` (numeric): UNIX timestamp of the moment the video was released\n - `release_date` (string): The date (YYYYMMDD) when the video was released in UTC\n - `release_year` (numeric): Year (YYYY) when the video or album was released\n - `modified_timestamp` (numeric): UNIX timestamp of the moment the video was last modified\n - `modified_date` (string): The date (YYYYMMDD) when the video was last modified in UTC\n - `channel` (string): Full name of the channel the video is uploaded on\n - `channel_id` (string): Id of the channel\n - `channel_url` (string): URL of the channel\n - `channel_follower_count` (numeric): Number of followers of the channel\n - `channel_is_verified` (boolean): Whether the channel is verified on the platform\n - `location` (string): Physical location where the video was filmed\n - `duration` (numeric): Length of the video in seconds\n - `duration_string` (string): Length of the video (HH:mm:ss)\n - `view_count` (numeric): How many users have watched the video on the platform\n - `concurrent_view_count` (numeric): How many users are currently watching the video on the platform.\n - `like_count` (numeric): Number of positive ratings of the video\n - `dislike_count` (numeric): Number of negative ratings of the video\n - `repost_count` (numeric): Number of reposts of the video\n - `average_rating` (numeric): Average rating given by users, the scale used depends on the webpage\n - `comment_count` (numeric): Number of comments on the video (For some extractors, comments are only downloaded at the end, and so this field cannot be used)\n - `save_count` (numeric): Number of times the video has been saved or bookmarked\n - `age_limit` (numeric): Age restriction for the video (years)\n - `live_status` (string): One of \"not_live\", \"is_live\", \"is_upcoming\", \"was_live\", \"post_live\" (was live, but VOD is not yet processed)\n - `is_live` (boolean): Whether this video is a live stream or a fixed-length video\n - `was_live` (boolean): Whether this video was originally a live stream\n - `playable_in_embed` (string): Whether this video is allowed to play in embedded players on other sites\n - `availability` (string): Whether the video is \"private\", \"premium_only\", \"subscriber_only\", \"needs_auth\", \"unlisted\" or \"public\"\n - `media_type` (string): The type of media as classified by the site, e.g. \"episode\", \"clip\", \"trailer\"\n - `start_time` (numeric): Time in seconds where the reproduction should start, as specified in the URL\n - `end_time` (numeric): Time in seconds where the reproduction should end, as specified in the URL\n - `extractor` (string): Name of the extractor\n - `extractor_key` (string): Key name of the extractor\n - `epoch` (numeric): Unix epoch of when the information extraction was completed\n - `autonumber` (numeric): Number that will be increased with each download, starting at `--autonumber-start`, padded with leading zeros to 5 digits\n - `video_autonumber` (numeric): Number that will be increased with each video\n - `n_entries` (numeric): Total number of extracted items in the playlist\n - `playlist_id` (string): Identifier of the playlist that contains the video\n - `playlist_title` (string): Name of the playlist that contains the video\n - `playlist` (string): `playlist_title` if available or else `playlist_id`\n - `playlist_count` (numeric): Total number of items in the playlist. May not be known if entire playlist is not extracted\n - `playlist_index` (numeric): Index of the video in the playlist padded with leading zeros according the final index\n - `playlist_autonumber` (numeric): Position of the video in the playlist download queue padded with leading zeros according to th","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyt-dlp%2Fyt-dlp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyt-dlp%2Fyt-dlp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyt-dlp%2Fyt-dlp/lists"}