Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

yt-dlp

yt-dlp is a feature-rich command-line audio/video downloader with support for thousands of sites. [yt-dlp/yt-dlp]

yt-dlp是一个功能丰富的命令行音频/视频下载器,支持数千个网站。 [yt-dlp/yt-dlp]

install

# Arch
sudo pacman -S yt-dlp
# Windows 10
scoop install yt-dlp

Personal do

1

  1. Get yt-dlp-ChromeCookieUnlock.zip from release.
  2. Decompress it to yt-dlp-ChromeCookieUnlock/.
  3. (Windows 10) Move yt-dlp-ChromeCookieUnlock\ into C:\Users\User\AppData\Roaming\yt-dlg\plugins\.

command

# List available formats for a given URL
yt-dlp -F "<url_1>"

# Download specific video and audio formats using their IDs
yt-dlp -f "<video_id>+<audio_id>" "<url_1>"

# Download the best video and audio available
yt-dlp -f bestvideo+bestaudio "<url_1>"

# Download MP3 using yt-dlp
yt-dlp -x --audio-format mp3 --audio-quality 320k -o "%(title)s.%(ext)s" "<url_1>"

annex

yt-dlp.mp4, (bilibili


  1. Installing Plugins