officialrepo

yt-dlp/yt-dlp

★ 211k starsPythonPublic
View on GitHub ↗

A community setup & usage guide for the yt-dlp GitHub repository. Official repo: yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader.

What is yt-dlp?

yt-dlp is a powerful command-line media downloader (a youtube-dl fork) supporting thousands of sites, with format selection, subtitles, playlists and post-processing. Use it only for content you have the right to download.

Installation

Homebrew
brew install yt-dlp
pipx
pipx install yt-dlp
WinGet
winget install yt-dlp.yt-dlp
Scoop
scoop install yt-dlp
pipx
pipx install yt-dlp
Binary
sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp && sudo chmod a+rx /usr/local/bin/yt-dlp
Run it
yt-dlp "https://example.com/video"
Verify
yt-dlp --version

Usage

Download a video
yt-dlp "URL"
Extract audio as mp3
yt-dlp -x --audio-format mp3 "URL"
Pick best quality
yt-dlp -f "bv*+ba/b" "URL"

Before you start

Python 3.9+ (or use a standalone binary). Install ffmpeg for merging and audio conversion.

Official repository: github.com/yt-dlp/yt-dlp

FAQ

Do I need ffmpeg?

For best-quality merges and audio extraction, yes — install it alongside yt-dlp.

Is downloading allowed?

Only download content you own or are permitted to. Respect each site's terms and copyright.

Where is the official yt-dlp GitHub repository?

The official yt-dlp GitHub repo is hosted at github.com/yt-dlp/yt-dlp. This page links straight to it and summarises how to install and use yt-dlp.

Is this the official yt-dlp repo?

No. officialrepo.com is an independent community guide. The official yt-dlp GitHub repository is github.com/yt-dlp/yt-dlp — always treat that repo and its documentation as the source of truth.

This is an independent community guide. yt-dlp and its logo are trademarks of their respective owner; officialrepo.com is not affiliated with or endorsed by the project or GitHub, Inc. The link above points to the genuine official repository.